java.lang.Object
com.globalretailtech.data.DBRecord
- Direct Known Subclasses:
- BoMap, BoType, BusinessObject, Currency, CurrencyCode, CurrencyDenomination, Customer, Department, Dialog, DialogEvent, Employee, Help, InputFilter, InputFilterField, Item, ItemLink, Media, MenuRoot, Plu, PosKey, PosParameter, PosProfile, PosProfileEvent, PosSession, PosTotal, PosTransUpload, Promotion, PromotionMap, ReasonCode, ReasonCodeCategory, SiteDataStore, SubMenu, Subscriber, SubscriberMap, Tax, TaxGroup, Total, TransBank, TransCount, TransException, TransItem, TransItemLink, TransPromotion, TransTax, TransTender
- public abstract class DBRecord
- extends java.lang.Object
Abstract database record class for the
DBContext api.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INT
public static final int INT
- See Also:
- Constant Field Values
STRING
public static final int STRING
- See Also:
- Constant Field Values
DATE
public static final int DATE
- See Also:
- Constant Field Values
DATA
public static final int DATA
- See Also:
- Constant Field Values
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
BYTE
public static final int BYTE
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
DBRecord
public DBRecord()
populate
public abstract void populate(java.sql.ResultSet rs)
- Called by fetch method in DBContext to move entity
data from the result set to the record
relations
public abstract void relations()
- Called by fetch method in DBContext to service
any entity relationships (child records).
copy
public abstract DBRecord copy()
- Copies the record, used to create a new record
during population.
save
public abstract boolean save()
- Entity save.
update
public abstract boolean update()
- Entity update.
toXML
public abstract java.lang.String toXML()
- Converts the entity to an XML string.
columnObjects
public java.util.Vector columnObjects()
- Temporary base class implementations for
xml import/export. Some of these will
eventually become abstract.
toXML
public java.lang.String toXML(java.lang.String table,
java.util.Vector objects,
java.lang.String[] names,
int[] types)
toEntityName
private java.lang.String toEntityName(java.lang.String entity)
typeAttribute
private java.lang.String typeAttribute(int type)
getUpdateString
public java.lang.String getUpdateString(int[] updateIndex,
java.util.Vector updateValue,
java.lang.String table,
java.lang.String[] columns,
int[] col_types,
java.lang.String select)