|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.beans.Templates
Title: templates Helper
Description: Class for holding data from the templates table.
Copyright: Copyright (c) 2001-2004
Company: RMRR
Field Summary | |
protected java.lang.Integer |
attr_key
|
static java.lang.String |
ATTR_KEY
|
static int |
ATTR_KEY_LEN
|
protected java.lang.String |
attrib_name
|
static java.lang.String |
ATTRIB_NAME
|
static int |
ATTRIB_NAME_LEN
|
protected java.lang.String |
attrib_type
|
static java.lang.String |
ATTRIB_TYPE
|
static int |
ATTRIB_TYPE_LEN
|
protected java.lang.Integer |
cnum
|
static java.lang.String |
CNUM
|
static int |
CNUM_LEN
|
protected static Display |
display
|
static java.lang.String |
GETALL
|
protected java.lang.String |
help
|
static java.lang.String |
HELP
|
static int |
HELP_LEN
|
protected java.lang.String |
mask
|
static java.lang.String |
MASK
|
static int |
MASK_LEN
|
protected java.lang.Integer |
sort_order
|
static java.lang.String |
SORT_ORDER
|
static int |
SORT_ORDER_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 | |
Templates()
Basic constructor |
|
Templates(int pk)
load record from the DB by primary key. |
Method Summary | |
java.lang.Object |
clone()
|
int |
getAttr_key()
returns value of the ATTR_KEY column of this row of data |
java.lang.String |
getAttrib_name()
returns value of the ATTRIB_NAME column of this row of data |
java.lang.String |
getAttrib_type()
returns value of the ATTRIB_TYPE column of this row of data |
int |
getCnum()
returns value of the CNUM column of this row of data |
java.lang.String |
getHelp()
returns value of the HELP column of this row of data |
java.lang.String |
getMask()
returns value of the MASK column of this row of data |
java.lang.Integer |
getObjAttr_key()
returns value of the ATTR_KEY column of this row of data |
java.lang.String |
getObjAttrib_name()
returns value of the ATTRIB_NAME column of this row of data |
java.lang.String |
getObjAttrib_type()
returns value of the ATTRIB_TYPE column of this row of data |
java.lang.Integer |
getObjCnum()
returns value of the CNUM column of this row of data |
java.lang.String |
getObjHelp()
returns value of the HELP column of this row of data |
java.lang.String |
getObjMask()
returns value of the MASK column of this row of data |
java.lang.Integer |
getObjSort_order()
returns value of the SORT_ORDER column of this row of data |
int |
getSort_order()
returns value of the SORT_ORDER column of this row of data |
void |
load(Db db)
load record from the DB by primary key |
static Templates |
load(java.sql.ResultSet results)
|
static Templates |
load(java.sql.ResultSet results,
Templates newObj)
|
void |
setAttr_key(int newVal)
sets value of the ATTR_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 |
setAttr_key(java.lang.Integer newVal)
sets value of the ATTR_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 |
setAttrib_name(java.lang.String newVal)
sets value of the ATTRIB_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated |
void |
setAttrib_type(java.lang.String newVal)
sets value of the ATTRIB_TYPE column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated |
void |
setCnum(int newVal)
sets value of the CNUM column of this row of data default value for this field set by the DB is null |
void |
setCnum(java.lang.Integer newVal)
sets value of the CNUM column of this row of data default value for this field set by the DB is null |
void |
setHelp(java.lang.String newVal)
sets value of the HELP column of this row of data default value for this field set by the DB is null This field has a max length of 16777215, longer strings will be truncated |
void |
setMask(java.lang.String newVal)
sets value of the MASK column of this row of data default value for this field set by the DB is null This field has a max length of 16777215, longer strings will be truncated |
void |
setSort_order(int newVal)
sets value of the SORT_ORDER column of this row of data default value for this field set by the DB is null |
void |
setSort_order(java.lang.Integer newVal)
sets value of the SORT_ORDER 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 attr_key
protected java.lang.String attrib_name
protected java.lang.String attrib_type
protected java.lang.Integer cnum
protected java.lang.String help
protected java.lang.String mask
protected java.lang.Integer sort_order
public static final java.lang.String TABLE_NAME
public static final java.lang.String GETALL
public static final java.lang.String ATTR_KEY
public static final int ATTR_KEY_LEN
public static final java.lang.String ATTRIB_NAME
public static final int ATTRIB_NAME_LEN
public static final java.lang.String ATTRIB_TYPE
public static final int ATTRIB_TYPE_LEN
public static final java.lang.String CNUM
public static final int CNUM_LEN
public static final java.lang.String HELP
public static final int HELP_LEN
public static final java.lang.String MASK
public static final int MASK_LEN
public static final java.lang.String SORT_ORDER
public static final int SORT_ORDER_LEN
Constructor Detail |
public Templates()
public Templates(int pk)
Method Detail |
public java.lang.Integer getObjAttr_key()
public int getAttr_key()
public void setAttr_key(java.lang.Integer newVal)
public void setAttr_key(int newVal)
public java.lang.String getObjAttrib_name()
public java.lang.String getAttrib_name()
public void setAttrib_name(java.lang.String newVal)
public java.lang.String getObjAttrib_type()
public java.lang.String getAttrib_type()
public void setAttrib_type(java.lang.String newVal)
public java.lang.Integer getObjCnum()
public int getCnum()
public void setCnum(java.lang.Integer newVal)
public void setCnum(int newVal)
public java.lang.String getObjHelp()
public java.lang.String getHelp()
public void setHelp(java.lang.String newVal)
public java.lang.String getObjMask()
public java.lang.String getMask()
public void setMask(java.lang.String newVal)
public java.lang.Integer getObjSort_order()
public int getSort_order()
public void setSort_order(java.lang.Integer newVal)
public void setSort_order(int newVal)
public java.lang.Object clone()
public static Templates load(java.sql.ResultSet results) throws java.sql.SQLException
java.sql.SQLException
public static Templates load(java.sql.ResultSet results, Templates 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 |