Package org.apache.torque.manager
Class TestPersistent
- java.lang.Object
-
- org.apache.torque.manager.TestPersistent
-
- All Implemented Interfaces:
Serializable,ObjectModel,Persistent
public class TestPersistent extends Object implements Persistent, Serializable
Dummy Persistent implementation- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestPersistent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectKey<?>getPrimaryKey()booleanisModified()booleanisNew()voidsave()voidsave(String dbName)voidsave(Connection con)voidsetModified(boolean m)voidsetNew(boolean b)voidsetPrimaryKey(String primaryKey)voidsetPrimaryKey(ObjectKey<?> primaryKey)
-
-
-
Method Detail
-
getPrimaryKey
public ObjectKey<?> getPrimaryKey()
- Specified by:
getPrimaryKeyin interfaceObjectModel- See Also:
ObjectModel.getPrimaryKey()
-
setPrimaryKey
public void setPrimaryKey(ObjectKey<?> primaryKey) throws TorqueException
- Specified by:
setPrimaryKeyin interfaceObjectModel- Throws:
TorqueException- See Also:
ObjectModel.setPrimaryKey(org.apache.torque.om.ObjectKey)
-
setPrimaryKey
public void setPrimaryKey(String primaryKey) throws TorqueException
- Specified by:
setPrimaryKeyin interfaceObjectModel- Throws:
TorqueException- See Also:
ObjectModel.setPrimaryKey(java.lang.String)
-
isModified
public boolean isModified()
- Specified by:
isModifiedin interfaceObjectModel- See Also:
ObjectModel.isModified()
-
isNew
public boolean isNew()
- Specified by:
isNewin interfaceObjectModel- See Also:
ObjectModel.isNew()
-
setNew
public void setNew(boolean b)
- Specified by:
setNewin interfaceObjectModel- See Also:
ObjectModel.setNew(boolean)
-
setModified
public void setModified(boolean m)
- Specified by:
setModifiedin interfaceObjectModel- See Also:
ObjectModel.setModified(boolean)
-
save
public void save() throws Exception- Specified by:
savein interfacePersistent- Throws:
Exception- See Also:
Persistent.save()
-
save
public void save(String dbName) throws Exception
- Specified by:
savein interfacePersistent- Throws:
Exception- See Also:
Persistent.save(java.lang.String)
-
save
public void save(Connection con) throws Exception
- Specified by:
savein interfacePersistent- Throws:
Exception- See Also:
Persistent.save(java.sql.Connection)
-
-