|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBaseObject
com.aurel.track.persist.BaseTClass
public abstract class BaseTClass
You should not use this class directly. It should not even be extended all references should be to TClass
| Field Summary | |
|---|---|
protected java.util.List |
collTWorkItems
Collection to store aggregation of collTWorkItems |
| Constructor Summary | |
|---|---|
BaseTClass()
|
|
| Method Summary | |
|---|---|
void |
addTWorkItem(TWorkItem l)
Method called to associate a TWorkItem object to this object through the TWorkItem foreign key attribute |
void |
addTWorkItem(TWorkItem l,
java.sql.Connection con)
Method called to associate a TWorkItem object to this object through the TWorkItem foreign key attribute using connection. |
protected void |
addTWorkItemFromBean(TWorkItem toAdd)
Method called to associate a TWorkItem object to this object. |
TClass |
copy()
Makes a copy of this object. |
TClass |
copy(boolean deepcopy)
Makes a copy of this object. |
TClass |
copy(boolean deepcopy,
java.sql.Connection con)
Makes a copy of this object using connection. |
TClass |
copy(java.sql.Connection con)
Makes a copy of this object using connection. |
protected TClass |
copyInto(TClass copyObj)
Fills the copyObj with the contents of this object. |
protected TClass |
copyInto(TClass copyObj,
boolean deepcopy)
Fills the copyObj with the contents of this object. |
protected TClass |
copyInto(TClass copyObj,
boolean deepcopy,
java.sql.Connection con)
Fills the copyObj with the contents of this object using connection. |
protected TClass |
copyInto(TClass copyObj,
java.sql.Connection con)
Fills the copyObj with the contents of this object using connection. |
static TClass |
createTClass(TClassBean bean)
Creates an instance of TClass with the contents of a TClassBean. |
static TClass |
createTClass(TClassBean bean,
IdentityMap createdObjects)
Creates an instance of TClass with the contents of a TClassBean. |
TClassBean |
getBean()
Creates a TClassBean with the contents of this object This also creates beans for cached related objects, if they exist |
TClassBean |
getBean(IdentityMap createdBeans)
Creates a TClassBean with the contents of this object intended for internal use only |
java.lang.Object |
getByName(java.lang.String name)
Retrieves a field from the object by field (Java) name passed in as a String. |
java.lang.Object |
getByPeerName(java.lang.String name)
Retrieves a field from the object by name passed in as a String. |
java.lang.Object |
getByPosition(int pos)
Retrieves a field from the object by Position as specified in the xml schema. |
static java.util.List |
getFieldNames()
Generate a list of field names. |
java.lang.String |
getLabel()
Get the Label |
java.lang.Integer |
getObjectID()
Get the ObjectID |
TClassPeer |
getPeer()
returns a peer instance associated with this om. |
ObjectKey |
getPrimaryKey()
returns an id that differentiates this object from others of its class. |
java.lang.Integer |
getProjectID()
Get the ProjectID |
TableMap |
getTableMap()
Retrieves the TableMap object related to this Table data without compiler warnings of using getPeer().getTableMap(). |
TProject |
getTProject()
Returns the associated TProject object. |
TProject |
getTProject(java.sql.Connection connection)
Return the associated TProject object If it was not retrieved before, the object is retrieved from the database using the passed connection |
java.util.List |
getTWorkItems()
If this collection has already been initialized, returns the collection. |
java.util.List |
getTWorkItems(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
java.util.List |
getTWorkItems(Criteria criteria,
java.sql.Connection con)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTClass(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTListType(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTPersonRelatedByChangedByID(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTPersonRelatedByOriginatorID(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTPersonRelatedByOwnerID(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTPersonRelatedByResponsibleID(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTPriority(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTProjectCategory(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTReleaseRelatedByReleaseNoticedID(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTReleaseRelatedByReleaseScheduledID(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTSeverity(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected java.util.List |
getTWorkItemsJoinTState(Criteria criteria)
If this collection has already been initialized with an identical criteria, it returns the collection. |
protected void |
initTWorkItems()
Temporary storage of collTWorkItems to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested. |
void |
save()
Stores the object in the database. |
void |
save(java.sql.Connection con)
Stores the object in the database. |
void |
save(java.lang.String dbName)
Stores the object in the database. |
boolean |
setByName(java.lang.String name,
java.lang.Object value)
Set a field in the object by field (Java) name. |
boolean |
setByPeerName(java.lang.String name,
java.lang.Object value)
Set field values by Peer Field Name |
boolean |
setByPosition(int position,
java.lang.Object value)
Set field values by its position (zero based) in the XML schema. |
void |
setLabel(java.lang.String v)
Set the value of Label |
void |
setObjectID(java.lang.Integer v)
Set the value of ObjectID |
void |
setPrimaryKey(ObjectKey key)
Set the PrimaryKey using ObjectKey. |
void |
setProjectID(java.lang.Integer v)
Set the value of ProjectID |
void |
setTProject(TProject v)
Declares an association between this object and a TProject object |
void |
setTProjectKey(ObjectKey key)
Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey()) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List collTWorkItems
| Constructor Detail |
|---|
public BaseTClass()
| Method Detail |
|---|
public java.lang.Integer getObjectID()
public void setObjectID(java.lang.Integer v)
throws TorqueException
v - new value
TorqueExceptionpublic java.lang.String getLabel()
public void setLabel(java.lang.String v)
v - new valuepublic java.lang.Integer getProjectID()
public void setProjectID(java.lang.Integer v)
throws TorqueException
v - new value
TorqueException
public void setTProject(TProject v)
throws TorqueException
v - TProject
TorqueException
public TProject getTProject()
throws TorqueException
TorqueException
public TProject getTProject(java.sql.Connection connection)
throws TorqueException
connection - the connection used to retrieve the associated object
from the database, if it was not retrieved before
TorqueException
public void setTProjectKey(ObjectKey key)
throws TorqueException
bar.setFooKey(foo.getPrimaryKey())
TorqueExceptionprotected void initTWorkItems()
public void addTWorkItem(TWorkItem l)
throws TorqueException
l - TWorkItem
TorqueException
public void addTWorkItem(TWorkItem l,
java.sql.Connection con)
throws TorqueException
l - TWorkItem
TorqueException
public java.util.List getTWorkItems()
throws TorqueException
TorqueException
public java.util.List getTWorkItems(Criteria criteria)
throws TorqueException
TorqueException
public java.util.List getTWorkItems(Criteria criteria,
java.sql.Connection con)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTPersonRelatedByOwnerID(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTPersonRelatedByChangedByID(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTPersonRelatedByOriginatorID(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTPersonRelatedByResponsibleID(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTProjectCategory(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTListType(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTClass(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTPriority(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTSeverity(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTReleaseRelatedByReleaseNoticedID(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTReleaseRelatedByReleaseScheduledID(Criteria criteria)
throws TorqueException
TorqueException
protected java.util.List getTWorkItemsJoinTState(Criteria criteria)
throws TorqueException
TorqueExceptionpublic static java.util.List getFieldNames()
public java.lang.Object getByName(java.lang.String name)
name - field name
public boolean setByName(java.lang.String name,
java.lang.Object value)
throws TorqueException,
java.lang.IllegalArgumentException
name - field namevalue - field value
java.lang.IllegalArgumentException - if object type of value does not match field object type.
TorqueException - If a problem occurs with the set[Field] method.public java.lang.Object getByPeerName(java.lang.String name)
name - peer name
public boolean setByPeerName(java.lang.String name,
java.lang.Object value)
throws TorqueException,
java.lang.IllegalArgumentException
name - field namevalue - field value
java.lang.IllegalArgumentException - if object type of value does not match field object type.
TorqueException - If a problem occurs with the set[Field] method.public java.lang.Object getByPosition(int pos)
pos - position in xml schema
public boolean setByPosition(int position,
java.lang.Object value)
throws TorqueException,
java.lang.IllegalArgumentException
position - The field positionvalue - field value
java.lang.IllegalArgumentException - if object type of value does not match field object type.
TorqueException - If a problem occurs with the set[Field] method.
public void save()
throws java.lang.Exception
java.lang.Exception
public void save(java.lang.String dbName)
throws TorqueException
dbName -
TorqueException
public void save(java.sql.Connection con)
throws TorqueException
con -
TorqueException
public void setPrimaryKey(ObjectKey key)
throws TorqueException
key - objectID ObjectKey
TorqueExceptionpublic ObjectKey getPrimaryKey()
public TClass copy()
throws TorqueException
TorqueException
public TClass copy(java.sql.Connection con)
throws TorqueException
con - the database connection to read associated objects.
TorqueException
public TClass copy(boolean deepcopy)
throws TorqueException
deepcopy - whether to copy the associated objects.
TorqueException
public TClass copy(boolean deepcopy,
java.sql.Connection con)
throws TorqueException
deepcopy - whether to copy the associated objects.con - the database connection to read associated objects.
TorqueException
protected TClass copyInto(TClass copyObj)
throws TorqueException
copyObj - the object to fill.
TorqueException
protected TClass copyInto(TClass copyObj,
java.sql.Connection con)
throws TorqueException
copyObj - the object to fill.con - the database connection to read associated objects.
TorqueException
protected TClass copyInto(TClass copyObj,
boolean deepcopy)
throws TorqueException
copyObj - the object to fill.deepcopy - whether the associated objects should be copied.
TorqueException
protected TClass copyInto(TClass copyObj,
boolean deepcopy,
java.sql.Connection con)
throws TorqueException
copyObj - the object to fill.deepcopy - whether the associated objects should be copied.con - the database connection to read associated objects.
TorqueExceptionpublic TClassPeer getPeer()
public TableMap getTableMap()
throws TorqueException
TorqueExceptionpublic TClassBean getBean()
public TClassBean getBean(IdentityMap createdBeans)
createdBeans - a IdentityMap which maps objects
to already created beans
public static TClass createTClass(TClassBean bean)
throws TorqueException
bean - the TClassBean which contents are used to create
the resulting class
TorqueException
public static TClass createTClass(TClassBean bean,
IdentityMap createdObjects)
throws TorqueException
bean - the TClassBean which contents are used to create
the resulting classcreatedObjects - a IdentityMap which maps beans
to already created objects
TorqueExceptionprotected void addTWorkItemFromBean(TWorkItem toAdd)
toAdd - TWorkItempublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||