public abstract class BaseTorqueTurbineUserGroupRole extends Object implements org.apache.torque.om.Persistent, Serializable
Constructor and Description |
---|
BaseTorqueTurbineUserGroupRole() |
Modifier and Type | Method and Description |
---|---|
TorqueTurbineUserGroupRole |
copy()
Makes a copy of this object.
|
TorqueTurbineUserGroupRole |
copy(boolean deepcopy)
Makes a copy of this object.
|
TorqueTurbineUserGroupRole |
copy(boolean deepcopy,
Connection con)
Makes a copy of this object using connection.
|
TorqueTurbineUserGroupRole |
copy(Connection con)
Makes a copy of this object using a connection.
|
TorqueTurbineUserGroupRole |
copyInto(TorqueTurbineUserGroupRole copyObj)
Fills the copyObj with the contents of this object.
|
protected TorqueTurbineUserGroupRole |
copyInto(TorqueTurbineUserGroupRole copyObj,
boolean deepcopy)
Fills the copyObj with the contents of this object.
|
TorqueTurbineUserGroupRole |
copyInto(TorqueTurbineUserGroupRole copyObj,
boolean deepcopy,
Connection con)
Fills the copyObj with the contents of this object using connection.
|
TorqueTurbineUserGroupRole |
copyInto(TorqueTurbineUserGroupRole copyObj,
Connection con)
Fills the copyObj with the contents of this object using connection.
|
boolean |
equals(Object toCompare)
Compares the primary key of this instance with the key of another.
|
org.apache.torque.om.ObjectKey |
getForeignKeyForTorqueTurbineGroup()
Returns an id that differentiates the referenced TorqueTurbineGroup object
from all other TorqueTurbineGroup objects.
|
org.apache.torque.om.ObjectKey |
getForeignKeyForTorqueTurbineRole()
Returns an id that differentiates the referenced TorqueTurbineRole object
from all other TorqueTurbineRole objects.
|
org.apache.torque.om.ObjectKey |
getForeignKeyForTorqueTurbineUser()
Returns an id that differentiates the referenced TorqueTurbineUser object
from all other TorqueTurbineUser objects.
|
Integer |
getGroupId()
Get the value of groupId.
|
TorqueTurbineUserGroupRolePeer |
getPeer()
returns a peer instance associated with this om.
|
org.apache.torque.om.ObjectKey |
getPrimaryKey()
returns an id that differentiates this object from others
of its class.
|
Integer |
getRoleId()
Get the value of roleId.
|
org.apache.torque.map.TableMap |
getTableMap()
Retrieves the TableMap object related to this Table data without
compiler warnings of using getPeer().getTableMap().
|
TorqueTurbineGroup |
getTorqueTurbineGroup()
Returns the associated TorqueTurbineGroup object.
|
TorqueTurbineGroup |
getTorqueTurbineGroup(Connection connection)
Return the associated TorqueTurbineGroup object
If it was not retrieved before, the object is retrieved from
the database using the passed connection
|
TorqueTurbineRole |
getTorqueTurbineRole()
Returns the associated TorqueTurbineRole object.
|
TorqueTurbineRole |
getTorqueTurbineRole(Connection connection)
Return the associated TorqueTurbineRole object
If it was not retrieved before, the object is retrieved from
the database using the passed connection
|
TorqueTurbineUser |
getTorqueTurbineUser()
Returns the associated TorqueTurbineUser object.
|
TorqueTurbineUser |
getTorqueTurbineUser(Connection connection)
Return the associated TorqueTurbineUser object
If it was not retrieved before, the object is retrieved from
the database using the passed connection
|
Integer |
getUserId()
Get the value of userId.
|
int |
hashCode()
If the primary key is not
null , return the hashcode of the
primary key. |
boolean |
isDeleted()
Returns whether this object was deleted from the database.
|
boolean |
isLoading()
Returns whether this object is currently being loaded from the database.
|
boolean |
isModified()
Returns whether the object has been modified.
|
boolean |
isNew()
Returns whether the object has ever been saved.
|
boolean |
isSaving()
Returns whether this object is currently saving.
|
void |
resetModified()
Sets the modified state for the object to be false.
|
void |
save()
Stores an object in the database.
|
void |
save(Connection con)
Stores an object in the database.
|
void |
save(String dbName)
Stores an object in the database.
|
void |
setDeleted(boolean deleted)
Sets whether this object was deleted from the database.
|
void |
setGroupId(Integer v)
Set the value of groupId.
|
void |
setLoading(boolean loading)
Sets whether this object is currently being loaded from the database.
|
void |
setModified(boolean modified)
Sets whether the object has been modified.
|
void |
setNew(boolean isNew)
Sets whether the object has ever been saved.
|
void |
setPrimaryKey(Integer userId,
Integer groupId,
Integer roleId)
Set the PrimaryKey using SimpleKeys.
|
void |
setPrimaryKey(org.apache.torque.om.ObjectKey key)
Set the PrimaryKey with an ObjectKey
|
void |
setPrimaryKey(String key)
Set the PrimaryKey using a String.
|
void |
setRoleId(Integer v)
Set the value of roleId.
|
void |
setSaving(boolean saving)
Sets whether this object is currently saving.
|
void |
setTorqueTurbineGroup(TorqueTurbineGroup v)
Declares an association between this object and a TorqueTurbineGroup object
|
void |
setTorqueTurbineGroupKey(org.apache.torque.om.ObjectKey key)
Provides convenient way to set a relationship based on a
ObjectKey, for example
bar.setFooKey(foo.getPrimaryKey()) |
void |
setTorqueTurbineRole(TorqueTurbineRole v)
Declares an association between this object and a TorqueTurbineRole object
|
void |
setTorqueTurbineRoleKey(org.apache.torque.om.ObjectKey key)
Provides convenient way to set a relationship based on a
ObjectKey, for example
bar.setFooKey(foo.getPrimaryKey()) |
void |
setTorqueTurbineUser(TorqueTurbineUser v)
Declares an association between this object and a TorqueTurbineUser object
|
void |
setTorqueTurbineUserKey(org.apache.torque.om.ObjectKey key)
Provides convenient way to set a relationship based on a
ObjectKey, for example
bar.setFooKey(foo.getPrimaryKey()) |
void |
setUserId(Integer v)
Set the value of userId.
|
String |
toString() |
boolean |
valueEquals(TorqueTurbineUserGroupRole toCompare)
Compares the content of this object to another object
|
public Integer getUserId()
public void setUserId(Integer v)
v
- new valuepublic Integer getGroupId()
public void setGroupId(Integer v)
v
- new valuepublic Integer getRoleId()
public void setRoleId(Integer v)
v
- new valuepublic boolean isNew()
isNew
in interface org.apache.torque.om.Persistent
public void setNew(boolean isNew)
setNew
in interface org.apache.torque.om.Persistent
isNew
- true if the object has never been saved, false otherwise.public boolean isModified()
isModified
in interface org.apache.torque.om.Persistent
public void setModified(boolean modified)
setModified
in interface org.apache.torque.om.Persistent
modified
- true if the object has been modified, false otherwise.public void resetModified()
public boolean isSaving()
public void setSaving(boolean saving)
saving
- true if this object is currently saving, false otherwise.public boolean isLoading()
public void setLoading(boolean loading)
loading
- true if this object is currently loading, false otherwise.public boolean isDeleted()
public void setDeleted(boolean deleted)
deleted
- true if this object was deleted, false otherwise.public TorqueTurbineUser getTorqueTurbineUser() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- when reading from the database fails.public TorqueTurbineUser getTorqueTurbineUser(Connection connection) throws org.apache.torque.TorqueException
connection
- the connection used to retrieve the associated object
from the database, if it was not retrieved beforeorg.apache.torque.TorqueException
public void setTorqueTurbineUser(TorqueTurbineUser v)
v
- TorqueTurbineUserpublic void setTorqueTurbineUserKey(org.apache.torque.om.ObjectKey key) throws org.apache.torque.TorqueException
bar.setFooKey(foo.getPrimaryKey())
org.apache.torque.TorqueException
public TorqueTurbineGroup getTorqueTurbineGroup() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- when reading from the database fails.public TorqueTurbineGroup getTorqueTurbineGroup(Connection connection) throws org.apache.torque.TorqueException
connection
- the connection used to retrieve the associated object
from the database, if it was not retrieved beforeorg.apache.torque.TorqueException
public void setTorqueTurbineGroup(TorqueTurbineGroup v)
v
- TorqueTurbineGrouppublic void setTorqueTurbineGroupKey(org.apache.torque.om.ObjectKey key) throws org.apache.torque.TorqueException
bar.setFooKey(foo.getPrimaryKey())
org.apache.torque.TorqueException
public TorqueTurbineRole getTorqueTurbineRole() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- when reading from the database fails.public TorqueTurbineRole getTorqueTurbineRole(Connection connection) throws org.apache.torque.TorqueException
connection
- the connection used to retrieve the associated object
from the database, if it was not retrieved beforeorg.apache.torque.TorqueException
public void setTorqueTurbineRole(TorqueTurbineRole v)
v
- TorqueTurbineRolepublic void setTorqueTurbineRoleKey(org.apache.torque.om.ObjectKey key) throws org.apache.torque.TorqueException
bar.setFooKey(foo.getPrimaryKey())
org.apache.torque.TorqueException
public void save() throws org.apache.torque.TorqueException
save
in interface org.apache.torque.om.Persistent
toSave
- the object to be saved, not null.org.apache.torque.TorqueException
- if an error occurs during saving.public void save(String dbName) throws org.apache.torque.TorqueException
save
in interface org.apache.torque.om.Persistent
toSave
- the object to be saved, not null.dbName
- the name of the database to which the object
should be saved.org.apache.torque.TorqueException
- if an error occurs during saving.public void save(Connection con) throws org.apache.torque.TorqueException
save
in interface org.apache.torque.om.Persistent
toSave
- the object to be saved, not null.con
- the connection to use for saving the object, not null.org.apache.torque.TorqueException
- if an error occurs during saving.public void setPrimaryKey(org.apache.torque.om.ObjectKey key) throws org.apache.torque.TorqueException
setPrimaryKey
in interface org.apache.torque.om.Persistent
key
- org.apache.torque.TorqueException
public void setPrimaryKey(Integer userId, Integer groupId, Integer roleId)
Integer
- userIdInteger
- groupIdInteger
- roleIdpublic void setPrimaryKey(String key) throws org.apache.torque.TorqueException
setPrimaryKey
in interface org.apache.torque.om.Persistent
org.apache.torque.TorqueException
public org.apache.torque.om.ObjectKey getPrimaryKey()
getPrimaryKey
in interface org.apache.torque.om.Persistent
public org.apache.torque.om.ObjectKey getForeignKeyForTorqueTurbineUser()
public org.apache.torque.om.ObjectKey getForeignKeyForTorqueTurbineGroup()
public org.apache.torque.om.ObjectKey getForeignKeyForTorqueTurbineRole()
public TorqueTurbineUserGroupRole copy() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public TorqueTurbineUserGroupRole copy(Connection con) throws org.apache.torque.TorqueException
con
- the database connection to read associated objects.org.apache.torque.TorqueException
public TorqueTurbineUserGroupRole copy(boolean deepcopy) throws org.apache.torque.TorqueException
deepcopy
- whether to copy the associated objects.org.apache.torque.TorqueException
public TorqueTurbineUserGroupRole copy(boolean deepcopy, Connection con) throws org.apache.torque.TorqueException
deepcopy
- whether to copy the associated objects.con
- the database connection to read associated objects.org.apache.torque.TorqueException
public TorqueTurbineUserGroupRole copyInto(TorqueTurbineUserGroupRole copyObj) throws org.apache.torque.TorqueException
copyObj
- the object to fill.org.apache.torque.TorqueException
public TorqueTurbineUserGroupRole copyInto(TorqueTurbineUserGroupRole copyObj, Connection con) throws org.apache.torque.TorqueException
copyObj
- the object to fill.con
- the database connection to read associated objects.org.apache.torque.TorqueException
protected TorqueTurbineUserGroupRole copyInto(TorqueTurbineUserGroupRole copyObj, boolean deepcopy) throws org.apache.torque.TorqueException
copyObj
- the object to fill.deepcopy
- whether the associated objects should be copied.org.apache.torque.TorqueException
public TorqueTurbineUserGroupRole copyInto(TorqueTurbineUserGroupRole copyObj, boolean deepcopy, Connection con) throws org.apache.torque.TorqueException
copyObj
- the object to fill.deepcopy
- whether the associated objects should be copied.con
- the database connection to read associated objects.org.apache.torque.TorqueException
public TorqueTurbineUserGroupRolePeer getPeer()
public org.apache.torque.map.TableMap getTableMap() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public boolean equals(Object toCompare)
public int hashCode()
null
, return the hashcode of the
primary key. Otherwise calls Object.hashCode()
.public boolean valueEquals(TorqueTurbineUserGroupRole toCompare)
toCompare
- The object to compare to.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.