com.aurel.track.persist
Class BaseTLocalizedResources

java.lang.Object
  extended by BaseObject
      extended by com.aurel.track.persist.BaseTLocalizedResources
Direct Known Subclasses:
TLocalizedResources

public abstract class BaseTLocalizedResources
extends BaseObject

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


Constructor Summary
BaseTLocalizedResources()
           
 
Method Summary
 TLocalizedResources copy()
          Makes a copy of this object.
 TLocalizedResources copy(boolean deepcopy)
          Makes a copy of this object.
 TLocalizedResources copy(boolean deepcopy, java.sql.Connection con)
          Makes a copy of this object using connection.
 TLocalizedResources copy(java.sql.Connection con)
          Makes a copy of this object using connection.
protected  TLocalizedResources copyInto(TLocalizedResources copyObj)
          Fills the copyObj with the contents of this object.
protected  TLocalizedResources copyInto(TLocalizedResources copyObj, boolean deepcopy)
          Fills the copyObj with the contents of this object.
protected  TLocalizedResources copyInto(TLocalizedResources copyObj, boolean deepcopy, java.sql.Connection con)
          Fills the copyObj with the contents of this object using connection.
protected  TLocalizedResources copyInto(TLocalizedResources copyObj, java.sql.Connection con)
          Fills the copyObj with the contents of this object using connection.
static TLocalizedResources createTLocalizedResources(TLocalizedResourcesBean bean)
          Creates an instance of TLocalizedResources with the contents of a TLocalizedResourcesBean.
static TLocalizedResources createTLocalizedResources(TLocalizedResourcesBean bean, IdentityMap createdObjects)
          Creates an instance of TLocalizedResources with the contents of a TLocalizedResourcesBean.
 TLocalizedResourcesBean getBean()
          Creates a TLocalizedResourcesBean with the contents of this object This also creates beans for cached related objects, if they exist
 TLocalizedResourcesBean getBean(IdentityMap createdBeans)
          Creates a TLocalizedResourcesBean 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.String getFieldName()
          Get the FieldName
static java.util.List getFieldNames()
          Generate a list of field names.
 java.lang.String getLocale()
          Get the Locale
 java.lang.String getLocalizedText()
          Get the LocalizedText
 java.lang.Integer getObjectID()
          Get the ObjectID
 TLocalizedResourcesPeer 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 getPrimaryKeyValue()
          Get the PrimaryKeyValue
 TableMap getTableMap()
          Retrieves the TableMap object related to this Table data without compiler warnings of using getPeer().getTableMap().
 java.lang.String getTableName()
          Get the TableName
 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 setFieldName(java.lang.String v)
          Set the value of FieldName
 void setLocale(java.lang.String v)
          Set the value of Locale
 void setLocalizedText(java.lang.String v)
          Set the value of LocalizedText
 void setObjectID(java.lang.Integer v)
          Set the value of ObjectID
 void setPrimaryKey(ObjectKey key)
          Set the PrimaryKey using ObjectKey.
 void setPrimaryKeyValue(java.lang.Integer v)
          Set the value of PrimaryKeyValue
 void setTableName(java.lang.String v)
          Set the value of TableName
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTLocalizedResources

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

getTableName

public java.lang.String getTableName()
Get the TableName

Returns:
String

setTableName

public void setTableName(java.lang.String v)
Set the value of TableName

Parameters:
v - new value

getPrimaryKeyValue

public java.lang.Integer getPrimaryKeyValue()
Get the PrimaryKeyValue

Returns:
Integer

setPrimaryKeyValue

public void setPrimaryKeyValue(java.lang.Integer v)
Set the value of PrimaryKeyValue

Parameters:
v - new value

getFieldName

public java.lang.String getFieldName()
Get the FieldName

Returns:
String

setFieldName

public void setFieldName(java.lang.String v)
Set the value of FieldName

Parameters:
v - new value

getLocalizedText

public java.lang.String getLocalizedText()
Get the LocalizedText

Returns:
String

setLocalizedText

public void setLocalizedText(java.lang.String v)
Set the value of LocalizedText

Parameters:
v - new value

getLocale

public java.lang.String getLocale()
Get the Locale

Returns:
String

setLocale

public void setLocale(java.lang.String v)
Set the value of Locale

Parameters:
v - new value

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 TLocalizedResources 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 TLocalizedResources 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 TLocalizedResources 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 TLocalizedResources 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 TLocalizedResources copyInto(TLocalizedResources 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 TLocalizedResources copyInto(TLocalizedResources 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 TLocalizedResources copyInto(TLocalizedResources 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 TLocalizedResources copyInto(TLocalizedResources 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 TLocalizedResourcesPeer 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 TLocalizedResourcesBean getBean()
Creates a TLocalizedResourcesBean with the contents of this object This also creates beans for cached related objects, if they exist

Returns:
a TLocalizedResourcesBean with the contents of this object

getBean

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

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

createTLocalizedResources

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

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

createTLocalizedResources

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