Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.globalretailtech.data
Class Site  view Site download Site.java

java.lang.Object
  extended bycom.globalretailtech.data.DBRecord
      extended bycom.globalretailtech.data.BusinessObject
          extended bycom.globalretailtech.data.Site

public class Site
extends BusinessObject

The Site entity in the business unit hierarchy. Pos are typically associated to a site, a site is the first concrete node in the hierarchy.


Field Summary
private  java.lang.String addr1
           
private  java.lang.String addr2
           
private  java.lang.String addr3
           
private  java.lang.String addr4
           
private  java.lang.String addr5
           
private  BoMap bomap
           
private static int[] col_types
           
private static java.lang.String[] columns
           
private  java.lang.String ipaddr
           
private  java.lang.String lat
           
private  java.lang.String lon
           
private  int merchantid
           
private  java.lang.String name
           
private  java.lang.String phone
           
private  int port
           
private  java.util.Vector pos
           
private  int siteid
           
private  int siteno
           
private static java.lang.String table
           
static int TYPE
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
Site()
           
 
Method Summary
 java.lang.String addr1()
           
 java.lang.String addr2()
           
 java.lang.String addr3()
           
 java.lang.String addr4()
           
 java.lang.String addr5()
           
 int boID()
           
 BoMap boMap()
           
 int boType()
           
 java.util.Vector columnObjects()
          Temporary base class implementations for xml import/export.
 DBRecord copy()
          Copies the record, used to create a new record during population.
 DBRecord copy(Site s)
           
static java.lang.String getAll()
           
 java.util.Vector getAllByParent(int parentid)
          Gets all sites associated with a given business unit.
static java.lang.String getByID(int id)
           
static java.lang.String getBySiteNo(int id)
           
 java.lang.String ipAddr()
           
 java.lang.String lat()
           
 java.lang.String lon()
           
 int merchantID()
           
 java.lang.String name()
           
 java.util.Vector parents()
           
 java.lang.String phone()
           
 void populate(java.sql.ResultSet rset)
          Called by fetch method in DBContext to move entity data from the result set to the record
 int port()
           
 java.util.Vector pos()
           
 void relations()
          Get the POS related to this site
 boolean save()
          Entity save.
 void setAddr1(java.lang.String value)
           
 void setAddr2(java.lang.String value)
           
 void setAddr3(java.lang.String value)
           
 void setAddr4(java.lang.String value)
           
 void setAddr5(java.lang.String value)
           
 void setBoMap(BoMap value)
           
 void setIpAddr(java.lang.String value)
           
 void setLat(java.lang.String value)
           
 void setLon(java.lang.String value)
           
 void setMerchantID(int value)
           
 void setName(java.lang.String value)
           
 void setPhone(java.lang.String value)
           
 void setPort(int value)
           
 void setPos(java.util.Vector value)
           
 void setSiteID(int value)
           
 void setSiteNo(int value)
           
 int siteID()
           
 int siteNo()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 java.lang.String toXML()
          Abstract implementation of toXML ()
 boolean update()
          Entity update.
 
Methods inherited from class com.globalretailtech.data.DBRecord
getUpdateString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
See Also:
Constant Field Values

table

private static java.lang.String table

columns

private static java.lang.String[] columns

col_types

private static int[] col_types

siteid

private int siteid

siteno

private int siteno

name

private java.lang.String name

lat

private java.lang.String lat

lon

private java.lang.String lon

addr1

private java.lang.String addr1

addr2

private java.lang.String addr2

addr3

private java.lang.String addr3

addr4

private java.lang.String addr4

addr5

private java.lang.String addr5

phone

private java.lang.String phone

ipaddr

private java.lang.String ipaddr

port

private int port

merchantid

private int merchantid

bomap

private BoMap bomap

pos

private java.util.Vector pos
Constructor Detail

Site

public Site()
Method Detail

siteID

public int siteID()

siteNo

public int siteNo()

name

public java.lang.String name()

lat

public java.lang.String lat()

lon

public java.lang.String lon()

addr1

public java.lang.String addr1()

addr2

public java.lang.String addr2()

addr3

public java.lang.String addr3()

addr4

public java.lang.String addr4()

addr5

public java.lang.String addr5()

phone

public java.lang.String phone()

ipAddr

public java.lang.String ipAddr()

port

public int port()

merchantID

public int merchantID()

setSiteID

public void setSiteID(int value)

setSiteNo

public void setSiteNo(int value)

setName

public void setName(java.lang.String value)

setLat

public void setLat(java.lang.String value)

setLon

public void setLon(java.lang.String value)

setAddr1

public void setAddr1(java.lang.String value)

setAddr2

public void setAddr2(java.lang.String value)

setAddr3

public void setAddr3(java.lang.String value)

setAddr4

public void setAddr4(java.lang.String value)

setAddr5

public void setAddr5(java.lang.String value)

setPhone

public void setPhone(java.lang.String value)

setIpAddr

public void setIpAddr(java.lang.String value)

setPort

public void setPort(int value)

setMerchantID

public void setMerchantID(int value)

boMap

public BoMap boMap()

setBoMap

public void setBoMap(BoMap value)

getByID

public static java.lang.String getByID(int id)

getBySiteNo

public static java.lang.String getBySiteNo(int id)

getAll

public static java.lang.String getAll()

getAllByParent

public java.util.Vector getAllByParent(int parentid)
Gets all sites associated with a given business unit. Note: this is not a static class since it performs recursion.


copy

public DBRecord copy()
Description copied from class: DBRecord
Copies the record, used to create a new record during population.

Overrides:
copy in class BusinessObject

copy

public DBRecord copy(Site s)

parents

public java.util.Vector parents()
Specified by:
parents in class BusinessObject

populate

public void populate(java.sql.ResultSet rset)
Description copied from class: DBRecord
Called by fetch method in DBContext to move entity data from the result set to the record

Overrides:
populate in class BusinessObject

save

public boolean save()
Description copied from class: DBRecord
Entity save.

Specified by:
save in class DBRecord

update

public boolean update()
Description copied from class: DBRecord
Entity update.

Specified by:
update in class DBRecord

boID

public int boID()
Specified by:
boID in class BusinessObject

boType

public int boType()
Specified by:
boType in class BusinessObject

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Specified by:
toString in class BusinessObject

pos

public java.util.Vector pos()

setPos

public void setPos(java.util.Vector value)

relations

public void relations()
Get the POS related to this site

Specified by:
relations in class DBRecord

toXML

public java.lang.String toXML()
Abstract implementation of toXML ()

Overrides:
toXML in class BusinessObject

columnObjects

public java.util.Vector columnObjects()
Description copied from class: DBRecord
Temporary base class implementations for xml import/export. Some of these will eventually become abstract.

Overrides:
columnObjects in class DBRecord