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

Quick Search    Search Deep

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

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

public class Plu
extends DBRecord

Plu is a many to one map for arbitray numerical items to actual items.


Field Summary
private static int[] col_types
           
private static java.lang.String[] columns
           
private  Item item
           
private  int plu
           
private  java.lang.String sku
           
private static java.lang.String table
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
Plu()
           
 
Method Summary
 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.
static java.lang.String getByPlu(int id)
           
static java.lang.String getBySku(java.lang.String id)
           
 Item item()
           
 int plu()
           
 void populate(java.sql.ResultSet rset)
          Called by fetch method in DBContext to move entity data from the result set to the record
 void relations()
          Called by fetch method in DBContext to service any entity relationships (child records).
 boolean save()
          Entity save.
 void setPlu(int value)
           
 void setSku(java.lang.String value)
           
 java.lang.String sku()
           
 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, toString, 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

plu

private int plu

sku

private java.lang.String sku

item

private Item item
Constructor Detail

Plu

public Plu()
Method Detail

plu

public int plu()

sku

public java.lang.String sku()

setPlu

public void setPlu(int value)

setSku

public void setSku(java.lang.String value)

getByPlu

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

getBySku

public static java.lang.String getBySku(java.lang.String id)

copy

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

Specified by:
copy in class DBRecord

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

Specified by:
populate in class DBRecord

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

item

public Item item()

relations

public void relations()
Description copied from class: DBRecord
Called by fetch method in DBContext to service any entity relationships (child records).

Specified by:
relations in class DBRecord

toXML

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

Specified by:
toXML in class DBRecord

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