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()
boolean
isModified()
boolean
isNew()
void
save()
void
save(String dbName)
void
save(Connection con)
void
setModified(boolean m)
void
setNew(boolean b)
void
setPrimaryKey(String primaryKey)
void
setPrimaryKey(ObjectKey<?> primaryKey)
-
-
-
Method Detail
-
getPrimaryKey
public ObjectKey<?> getPrimaryKey()
- Specified by:
getPrimaryKey
in interfaceObjectModel
- See Also:
ObjectModel.getPrimaryKey()
-
setPrimaryKey
public void setPrimaryKey(ObjectKey<?> primaryKey) throws TorqueException
- Specified by:
setPrimaryKey
in interfaceObjectModel
- Throws:
TorqueException
- See Also:
ObjectModel.setPrimaryKey(org.apache.torque.om.ObjectKey)
-
setPrimaryKey
public void setPrimaryKey(String primaryKey) throws TorqueException
- Specified by:
setPrimaryKey
in interfaceObjectModel
- Throws:
TorqueException
- See Also:
ObjectModel.setPrimaryKey(java.lang.String)
-
isModified
public boolean isModified()
- Specified by:
isModified
in interfaceObjectModel
- See Also:
ObjectModel.isModified()
-
isNew
public boolean isNew()
- Specified by:
isNew
in interfaceObjectModel
- See Also:
ObjectModel.isNew()
-
setNew
public void setNew(boolean b)
- Specified by:
setNew
in interfaceObjectModel
- See Also:
ObjectModel.setNew(boolean)
-
setModified
public void setModified(boolean m)
- Specified by:
setModified
in interfaceObjectModel
- See Also:
ObjectModel.setModified(boolean)
-
save
public void save() throws Exception
- Specified by:
save
in interfacePersistent
- Throws:
Exception
- See Also:
Persistent.save()
-
save
public void save(String dbName) throws Exception
- Specified by:
save
in interfacePersistent
- Throws:
Exception
- See Also:
Persistent.save(java.lang.String)
-
save
public void save(Connection con) throws Exception
- Specified by:
save
in interfacePersistent
- Throws:
Exception
- See Also:
Persistent.save(java.sql.Connection)
-
-