|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bristle.javalib.sql.bristle.AbstractStandardTableBackedObject
public abstract class AbstractStandardTableBackedObject
This abstract class carries data for a single object that is backed by a table in a database, including all of the fields that are required to exist in all database tables according to the Bristle Software database standards.
Usage:
- The typical scenarios for using this class are:
Assumptions:
Effects:
- None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
$Log$
| Constructor Summary | |
|---|---|
AbstractStandardTableBackedObject()
|
|
| Method Summary | |
|---|---|
abstract AbstractStandardTableBackedObject |
getCLASS_OF_OBJECTS()
Get the special instance that indicates the class of objects instead of any one particular instance. |
abstract int |
getClassId()
Get the id of the class of objects. |
String |
getCreateDT()
Get the date and time at which it was created. |
String |
getCreateUser()
Get the username of the user who created it. |
static int |
getDefaultNullClassId()
Get the default the value that indicates a null id of the class of objects. |
static int |
getDefaultNullId()
Get the default for the value that indicates a null id. |
int |
getId()
Get the id. |
int |
getNullClassId()
Get the value that indicates a null id of the class of objects. |
int |
getNullId()
Get the value that indicates a null id. |
AbstractDictionaryEntry |
getStatus()
Get the status. |
abstract String |
getTableName()
Get the name of the database table that holds the class of objects. |
String |
getUpdateDT()
Get the date and time at which it was last updated. |
String |
getUpdateUser()
Get the username of the user who last updated it. |
void |
setCreateDT(String strVal)
Set the date and time at which it was created. |
void |
setCreateUser(String strVal)
Set the username of the user who created it. |
void |
setId(int intVal)
Set the id. |
void |
setStatus(AbstractDictionaryEntry objVal)
Set the status. |
void |
setUpdateDT(String strVal)
Set the date and time at which it was last updated. |
void |
setUpdateUser(String strVal)
Set the username of the user who last updated it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractStandardTableBackedObject()
| Method Detail |
|---|
public int getId()
public void setId(int intVal)
intVal - The value to set.public String getCreateUser()
public void setCreateUser(String strVal)
strVal - The value to set.public String getCreateDT()
public void setCreateDT(String strVal)
strVal - The value to set.public String getUpdateUser()
public void setUpdateUser(String strVal)
strVal - The value to set.public String getUpdateDT()
public void setUpdateDT(String strVal)
strVal - The value to set.public AbstractDictionaryEntry getStatus()
public void setStatus(AbstractDictionaryEntry objVal)
objVal - The value to set.public int getNullId()
Implementation Note: Not abstract, so subclasses can implicitly use the default value for null id.
public static int getDefaultNullId()
Implementation Note: Not abstract, so subclasses can explicitly choose if and when to use the default value for null id.
public abstract int getClassId()
Implementation Note: Abstract to force each subclass to explicitly specify its class id. If a subclass doesn't care about class id, it can call getNullClassId() from its override.
public int getNullClassId()
Implementation Note: Not abstract, so subclasses can implicitly use the default value for null class id.
public static int getDefaultNullClassId()
Implementation Note: Not abstract, so subclasses can explicitly choose if and when to use the default value for null class id.
public abstract String getTableName()
Implementation Note: Abstract to force each subclass to explicitly specify its table name.
public abstract AbstractStandardTableBackedObject getCLASS_OF_OBJECTS()
Implementation Note: Abstract to force each subclass to explicitly specify an instance of itself to represent its entire class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||