net.sf.echobinding.persistence
Class DefaultPersistenceManager<T>

java.lang.Object
  extended by net.sf.echobinding.persistence.DefaultPersistenceManager<T>
All Implemented Interfaces:
PersistenceManager<T>
Direct Known Subclasses:
DefaultTablePersistenceManager

public class DefaultPersistenceManager<T>
extends java.lang.Object
implements PersistenceManager<T>


Constructor Summary
DefaultPersistenceManager(T object)
          Creates a default persistence manager for objects of type T.
 
Method Summary
 T copyObject(T object)
          Creates a copy of the given object.
 T createNewObject()
          Tries to dynamically create a new row object by using the empty constructor.
 void deleteObject(T object)
          Delets an object.
 boolean isPersistent(T object)
          Decides if the object is persistent.
 void saveObject(T object)
          Persists the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPersistenceManager

public DefaultPersistenceManager(T object)
Creates a default persistence manager for objects of type T.

Parameters:
object -
Method Detail

createNewObject

public T createNewObject()
Tries to dynamically create a new row object by using the empty constructor.

Specified by:
createNewObject in interface PersistenceManager<T>
Returns:
a new row object
See Also:
PersistenceManager.createNewObject()

deleteObject

public void deleteObject(T object)
Description copied from interface: PersistenceManager
Delets an object.

Specified by:
deleteObject in interface PersistenceManager<T>

copyObject

public T copyObject(T object)
Description copied from interface: PersistenceManager
Creates a copy of the given object.

Specified by:
copyObject in interface PersistenceManager<T>

saveObject

public void saveObject(T object)
Description copied from interface: PersistenceManager
Persists the object.

Specified by:
saveObject in interface PersistenceManager<T>

isPersistent

public boolean isPersistent(T object)
Description copied from interface: PersistenceManager
Decides if the object is persistent.

Specified by:
isPersistent in interface PersistenceManager<T>
Returns:
true, if object is persistent, false if not


Copyright © 2007. All Rights Reserved.