com.aurel.track.persist
Class BaseTBaseLine

java.lang.Object
  extended by BaseObject
      extended by com.aurel.track.persist.BaseTBaseLine
Direct Known Subclasses:
TBaseLine

public abstract class BaseTBaseLine
extends BaseObject

You should not use this class directly. It should not even be extended all references should be to TBaseLine


Constructor Summary
BaseTBaseLine()
           
 
Method Summary
 TBaseLine copy()
          Makes a copy of this object.
 TBaseLine copy(boolean deepcopy)
          Makes a copy of this object.
 TBaseLine copy(boolean deepcopy, java.sql.Connection con)
          Makes a copy of this object using connection.
 TBaseLine copy(java.sql.Connection con)
          Makes a copy of this object using connection.
protected  TBaseLine copyInto(TBaseLine copyObj)
          Fills the copyObj with the contents of this object.
protected  TBaseLine copyInto(TBaseLine copyObj, boolean deepcopy)
          Fills the copyObj with the contents of this object.
protected  TBaseLine copyInto(TBaseLine copyObj, boolean deepcopy, java.sql.Connection con)
          Fills the copyObj with the contents of this object using connection.
protected  TBaseLine copyInto(TBaseLine copyObj, java.sql.Connection con)
          Fills the copyObj with the contents of this object using connection.
static TBaseLine createTBaseLine(TBaseLineBean bean)
          Creates an instance of TBaseLine with the contents of a TBaseLineBean.
static TBaseLine createTBaseLine(TBaseLineBean bean, IdentityMap createdObjects)
          Creates an instance of TBaseLine with the contents of a TBaseLineBean.
 TBaseLineBean getBean()
          Creates a TBaseLineBean with the contents of this object This also creates beans for cached related objects, if they exist
 TBaseLineBean getBean(IdentityMap createdBeans)
          Creates a TBaseLineBean 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.
 java.lang.Integer getChangedByID()
          Get the ChangedByID
 java.util.Date getEndDate()
          Get the EndDate
static java.util.List getFieldNames()
          Generate a list of field names.
 java.util.Date getLastEdit()
          Get the LastEdit
 java.lang.Integer getObjectID()
          Get the ObjectID
 TBaseLinePeer 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.String getReasonForChange()
          Get the ReasonForChange
 java.util.Date getStartDate()
          Get the StartDate
 TableMap getTableMap()
          Retrieves the TableMap object related to this Table data without compiler warnings of using getPeer().getTableMap().
 TPerson getTPerson()
          Returns the associated TPerson object.
 TPerson getTPerson(java.sql.Connection connection)
          Return the associated TPerson object If it was not retrieved before, the object is retrieved from the database using the passed connection
 TWorkItem getTWorkItem()
          Returns the associated TWorkItem object.
 TWorkItem getTWorkItem(java.sql.Connection connection)
          Return the associated TWorkItem object If it was not retrieved before, the object is retrieved from the database using the passed connection
 java.lang.Integer getWorkItemID()
          Get the WorkItemID
 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 setChangedByID(java.lang.Integer v)
          Set the value of ChangedByID
 void setEndDate(java.util.Date v)
          Set the value of EndDate
 void setLastEdit(java.util.Date v)
          Set the value of LastEdit
 void setObjectID(java.lang.Integer v)
          Set the value of ObjectID
 void setPrimaryKey(ObjectKey key)
          Set the PrimaryKey using ObjectKey.
 void setReasonForChange(java.lang.String v)
          Set the value of ReasonForChange
 void setStartDate(java.util.Date v)
          Set the value of StartDate
 void setTPerson(TPerson v)
          Declares an association between this object and a TPerson object
 void setTPersonKey(ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey())
 void setTWorkItem(TWorkItem v)
          Declares an association between this object and a TWorkItem object
 void setTWorkItemKey(ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey())
 void setWorkItemID(java.lang.Integer v)
          Set the value of WorkItemID
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTBaseLine

public BaseTBaseLine()
Method Detail

getObjectID

public java.lang.Integer getObjectID()
Get the ObjectID

Returns:
Integer

setObjectID

public void setObjectID(java.lang.Integer v)
Set the value of ObjectID

Parameters:
v - new value

getWorkItemID

public java.lang.Integer getWorkItemID()
Get the WorkItemID

Returns:
Integer

setWorkItemID

public void setWorkItemID(java.lang.Integer v)
                   throws TorqueException
Set the value of WorkItemID

Parameters:
v - new value
Throws:
TorqueException

getStartDate

public java.util.Date getStartDate()
Get the StartDate

Returns:
Date

setStartDate

public void setStartDate(java.util.Date v)
Set the value of StartDate

Parameters:
v - new value

getEndDate

public java.util.Date getEndDate()
Get the EndDate

Returns:
Date

setEndDate

public void setEndDate(java.util.Date v)
Set the value of EndDate

Parameters:
v - new value

getReasonForChange

public java.lang.String getReasonForChange()
Get the ReasonForChange

Returns:
String

setReasonForChange

public void setReasonForChange(java.lang.String v)
Set the value of ReasonForChange

Parameters:
v - new value

getChangedByID

public java.lang.Integer getChangedByID()
Get the ChangedByID

Returns:
Integer

setChangedByID

public void setChangedByID(java.lang.Integer v)
                    throws TorqueException
Set the value of ChangedByID

Parameters:
v - new value
Throws:
TorqueException

getLastEdit

public java.util.Date getLastEdit()
Get the LastEdit

Returns:
Date

setLastEdit

public void setLastEdit(java.util.Date v)
Set the value of LastEdit

Parameters:
v - new value

setTWorkItem

public void setTWorkItem(TWorkItem v)
                  throws TorqueException
Declares an association between this object and a TWorkItem object

Parameters:
v - TWorkItem
Throws:
TorqueException

getTWorkItem

public TWorkItem getTWorkItem()
                       throws TorqueException
Returns the associated TWorkItem object. If it was not retrieved before, the object is retrieved from the database

Returns:
the associated TWorkItem object
Throws:
TorqueException

getTWorkItem

public TWorkItem getTWorkItem(java.sql.Connection connection)
                       throws TorqueException
Return the associated TWorkItem object If it was not retrieved before, the object is retrieved from the database using the passed connection

Parameters:
connection - the connection used to retrieve the associated object from the database, if it was not retrieved before
Returns:
the associated TWorkItem object
Throws:
TorqueException

setTWorkItemKey

public void setTWorkItemKey(ObjectKey key)
                     throws TorqueException
Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey())

Throws:
TorqueException

setTPerson

public void setTPerson(TPerson v)
                throws TorqueException
Declares an association between this object and a TPerson object

Parameters:
v - TPerson
Throws:
TorqueException

getTPerson

public TPerson getTPerson()
                   throws TorqueException
Returns the associated TPerson object. If it was not retrieved before, the object is retrieved from the database

Returns:
the associated TPerson object
Throws:
TorqueException

getTPerson

public TPerson getTPerson(java.sql.Connection connection)
                   throws TorqueException
Return the associated TPerson object If it was not retrieved before, the object is retrieved from the database using the passed connection

Parameters:
connection - the connection used to retrieve the associated object from the database, if it was not retrieved before
Returns:
the associated TPerson object
Throws:
TorqueException

setTPersonKey

public void setTPersonKey(ObjectKey key)
                   throws TorqueException
Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey())

Throws:
TorqueException

getFieldNames

public static java.util.List getFieldNames()
Generate a list of field names.

Returns:
a list of field names

getByName

public java.lang.Object getByName(java.lang.String name)
Retrieves a field from the object by field (Java) name passed in as a String.

Parameters:
name - field name
Returns:
value

setByName

public boolean setByName(java.lang.String name,
                         java.lang.Object value)
                  throws TorqueException,
                         java.lang.IllegalArgumentException
Set a field in the object by field (Java) name.

Parameters:
name - field name
value - field value
Returns:
True if value was set, false if not (invalid name / protected field).
Throws:
java.lang.IllegalArgumentException - if object type of value does not match field object type.
TorqueException - If a problem occurs with the set[Field] method.

getByPeerName

public java.lang.Object getByPeerName(java.lang.String name)
Retrieves a field from the object by name passed in as a String. The String must be one of the static Strings defined in this Class' Peer.

Parameters:
name - peer name
Returns:
value

setByPeerName

public boolean setByPeerName(java.lang.String name,
                             java.lang.Object value)
                      throws TorqueException,
                             java.lang.IllegalArgumentException
Set field values by Peer Field Name

Parameters:
name - field name
value - field value
Returns:
True if value was set, false if not (invalid name / protected field).
Throws:
java.lang.IllegalArgumentException - if object type of value does not match field object type.
TorqueException - If a problem occurs with the set[Field] method.

getByPosition

public java.lang.Object getByPosition(int pos)
Retrieves a field from the object by Position as specified in the xml schema. Zero-based.

Parameters:
pos - position in xml schema
Returns:
value

setByPosition

public boolean setByPosition(int position,
                             java.lang.Object value)
                      throws TorqueException,
                             java.lang.IllegalArgumentException
Set field values by its position (zero based) in the XML schema.

Parameters:
position - The field position
value - field value
Returns:
True if value was set, false if not (invalid position / protected field).
Throws:
java.lang.IllegalArgumentException - if object type of value does not match field object type.
TorqueException - If a problem occurs with the set[Field] method.

save

public void save()
          throws java.lang.Exception
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.

Throws:
java.lang.Exception

save

public void save(java.lang.String dbName)
          throws TorqueException
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. Note: this code is here because the method body is auto-generated conditionally and therefore needs to be in this file instead of in the super class, BaseObject.

Parameters:
dbName -
Throws:
TorqueException

save

public void save(java.sql.Connection con)
          throws TorqueException
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. This method is meant to be used as part of a transaction, otherwise use the save() method and the connection details will be handled internally

