|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.beans.Menus
Title: menus Helper
Description: Class for holding data from the menus table.
Copyright: Copyright (c) 2001-2004
Company: RMRR
Field Summary | |
protected java.lang.Integer |
cat
|
static java.lang.String |
CAT
|
static int |
CAT_LEN
|
protected java.lang.String |
description
|
static java.lang.String |
DESCRIPTION
|
static int |
DESCRIPTION_LEN
|
protected static Display |
display
|
static java.lang.String |
GETALL
|
protected java.lang.Integer |
menu_key
|
static java.lang.String |
MENU_KEY
|
static int |
MENU_KEY_LEN
|
protected java.lang.Integer |
sort_by_attr
|
static java.lang.String |
SORT_BY_ATTR
|
static int |
SORT_BY_ATTR_LEN
|
protected java.lang.String |
sort_col
|
static java.lang.String |
SORT_COL
|
static int |
SORT_COL_LEN
|
protected java.lang.Integer |
sort_desc
|
static java.lang.String |
SORT_DESC
|
static int |
SORT_DESC_LEN
|
static java.lang.String |
TABLE_NAME
|
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Constructor Summary | |
Menus()
Basic constructor |
|
Menus(int pk)
load record from the DB by primary key. |
Method Summary | |
java.lang.Object |
clone()
|
int |
getCat()
returns value of the CAT column of this row of data |
java.lang.String |
getDescription()
returns value of the DESCRIPTION column of this row of data |
int |
getMenu_key()
returns value of the MENU_KEY column of this row of data |
java.lang.Integer |
getObjCat()
returns value of the CAT column of this row of data |
java.lang.String |
getObjDescription()
returns value of the DESCRIPTION column of this row of data |
java.lang.Integer |
getObjMenu_key()
returns value of the MENU_KEY column of this row of data |
java.lang.Integer |
getObjSort_by_attr()
returns value of the SORT_BY_ATTR column of this row of data |
java.lang.String |
getObjSort_col()
returns value of the SORT_COL column of this row of data |
java.lang.Integer |
getObjSort_desc()
returns value of the SORT_DESC column of this row of data |
int |
getSort_by_attr()
returns value of the SORT_BY_ATTR column of this row of data |
java.lang.String |
getSort_col()
returns value of the SORT_COL column of this row of data |
int |
getSort_desc()
returns value of the SORT_DESC column of this row of data |
void |
load(Db db)
load record from the DB by primary key |
static Menus |
load(java.sql.ResultSet results)
|
static Menus |
load(java.sql.ResultSet results,
Menus newObj)
|
void |
setCat(int newVal)
sets value of the CAT column of this row of data default value for this field set by the DB is null |
void |
setCat(java.lang.Integer newVal)
sets value of the CAT column of this row of data default value for this field set by the DB is null |
void |
setDescription(java.lang.String newVal)
sets value of the DESCRIPTION column of this row of data default value for this field set by the DB is null This field has a max length of 255, longer strings will be truncated |
void |
setMenu_key(int newVal)
sets value of the MENU_KEY column of this row of data default value for this field set by the DB is null This is the primary key for this table |
void |
setMenu_key(java.lang.Integer newVal)
sets value of the MENU_KEY column of this row of data default value for this field set by the DB is null This is the primary key for this table |
void |
setSort_by_attr(int newVal)
sets value of the SORT_BY_ATTR column of this row of data default value for this field set by the DB is null |
void |
setSort_by_attr(java.lang.Integer newVal)
sets value of the SORT_BY_ATTR column of this row of data default value for this field set by the DB is null |
void |
setSort_col(java.lang.String newVal)
sets value of the SORT_COL column of this row of data default value for this field set by the DB is null This field has a max length of 100, longer strings will be truncated |
void |
setSort_desc(int newVal)
sets value of the SORT_DESC column of this row of data default value for this field set by the DB is null |
void |
setSort_desc(java.lang.Integer newVal)
sets value of the SORT_DESC column of this row of data default value for this field set by the DB is null |
void |
store()
Deprecated. Should use store(Db db) to limit connections to DB |
void |
store(Db db)
Store this object in the DB |
java.lang.String |
toString()
Returns a String showing the values of this bean - mainly for debuging |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final Display display
protected java.lang.Integer cat
protected java.lang.String description
protected java.lang.Integer menu_key
protected java.lang.Integer sort_by_attr
protected java.lang.String sort_col
protected java.lang.Integer sort_desc
public static final java.lang.String TABLE_NAME
public static final java.lang.String GETALL
public static final java.lang.String CAT
public static final int CAT_LEN
public static final java.lang.String DESCRIPTION
public static final int DESCRIPTION_LEN
public static final java.lang.String MENU_KEY
public static final int MENU_KEY_LEN
public static final java.lang.String SORT_BY_ATTR
public static final int SORT_BY_ATTR_LEN
public static final java.lang.String SORT_COL
public static final int SORT_COL_LEN
public static final java.lang.String SORT_DESC
public static final int SORT_DESC_LEN
Constructor Detail |
public Menus()
public Menus(int pk)
Method Detail |
public java.lang.Integer getObjCat()
public int getCat()
public void setCat(java.lang.Integer newVal)
public void setCat(int newVal)
public java.lang.String getObjDescription()
public java.lang.String getDescription()
public void setDescription(java.lang.String newVal)
public java.lang.Integer getObjMenu_key()
public int getMenu_key()
public void setMenu_key(java.lang.Integer newVal)
public void setMenu_key(int newVal)
public java.lang.Integer getObjSort_by_attr()
public int getSort_by_attr()
public void setSort_by_attr(java.lang.Integer newVal)
public void setSort_by_attr(int newVal)
public java.lang.String getObjSort_col()
public java.lang.String getSort_col()
public void setSort_col(java.lang.String newVal)
public java.lang.Integer getObjSort_desc()
public int getSort_desc()
public void setSort_desc(java.lang.Integer newVal)
public void setSort_desc(int newVal)
public java.lang.Object clone()
public static Menus load(java.sql.ResultSet results) throws java.sql.SQLException
java.sql.SQLException
public static Menus load(java.sql.ResultSet results, Menus newObj) throws java.sql.SQLException
java.sql.SQLException
public void load(Db db)
db
- public void store() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public void store(Db db) throws java.sql.SQLException, java.lang.ClassNotFoundException
db
- holds connection to DB
java.sql.SQLException
java.lang.ClassNotFoundException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |