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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.globalretailtech.data.DBRecord
      extended bycom.globalretailtech.data.BoMap

public class BoMap
extends DBRecord

The Business object mapping class. Maps a parent business object to a child.


Field Summary
private  BusinessObject bo_relation
           
private  int boid
           
private static int[] col_types
           
private static java.lang.String[] columns
           
private  int objtype
           
private  int parentboid
           
private  int parentobjtype
           
private static java.lang.String table
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
BoMap()
          Simple constructor
 
Method Summary
 int boID()
          This business object id
 BusinessObject businessObject()
          Return the business object
 java.util.Vector columnObjects()
          Temporary base class implementations for xml import/export.
 DBRecord copy()
          Abstract implementation of copy ()
static java.lang.String getByID(int id)
          Creates a sql statement to select a bo_map object by ID
static java.lang.String getByIdAndType(int id, int type)
          Creates a sql statement to select a bo_map object by ID and type
static java.lang.String getChildrenById(int id)
          Creates a sql statement to select all children of this object
static java.lang.String getChildrenById2(int id)
          Creates a sql statement to select all children of this object of type BusinessUnit or Site.
static java.lang.String getChildrenByIdAndType(int id, int type)
          Creates a sql statement to select all children of this object of speciied type.
 int objType()
          This business object type
 int parentBoID()
          Parent business object id
 int parentObjType()
          Parent business object type
 void populate(java.sql.ResultSet rset)
          Abstract implementation of populate ()
 void relations()
          Abstract implementation of relations ()
 boolean save()
          Abstract implementation of save ()
 void setBoID(int value)
           
 void setBusinessObject(BusinessObject value)
           
 void setObjType(int value)
           
 void setParentBoID(int value)
           
 void setParentObjType(int value)
           
 java.lang.String toString()
          Abstract implementation of toString ()
 java.lang.String toXML()
          Abstract implementation of toXML ()
 boolean update()
          Abstract implementation of 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

table

private static java.lang.String table

columns

private static java.lang.String[] columns

col_types

private static int[] col_types

boid

private int boid

objtype

private int objtype

parentboid

private int parentboid

parentobjtype

private int parentobjtype

bo_relation

private BusinessObject bo_relation
Constructor Detail

BoMap

public BoMap()
Simple constructor

Method Detail

boID

public int boID()
This business object id


objType

public int objType()
This business object type


parentBoID

public int parentBoID()
Parent business object id


parentObjType

public int parentObjType()
Parent business object type


setBoID

public void setBoID(int value)

setObjType

public void setObjType(int value)

setParentBoID

public void setParentBoID(int value)

setParentObjType

public void setParentObjType(int value)

businessObject

public BusinessObject businessObject()
Return the business object


setBusinessObject

public void setBusinessObject(BusinessObject value)

getByID

public static java.lang.String getByID(int id)
Creates a sql statement to select a bo_map object by ID


getByIdAndType

public static java.lang.String getByIdAndType(int id,
                                              int type)
Creates a sql statement to select a bo_map object by ID and type


getChildrenById

public static java.lang.String getChildrenById(int id)
Creates a sql statement to select all children of this object


getChildrenById2

public static java.lang.String getChildrenById2(int id)
Creates a sql statement to select all children of this object of type BusinessUnit or Site.


getChildrenByIdAndType

public static java.lang.String getChildrenByIdAndType(int id,
                                                      int type)
Creates a sql statement to select all children of this object of speciied type.


copy

public DBRecord copy()
Abstract implementation of copy ()

Specified by:
copy in class DBRecord

populate

public void populate(java.sql.ResultSet rset)
Abstract implementation of populate ()

Specified by:
populate in class DBRecord

save

public boolean save()
Abstract implementation of save ()

Specified by:
save in class DBRecord

update

public boolean update()
Abstract implementation of update ()

Specified by:
update in class DBRecord

relations

public void relations()
Abstract implementation of relations ()

Specified by:
relations in class DBRecord

toXML

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

Specified by:
toXML in class DBRecord

toString

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


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