Parameters:
con -
Throws:
TorqueException

setPrimaryKey

public void setPrimaryKey(ObjectKey key)
Set the PrimaryKey using ObjectKey.

Parameters:
key - objectID ObjectKey

getPrimaryKey

public ObjectKey getPrimaryKey()
returns an id that differentiates this object from others of its class.


copy

public TBaseLine copy()
               throws TorqueException
Makes a copy of this object. It creates a new object filling in the simple attributes. It then fills all the association collections and sets the related objects to isNew=true.

Throws:
TorqueException

copy

public TBaseLine copy(java.sql.Connection con)
               throws TorqueException
Makes a copy of this object using connection. It creates a new object filling in the simple attributes. It then fills all the association collections and sets the related objects to isNew=true.

Parameters:
con - the database connection to read associated objects.
Throws:
TorqueException

copy

public TBaseLine copy(boolean deepcopy)
               throws TorqueException
Makes a copy of this object. It creates a new object filling in the simple attributes. If the parameter deepcopy is true, it then fills all the association collections and sets the related objects to isNew=true.

Parameters:
deepcopy - whether to copy the associated objects.
Throws:
TorqueException

copy

public TBaseLine copy(boolean deepcopy,
                      java.sql.Connection con)
               throws TorqueException
Makes a copy of this object using connection. It creates a new object filling in the simple attributes. If the parameter deepcopy is true, it then fills all the association collections and sets the related objects to isNew=true.

Parameters:
deepcopy - whether to copy the associated objects.
con - the database connection to read associated objects.
Throws:
TorqueException

copyInto

protected TBaseLine copyInto(TBaseLine copyObj)
                      throws TorqueException
Fills the copyObj with the contents of this object. The associated objects are also copied and treated as new objects.

Parameters:
copyObj - the object to fill.
Throws:
TorqueException

copyInto

protected TBaseLine copyInto(TBaseLine copyObj,
                             java.sql.Connection con)
                      throws TorqueException
Fills the copyObj with the contents of this object using connection. The associated objects are also copied and treated as new objects.

Parameters:
copyObj - the object to fill.
con - the database connection to read associated objects.
Throws:
TorqueException

copyInto

protected TBaseLine copyInto(TBaseLine copyObj,
                             boolean deepcopy)
                      throws TorqueException
Fills the copyObj with the contents of this object. If deepcopy is true, The associated objects are also copied and treated as new objects.

Parameters:
copyObj - the object to fill.
deepcopy - whether the associated objects should be copied.
Throws:
TorqueException

copyInto

protected TBaseLine copyInto(TBaseLine copyObj,
                             boolean deepcopy,
                             java.sql.Connection con)
                      throws TorqueException
Fills the copyObj with the contents of this object using connection. If deepcopy is true, The associated objects are also copied and treated as new objects.

Parameters:
copyObj - the object to fill.
deepcopy - whether the associated objects should be copied.
con - the database connection to read associated objects.
Throws:
TorqueException

getPeer

public TBaseLinePeer getPeer()
returns a peer instance associated with this om. Since Peer classes are not to have any instance attributes, this method returns the same instance for all member of this class. The method could therefore be static, but this would prevent one from overriding the behavior.


getTableMap

public TableMap getTableMap()
                     throws TorqueException
Retrieves the TableMap object related to this Table data without compiler warnings of using getPeer().getTableMap().

Returns:
The associated TableMap object.
Throws:
TorqueException

getBean

public TBaseLineBean getBean()
Creates a TBaseLineBean with the contents of this object This also creates beans for cached related objects, if they exist

Returns:
a TBaseLineBean with the contents of this object

getBean

public TBaseLineBean getBean(IdentityMap createdBeans)
Creates a TBaseLineBean with the contents of this object intended for internal use only

Parameters:
createdBeans - a IdentityMap which maps objects to already created beans
Returns:
a TBaseLineBean with the contents of this object

createTBaseLine

public static TBaseLine createTBaseLine(TBaseLineBean bean)
                                 throws TorqueException
Creates an instance of TBaseLine with the contents of a TBaseLineBean. This behaviour could have also been achieved using a constructor, however as this class is abstract no constructors are allowed

Parameters:
bean - the TBaseLineBean which contents are used to create the resulting class
Returns:
an instance of TBaseLine with the contents of bean
Throws:
TorqueException

createTBaseLine

public static TBaseLine createTBaseLine(TBaseLineBean bean,
                                        IdentityMap createdObjects)
                                 throws TorqueException
Creates an instance of TBaseLine with the contents of a TBaseLineBean. This behaviour could have also been achieved using a constructor, however as this class is abstract no constructors are allowed. This method is intended for internal use only.

Parameters:
bean - the TBaseLineBean which contents are used to create the resulting class
createdObjects - a IdentityMap which maps beans to already created objects
Returns:
an instance of TBaseLine with the contents of bean
Throws:
TorqueException

toString

public java.lang.String toString()


Issue Tracking with Track+: Home Page      Copyright © 2008 Trackplus. All Rights Reserved.