|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dbobjects.DBObject | +--dbobjects.MyTable
Inner classes inherited from class dbobjects.DBObject |
DBObject.DBBigInteger, DBObject.DBChar, DBObject.DBDate, DBObject.DBDecimal, DBObject.DBDouble, DBObject.DBField, DBObject.DBFloat, DBObject.DBInteger, DBObject.DBLongVarChar, DBObject.DBNoType, DBObject.DBNumeric, DBObject.DBReal, DBObject.DBSmallInt, DBObject.DBTime, DBObject.DBTimestamp, DBObject.DBTinyInt, DBObject.DBVarChar |
Constructor Summary | |
MyTable()
Default Constructor. |
|
MyTable(java.lang.Integer id)
Construct a(n) MyTable object from the database given the primary key.. |
|
MyTable(java.lang.Integer id,
java.lang.String name,
java.lang.String description)
Construct a(n) MyTable object from the given parameters. |
Method Summary | |
int |
create()
Creates a(n) MyTable record in the database - uses default database connection. |
int |
create(java.sql.Connection con)
Creates a(n) MyTable record in the database - uses supplied database connection. |
int |
destroy()
Deletes a(n) MyTable record in the database - uses default database connection. |
int |
destroy(java.sql.Connection con)
Deletes a(n) MyTable record in the database - uses supplied database connection. |
java.lang.Object |
getColumn(java.lang.String column)
Get the value of a column from the database column name. |
java.lang.String |
getDescription()
Get the description for the my_table record. |
java.lang.Integer |
getId()
Get the id for the my_table record. |
java.lang.String |
getName()
Get the name for the my_table record. |
void |
setColumn(java.lang.String column,
java.lang.Object value)
Set the value of a column from the database column name. |
void |
setDescription(java.lang.String description)
Set the description for the my_table record. |
void |
setId(java.lang.Integer id)
Set the id for the my_table record. |
void |
setName(java.lang.String name)
Set the name for the my_table record. |
java.lang.String |
toString()
|
int |
update()
Updates a(n) MyTable record in the database - uses default database connection. |
int |
update(java.sql.Connection con)
Updates a(n) MyTable record in the database - uses supplied database connection. |
Methods inherited from class dbobjects.DBObject |
getConnection, log, psSetObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MyTable()
public MyTable(java.lang.Integer id, java.lang.String name, java.lang.String description)
public MyTable(java.lang.Integer id)
Method Detail |
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
id
- The value to set the id to.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The value to set the name to.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The value to set the description to.public java.lang.Object getColumn(java.lang.String column)
public void setColumn(java.lang.String column, java.lang.Object value)
public int create()
public int create(java.sql.Connection con)
public int update()
public int update(java.sql.Connection con)
public int destroy()
public int destroy(java.sql.Connection con)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |