|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.beans.Objects
Title: objects Helper
Description: Class for holding data from the objects 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 |
detail
|
static java.lang.String |
DETAIL
|
static int |
DETAIL_LEN
|
protected static Display |
display
|
static java.lang.String |
GETALL
|
protected java.lang.Integer |
obj_key
|
static java.lang.String |
OBJ_KEY
|
static int |
OBJ_KEY_LEN
|
protected java.lang.String |
obj_name
|
static java.lang.String |
OBJ_NAME
|
static int |
OBJ_NAME_LEN
|
static java.lang.String |
TABLE_NAME
|
protected java.sql.Timestamp |
updated
|
static java.lang.String |
UPDATED
|
static int |
UPDATED_LEN
|
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 | |
Objects()
Basic constructor |
|
Objects(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 |
getDetail()
returns value of the DETAIL column of this row of data |
int |
getObj_key()
returns value of the OBJ_KEY column of this row of data |
java.lang.String |
getObj_name()
returns value of the OBJ_NAME column of this row of data |
java.lang.Integer |
getObjCat()
returns value of the CAT column of this row of data |
java.lang.String |
getObjDetail()
returns value of the DETAIL column of this row of data |
java.lang.Integer |
getObjObj_key()
returns value of the OBJ_KEY column of this row of data |
java.lang.String |
getObjObj_name()
returns value of the OBJ_NAME column of this row of data |
java.sql.Timestamp |
getObjUpdated()
returns value of the UPDATED column of this row of data |
java.sql.Timestamp |
getUpdated()
returns value of the UPDATED column of this row of data |
void |
load(Db db)
load record from the DB by primary key |
static Objects |
load(java.sql.ResultSet results)
|
static Objects |
load(java.sql.ResultSet results,
Objects 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 |
setDetail(java.lang.String newVal)
sets value of the DETAIL 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_key(int newVal)
sets value of the OBJ_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 |
setObj_key(java.lang.Integer newVal)
sets value of the OBJ_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 |
setObj_name(java.lang.String newVal)
sets value of the OBJ_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 |
setUpdated(java.sql.Timestamp newVal)
sets value of the UPDATED 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 detail
protected java.lang.Integer obj_key
protected java.lang.String obj_name
protected java.sql.Timestamp updated
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 DETAIL
public static final int DETAIL_LEN
public static final java.lang.String OBJ_KEY
public static final int OBJ_KEY_LEN
public static final java.lang.String OBJ_NAME
public static final int OBJ_NAME_LEN
public static final java.lang.String UPDATED
public static final int UPDATED_LEN
Constructor Detail |
public Objects()
public Objects(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 getObjDetail()
public java.lang.String getDetail()
public void setDetail(java.lang.String newVal)
public java.lang.Integer getObjObj_key()
public int getObj_key()
public void setObj_key(java.lang.Integer newVal)
public void setObj_key(int newVal)
public java.lang.String getObjObj_name()
public java.lang.String getObj_name()
public void setObj_name(java.lang.String newVal)
public java.sql.Timestamp getObjUpdated()
public java.sql.Timestamp getUpdated()
public void setUpdated(java.sql.Timestamp newVal)
public java.lang.Object clone()
public static Objects load(java.sql.ResultSet results) throws java.sql.SQLException
java.sql.SQLException
public static Objects load(java.sql.ResultSet results, Objects 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 |