public abstract class TorqueAbstractSecurityEntity extends Object implements SecurityEntity, Serializable, org.apache.torque.om.Persistent
Constructor and Description |
---|
TorqueAbstractSecurityEntity() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete()
Delete this entity
|
abstract String |
getDatabaseName()
Get the name of the connection pool associated to this object
|
abstract Integer |
getEntityId()
Get a numeric entity id
|
abstract String |
getEntityName()
Get the name of the entity
|
Object |
getId() |
String |
getName() |
abstract void |
retrieveAttachedObjects(Connection con)
Retrieve attached objects such as users, permissions, ...
|
abstract void |
setEntityId(Integer id)
Set a numeric entity id
|
abstract void |
setEntityName(String name)
Set the name of the entity
|
void |
setId(Object id) |
void |
setName(String name) |
abstract void |
update(Connection con)
Update this instance to the database with all dependent objects
|
public abstract Integer getEntityId()
public abstract void setEntityId(Integer id) throws org.apache.torque.TorqueException
id
- numeric id of this entityorg.apache.torque.TorqueException
public abstract String getEntityName()
public abstract void setEntityName(String name)
name
- the name of the entitypublic abstract void retrieveAttachedObjects(Connection con) throws org.apache.torque.TorqueException
con
- A database connectionorg.apache.torque.TorqueException
public abstract void update(Connection con) throws org.apache.torque.TorqueException
con
- A database connectionorg.apache.torque.TorqueException
public abstract String getDatabaseName()
public abstract void delete() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- if any database operation failspublic Object getId()
getId
in interface SecurityEntity
SecurityEntity.getId()
public void setId(Object id)
setId
in interface SecurityEntity
SecurityEntity.setId(java.lang.Object)
public String getName()
getName
in interface SecurityEntity
SecurityEntity.getName()
public void setName(String name)
setName
in interface SecurityEntity
SecurityEntity.setName(java.lang.String)
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.