com.aurel.track.persist
Class BaseTAttributeType

java.lang.Object
  extended by BaseObject
      extended by com.aurel.track.persist.BaseTAttributeType
Direct Known Subclasses:
TAttributeType

public abstract class BaseTAttributeType
extends BaseObject

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


Constructor Summary
BaseTAttributeType()
           
 
Method Summary
 TAttributeType copy()
          Makes a copy of this object.
 TAttributeType copy(boolean deepcopy)
          Makes a copy of this object.
 TAttributeType copy(boolean deepcopy, java.sql.Connection con)
          Makes a copy of this object using connection.
 TAttributeType copy(java.sql.Connection con)
          Makes a copy of this object using connection.
protected  TAttributeType copyInto(TAttributeType copyObj)
          Fills the copyObj with the contents of this object.
protected  TAttributeType copyInto(TAttributeType copyObj, boolean deepcopy)
          Fills the copyObj with the contents of this object.
protected  TAttributeType copyInto(TAttributeType copyObj, boolean deepcopy, java.sql.Connection con)
          Fills the copyObj with the contents of this object using connection.
protected  TAttributeType copyInto(TAttributeType copyObj, java.sql.Connection con)
          Fills the copyObj with the contents of this object using connection.
static TAttributeType createTAttributeType(TAttributeTypeBean bean)
          Creates an instance of TAttributeType with the contents of a TAttributeTypeBean.
static TAttributeType createTAttributeType(TAttributeTypeBean bean, IdentityMap createdObjects)
          Creates an instance of TAttributeType with the contents of a TAttributeTypeBean.
 java.lang.Integer getAttributeClass()
          Get the AttributeClass
 java.lang.String getAttributeTypeName()
          Get the AttributeTypeName
 TAttributeTypeBean getBean()
          Creates a TAttributeTypeBean with the contents of this object This also creates beans for cached related objects, if they exist
 TAttributeTypeBean getBean(IdentityMap createdBeans)
          Creates a TAttributeTypeBean 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 getJavaClassName()
          Get the JavaClassName
 java.lang.Integer getObjectID()
          Get the ObjectID
 TAttributeTypePeer getPeer()
          returns a peer instance associated with this om.
 ObjectKey getPrimaryKey()
          returns an id that differentiates this object from others of its class.
 TableMap getTableMap()
          Retrieves the TableMap object related to this Table data without compiler warnings of using getPeer().getTableMap().
 TAttributeClass getTAttributeClass()
          Returns the associated TAttributeClass object.
 TAttributeClass getTAttributeClass(java.sql.Connection connection)
          Return the associated TAttributeClass object If it was not retrieved before, the object is retrieved from the database using the passed connection
 java.lang.String getValidationKey()
          Get the ValidationKey
 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.
 void setAttributeClass(java.lang.Integer v)
          Set the value of AttributeClass
 void setAttributeTypeName(java.lang.String v)
          Set the value of AttributeTypeName
 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 setJavaClassName(java.lang.String v)
          Set the value of JavaClassName
 void setObjectID(java.lang.Integer v)
          Set the value of ObjectID
 void setPrimaryKey(ObjectKey key)
          Set the PrimaryKey using ObjectKey.
 void setTAttributeClass(TAttributeClass v)
          Declares an association between this object and a TAttributeClass object
 void setTAttributeClassKey(ObjectKey key)
          Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey())
 void setValidationKey(java.lang.String v)
          Set the value of ValidationKey
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTAttributeType

public BaseTAttributeType()
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

getAttributeTypeName

public java.lang.String getAttributeTypeName()
Get the AttributeTypeName

Returns:
String

setAttributeTypeName

public void setAttributeTypeName(java.lang.String v)
Set the value of AttributeTypeName

Parameters:
v - new value

getAttributeClass

public java.lang.Integer getAttributeClass()
Get the AttributeClass

Returns:
Integer

setAttributeClass

public void setAttributeClass(java.lang.Integer v)
                       throws TorqueException
Set the value of AttributeClass

Parameters:
v - new value
Throws:
TorqueException

getJavaClassName

public java.lang.String getJavaClassName()
Get the JavaClassName

Returns:
String

setJavaClassName

public void setJavaClassName(java.lang.String v)
Set the value of JavaClassName

Parameters:
v - new value

getValidationKey

public java.lang.String getValidationKey()
Get the ValidationKey

Returns:
String

setValidationKey

public void setValidationKey(java.lang.String v)
Set the value of ValidationKey

Parameters:
v - new value

setTAttributeClass

public void setTAttributeClass(TAttributeClass v)
                        throws TorqueException
Declares an association between this object and a TAttributeClass object

Parameters:
v - TAttributeClass
Throws:
TorqueException

getTAttributeClass

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

Returns:
the associated TAttributeClass object
Throws:
TorqueException

getTAttributeClass

public TAttributeClass getTAttributeClass(java.sql.Connection connection)
                                   throws TorqueException
Return the associated TAttributeClass 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 TAttributeClass object
Throws:
TorqueException

setTAttributeClassKey

public void setTAttributeClassKey(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 TAttributeType 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 TAttributeType 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 TAttributeType 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 TAttributeType 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 TAttributeType copyInto(TAttributeType 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 TAttributeType copyInto(TAttributeType 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 TAttributeType copyInto(TAttributeType 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 TAttributeType copyInto(TAttributeType 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 TAttributeTypePeer 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 TAttributeTypeBean getBean()
Creates a TAttributeTypeBean with the contents of this object This also creates beans for cached related objects, if they exist

Returns:
a TAttributeTypeBean with the contents of this object

getBean

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

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

createTAttributeType

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

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

createTAttributeType

public static TAttributeType createTAttributeType(TAttributeTypeBean bean,
                                                  IdentityMap createdObjects)
                                           throws TorqueException
Creates an instance of TAttributeType with the contents of a TAttributeTypeBean. 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 TAttributeTypeBean which contents are used to create the resulting class
createdObjects - a IdentityMap which maps beans to already created objects
Returns:
an instance of TAttributeType 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.