net.sf.echobinding.persistence
Interface PersistenceManager<T>

All Known Implementing Classes:
DefaultPersistenceManager, DefaultTablePersistenceManager

public interface PersistenceManager<T>


Method Summary
 T copyObject(T object)
          Creates a copy of the given object.
 T createNewObject()
          Creates a new object.
 void deleteObject(T object)
          Delets an object.
 boolean isPersistent(T object)
          Decides if the object is persistent.
 void saveObject(T object)
          Persists the object.
 

Method Detail

createNewObject

T createNewObject()
Creates a new object.

Returns:
a new row object

deleteObject

void deleteObject(T object)
Delets an object.

Parameters:
object -

copyObject

T copyObject(T object)
Creates a copy of the given object.

Parameters:
object -

saveObject

void saveObject(T object)
Persists the object.

Parameters:
object -

isPersistent

boolean isPersistent(T object)
Decides if the object is persistent.

Parameters:
object -
Returns:
true, if object is persistent, false if not


Copyright © 2007. All Rights Reserved.