|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.beans.Srcs
Title: srcs Helper
Description: Class for holding data from the srcs table.
Copyright: Copyright (c) 2001-2004
Company: RMRR
Field Summary | |
protected static Display |
display
|
static java.lang.String |
GETALL
|
protected java.lang.Integer |
src_key
|
static java.lang.String |
SRC_KEY
|
static int |
SRC_KEY_LEN
|
protected java.lang.String |
src_name
|
static java.lang.String |
SRC_NAME
|
static int |
SRC_NAME_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 | |
Srcs()
Basic constructor |
|
Srcs(int pk)
load record from the DB by primary key. |
Method Summary | |
java.lang.Object |
clone()
|
java.lang.Integer |
getObjSrc_key()
returns value of the SRC_KEY column of this row of data |
java.lang.String |
getObjSrc_name()
returns value of the SRC_NAME column of this row of data |
int |
getSrc_key()
returns value of the SRC_KEY column of this row of data |
java.lang.String |
getSrc_name()
returns value of the SRC_NAME column of this row of data |
void |
load(Db db)
load record from the DB by primary key |
static Srcs |
load(java.sql.ResultSet results)
|
static Srcs |
load(java.sql.ResultSet results,
Srcs newObj)
|
void |
setSrc_key(int newVal)
sets value of the SRC_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 |
setSrc_key(java.lang.Integer newVal)
sets value of the SRC_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 |
setSrc_name(java.lang.String newVal)
sets value of the SRC_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 |
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 src_key
protected java.lang.String src_name
public static final java.lang.String TABLE_NAME
public static final java.lang.String GETALL
public static final java.lang.String SRC_KEY
public static final int SRC_KEY_LEN
public static final java.lang.String SRC_NAME
public static final int SRC_NAME_LEN
Constructor Detail |
public Srcs()
public Srcs(int pk)
Method Detail |
public java.lang.Integer getObjSrc_key()
public int getSrc_key()
public void setSrc_key(java.lang.Integer newVal)
public void setSrc_key(int newVal)
public java.lang.String getObjSrc_name()
public java.lang.String getSrc_name()
public void setSrc_name(java.lang.String newVal)
public java.lang.Object clone()
public static Srcs load(java.sql.ResultSet results) throws java.sql.SQLException
java.sql.SQLException
public static Srcs load(java.sql.ResultSet results, Srcs 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 |