|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.beans.Attribs
Title: attribs Helper
Description: Class for holding data from the attribs table.
Copyright: Copyright (c) 2001-2004
Company: RMRR
Field Summary | |
protected java.lang.Integer |
attr_num
|
static java.lang.String |
ATTR_NUM
|
static int |
ATTR_NUM_LEN
|
protected java.lang.String |
attr_val
|
static java.lang.String |
ATTR_VAL
|
static int |
ATTR_VAL_LEN
|
protected static Display |
display
|
static java.lang.String |
GETALL
|
protected java.lang.Integer |
obj_attr_id
|
static java.lang.String |
OBJ_ATTR_ID
|
static int |
OBJ_ATTR_ID_LEN
|
protected java.lang.Integer |
obj_num
|
static java.lang.String |
OBJ_NUM
|
static int |
OBJ_NUM_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 | |
Attribs()
Basic constructor |
|
Attribs(int pk)
load record from the DB by primary key. |
Method Summary | |
java.lang.Object |
clone()
|
int |
getAttr_num()
returns value of the ATTR_NUM column of this row of data |
java.lang.String |
getAttr_val()
returns value of the ATTR_VAL column of this row of data |
int |
getObj_attr_id()
returns value of the OBJ_ATTR_ID column of this row of data |
int |
getObj_num()
returns value of the OBJ_NUM column of this row of data |
java.lang.Integer |
getObjAttr_num()
returns value of the ATTR_NUM column of this row of data |
java.lang.String |
getObjAttr_val()
returns value of the ATTR_VAL column of this row of data |
java.lang.Integer |
getObjObj_attr_id()
returns value of the OBJ_ATTR_ID column of this row of data |
java.lang.Integer |
getObjObj_num()
returns value of the OBJ_NUM column of this row of data |
void |
load(Db db)
load record from the DB by primary key |
static Attribs |
load(java.sql.ResultSet results)
|
static Attribs |
load(java.sql.ResultSet results,
Attribs newObj)
|
void |
setAttr_num(int newVal)
sets value of the ATTR_NUM column of this row of data default value for this field set by the DB is null |
void |
setAttr_num(java.lang.Integer newVal)
sets value of the ATTR_NUM column of this row of data default value for this field set by the DB is null |
void |
setAttr_val(java.lang.String newVal)
sets value of the ATTR_VAL 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 |
setObj_attr_id(int newVal)
sets value of the OBJ_ATTR_ID 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 |
setObj_attr_id(java.lang.Integer newVal)
sets value of the OBJ_ATTR_ID 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 |
setObj_num(int newVal)
sets value of the OBJ_NUM column of this row of data default value for this field set by the DB is null |
void |
setObj_num(java.lang.Integer newVal)
sets value of the OBJ_NUM 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_num
protected java.lang.String attr_val
protected java.lang.Integer obj_attr_id
protected java.lang.Integer obj_num
public static final java.lang.String TABLE_NAME
public static final java.lang.String GETALL
public static final java.lang.String ATTR_NUM
public static final int ATTR_NUM_LEN
public static final java.lang.String ATTR_VAL
public static final int ATTR_VAL_LEN
public static final java.lang.String OBJ_ATTR_ID
public static final int OBJ_ATTR_ID_LEN
public static final java.lang.String OBJ_NUM
public static final int OBJ_NUM_LEN
Constructor Detail |
public Attribs()
public Attribs(int pk)
Method Detail |
public java.lang.Integer getObjAttr_num()
public int getAttr_num()
public void setAttr_num(java.lang.Integer newVal)
public void setAttr_num(int newVal)
public java.lang.String getObjAttr_val()
public java.lang.String getAttr_val()
public void setAttr_val(java.lang.String newVal)
public java.lang.Integer getObjObj_attr_id()
public int getObj_attr_id()
public void setObj_attr_id(java.lang.Integer newVal)
public void setObj_attr_id(int newVal)
public java.lang.Integer getObjObj_num()
public int getObj_num()
public void setObj_num(java.lang.Integer newVal)
public void setObj_num(int newVal)
public java.lang.Object clone()
public static Attribs load(java.sql.ResultSet results) throws java.sql.SQLException
java.sql.SQLException
public static Attribs load(java.sql.ResultSet results, Attribs 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 |