|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bristle.javalib.sql.bristle.AbstractStandardTableBackedObject
com.bristle.javalib.sql.dictionary.AbstractDictionaryEntry
public abstract class AbstractDictionaryEntry
This class carries data for a single dictionary entry. It is useful for any object that requires no more properties than those defined here (numeric id, term, definition, notes, status, etc.) and is commonly mapped to a dictionary or lookup table in a database.
Usage:
- The typical scenarios for using this class are:
Assumptions:
Effects:
- None.
Anticipated Changes:
Notes:
Implementation Notes:
Portability Issues:
Revision History:
$Log$
| Constructor Summary | |
|---|---|
AbstractDictionaryEntry()
Default constructor. |
|
AbstractDictionaryEntry(int intId)
Constructor |
|
AbstractDictionaryEntry(int intId,
AbstractDictionaryEntry internalCategory,
String strCategory,
String strTerm,
String strDefinition,
String strNotes,
String strCreateUser,
String strCreateDT,
String strUpdateUser,
String strUpdateDT,
AbstractDictionaryEntry status)
Constructor |
|
AbstractDictionaryEntry(int intId,
String strTerm,
String strDefinition)
Constructor |
|
| Method Summary | |
|---|---|
String |
getCategory()
Get the category. |
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 |
getDefinition()
Get the definition. |
AbstractDictionaryEntry |
getInternalCategory()
Get the internal category. |
String |
getNotes()
Get the notes. |
abstract String |
getTableName()
Get the name of the database table that holds the class of objects. |
String |
getTerm()
Get the term. |
void |
setAll(int intId,
AbstractDictionaryEntry internalCategory,
String strCategory,
String strTerm,
String strDefinition,
String strNotes,
String strCreateUser,
String strCreateDT,
String strUpdateUser,
String strUpdateDT,
AbstractDictionaryEntry status)
Set all properties. |
void |
setCategory(String strVal)
Set the category. |
void |
setDefinition(String strVal)
Set the definition. |
void |
setInternalCategory(AbstractDictionaryEntry objVal)
Set the internal category. |
void |
setMinimalFields(int intId,
String strTerm,
String strDefinition)
Set only the properties required to use the dictionary entry, without concern for editing it, maintaining it, etc. |
void |
setNotes(String strVal)
Set the notes. |
void |
setTerm(String strVal)
Set the term. |
void |
shallowCopyFrom(AbstractDictionaryEntry objFrom)
Do a shallow copy of all properties from the specified object. |
| Methods inherited from class com.bristle.javalib.sql.bristle.AbstractStandardTableBackedObject |
|---|
getCreateDT, getCreateUser, getDefaultNullClassId, getDefaultNullId, getId, getNullClassId, getNullId, getStatus, getUpdateDT, getUpdateUser, setCreateDT, setCreateUser, setId, setStatus, setUpdateDT, setUpdateUser |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDictionaryEntry()
public AbstractDictionaryEntry(int intId)
intId - The property value.
public AbstractDictionaryEntry(int intId,
String strTerm,
String strDefinition)
intId - The property value.strTerm - The property value.strDefinition - The property value.
public AbstractDictionaryEntry(int intId,
AbstractDictionaryEntry internalCategory,
String strCategory,
String strTerm,
String strDefinition,
String strNotes,
String strCreateUser,
String strCreateDT,
String strUpdateUser,
String strUpdateDT,
AbstractDictionaryEntry status)
intId - The property value.internalCategory - The property value.strCategory - The property value.strTerm - The property value.strDefinition - The property value.strNotes - The property value.strCreateUser - The property value.strCreateDT - The property value.strUpdateUser - The property value.strUpdateDT - The property value.status - The property value.| Method Detail |
|---|
public void setAll(int intId,
AbstractDictionaryEntry internalCategory,
String strCategory,
String strTerm,
String strDefinition,
String strNotes,
String strCreateUser,
String strCreateDT,
String strUpdateUser,
String strUpdateDT,
AbstractDictionaryEntry status)
intId - The property value.internalCategory - The property value.strCategory - The property value.strTerm - The property value.strDefinition - The property value.strNotes - The property value.strCreateUser - The property value.strCreateDT - The property value.strUpdateUser - The property value.strUpdateDT - The property value.status - The property value.public void shallowCopyFrom(AbstractDictionaryEntry objFrom)
objFrom - The object to copy from.
public void setMinimalFields(int intId,
String strTerm,
String strDefinition)
intId - The property value.strTerm - The property value.strDefinition - The property value.public abstract int getClassId()
AbstractStandardTableBackedObjectImplementation 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.
getClassId in class AbstractStandardTableBackedObject
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 abstract AbstractStandardTableBackedObject getCLASS_OF_OBJECTS()
AbstractStandardTableBackedObjectImplementation Note: Abstract to force each subclass to explicitly specify an instance of itself to represent its entire class.
getCLASS_OF_OBJECTS in class AbstractStandardTableBackedObject
Implementation Note:
Abstract to force each subclass to explicitly specify an instance of
itself to represent its entire class.
public abstract String getTableName()
AbstractStandardTableBackedObjectImplementation Note: Abstract to force each subclass to explicitly specify its table name.
getTableName in class AbstractStandardTableBackedObject
Implementation Note:
Abstract to force each subclass to explicitly specify its table name.
public AbstractDictionaryEntry getInternalCategory()
public void setInternalCategory(AbstractDictionaryEntry objVal)
objVal - The value to set.public String getCategory()
public void setCategory(String strVal)
strVal - The value to set.public String getTerm()
public void setTerm(String strVal)
strVal - The value to set.public String getDefinition()
public void setDefinition(String strVal)
strVal - The value to set.public String getNotes()
public void setNotes(String strVal)
strVal - The value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||