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

Quick Search    Search Deep

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

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

public class SubMenu
extends DBRecord

Sib-menu olds an individual menu, (set of buttons).


Field Summary
private  java.util.Vector buttons
           
private static int[] col_types
           
private static java.lang.String[] columns
           
static int CUSTOMER
           
static int FUNCTION_MENU
           
static int INVOICE
           
static int ITEM_MENU
           
static int KEYPAD
           
private  int menuid
           
static int NAVIGATE
           
static int OPER
           
static int OPER_PROMPT
           
static int OPER_RECEIPT
           
private  int submenuid
           
private  java.lang.String submenuname
           
private static java.lang.String table
           
 
Fields inherited from class com.globalretailtech.data.DBRecord
BOOLEAN, BYTE, DATA, DATE, DOUBLE, INT, STRING
 
Constructor Summary
SubMenu()
           
 
Method Summary
 java.util.Vector buttons()
           
 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 getByID(int id)
           
static java.lang.String getByIDandType(int id, int type)
           
static java.lang.String getByMenuID(int id)
           
 int menuID()
           
 java.util.Vector parents()
           
 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 setButtons(java.util.Vector value)
           
 void setMenuID(int value)
           
 void setSubMenuID(int value)
           
 void setSubMenuName(java.lang.String value)
           
 int subMenuID()
           
 java.lang.String subMenuName()
           
 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

OPER

public static final int OPER
See Also:
Constant Field Values

NAVIGATE

public static final int NAVIGATE
See Also:
Constant Field Values

ITEM_MENU

public static final int ITEM_MENU
See Also:
Constant Field Values

FUNCTION_MENU

public static final int FUNCTION_MENU
See Also:
Constant Field Values

KEYPAD

public static final int KEYPAD
See Also:
Constant Field Values

OPER_PROMPT

public static final int OPER_PROMPT
See Also:
Constant Field Values

INVOICE

public static final int INVOICE
See Also:
Constant Field Values

CUSTOMER

public static final int CUSTOMER
See Also:
Constant Field Values

OPER_RECEIPT

public static final int OPER_RECEIPT
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

submenuid

private int submenuid

menuid

private int menuid

submenuname

private java.lang.String submenuname

buttons

private java.util.Vector buttons
Constructor Detail

SubMenu

public SubMenu()
Method Detail

subMenuID

public int subMenuID()

menuID

public int menuID()

subMenuName

public java.lang.String subMenuName()

setSubMenuID

public void setSubMenuID(int value)

setMenuID

public void setMenuID(int value)

setSubMenuName

public void setSubMenuName(java.lang.String value)

getByID

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

getByIDandType

public static java.lang.String getByIDandType(int id,
                                              int type)

getByMenuID

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

parents

public java.util.Vector parents()

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

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()).


buttons

public java.util.Vector buttons()

setButtons

public void setButtons(java.util.Vector value)

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