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.
Returns the associated AttributeOption object.
If it was not retrieved before, the object is retrieved from
the database
the associated AttributeOption object throws: TorqueException -
Return the associated AttributeOption 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 objectfrom the database, if it was not retrieved before the associated AttributeOption object throws: TorqueException -
Returns the associated AttributeOption object.
If it was not retrieved before, the object is retrieved from
the database
the associated AttributeOption object throws: TorqueException -
Return the associated AttributeOption 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 objectfrom the database, if it was not retrieved before the associated AttributeOption object throws: TorqueException -
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 value
Returns the associated OptionRelationship object.
If it was not retrieved before, the object is retrieved from
the database
the associated OptionRelationship object throws: TorqueException -
Return the associated OptionRelationship 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 objectfrom the database, if it was not retrieved before the associated OptionRelationship object throws: TorqueException -
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.
Stores the object in the database. If the object is new,
it inserts it; otherwise an update is performed.
throws: TorqueException -
save
public void save(String dbName) throws TorqueException(Code)
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 -
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 -
setAttributeOptionRelatedByOption1Id
public void setAttributeOptionRelatedByOption1Id(AttributeOption v) throws TorqueException(Code)
Declares an association between this object and a AttributeOption object
Parameters: v - AttributeOption throws: TorqueException -
setAttributeOptionRelatedByOption1IdKey
public void setAttributeOptionRelatedByOption1IdKey(ObjectKey key) throws TorqueException(Code)
Provides convenient way to set a relationship based on a
ObjectKey, for example
bar.setFooKey(foo.getPrimaryKey())
setAttributeOptionRelatedByOption2Id
public void setAttributeOptionRelatedByOption2Id(AttributeOption v) throws TorqueException(Code)
Declares an association between this object and a AttributeOption object
Parameters: v - AttributeOption throws: TorqueException -
setAttributeOptionRelatedByOption2IdKey
public void setAttributeOptionRelatedByOption2IdKey(ObjectKey key) throws TorqueException(Code)
Provides convenient way to set a relationship based on a
ObjectKey, for example
bar.setFooKey(foo.getPrimaryKey())
setOption1Id
public void setOption1Id(Integer v) throws TorqueException(Code)
Set the value of Option1Id
Parameters: v - new value
setOption2Id
public void setOption2Id(Integer v) throws TorqueException(Code)
Set the value of Option2Id
Parameters: v - new value