org.apache.lenya.cms.repository
Interface Persistable


public interface Persistable

An object which can be persisted to a node.


Method Summary
 boolean isModified()
           
 void save()
          Save the content of the persistable object to the node.
 

Method Detail

save

void save()
          throws RepositoryException
Save the content of the persistable object to the node. This method is called by the node before the session is committed.

Throws:
RepositoryException - if the object couldn't be saved.

isModified

boolean isModified()
Returns:
if the persistable object has been modified, i.e. if it needs to be saved.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.