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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.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.


Field Summary
static int BOOLEAN
           
static int BYTE
           
static int DATA
           
static int DATE
           
static int DOUBLE
           
static int INT
           
static int STRING
           
 
Constructor Summary
DBRecord()
           
 
Method Summary
 java.util.Vector columnObjects()
          Temporary base class implementations for xml import/export.
abstract  DBRecord copy()
          Copies the record, used to create a new record during population.
 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)
           
abstract  void populate(java.sql.ResultSet rs)
          Called by fetch method in DBContext to move entity data from the result set to the record
abstract  void relations()
          Called by fetch method in DBContext to service any entity relationships (child records).
abstract  boolean save()
          Entity save.
private  java.lang.String toEntityName(java.lang.String entity)
           
abstract  java.lang.String toXML()
          Converts the entity to an XML string.
 java.lang.String toXML(java.lang.String table, java.util.Vector objects, java.lang.String[] names, int[] types)
           
private  java.lang.String typeAttribute(int type)
           
abstract  boolean update()
          Entity update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DBRecord

public DBRecord()
Method Detail

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)