org.springframework.extensions.surf
Class ModelPersisterInfo

java.lang.Object
  extended by org.springframework.extensions.surf.ModelPersisterInfo
All Implemented Interfaces:
Serializable

public final class ModelPersisterInfo
extends Object
implements Serializable

The ModelPersisterInfo structure class holds the values that represent the binding of a model object instance to a persistance store and it's path in that store.

Author:
muzquiano
See Also:
Serialized Form

Constructor Summary
ModelPersisterInfo(String persisterId, String storagePath, boolean saved)
          Instantiates a new model object key.
 
Method Summary
 String getPersisterId()
          Gets the persister id.
 String getStoragePath()
          Gets the storage path.
 boolean isSaved()
          Returns whether the object is currently saved or not
 void setSaved(boolean saved)
          Marks the saved flag on the key
 void setStoragePath(String storagePath)
          Sets the storage path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelPersisterInfo

public ModelPersisterInfo(String persisterId,
                          String storagePath,
                          boolean saved)
Instantiates a new model object key.

Parameters:
persisterId - the persister id
storagePath - the storage path
Method Detail

getPersisterId

public String getPersisterId()
Gets the persister id.

Returns:
the persister id

setStoragePath

public void setStoragePath(String storagePath)
Sets the storage path

Parameters:
storagePath -

getStoragePath

public String getStoragePath()
Gets the storage path.

Returns:
the storage path

isSaved

public boolean isSaved()
Returns whether the object is currently saved or not

Returns:
whether saved

setSaved

public void setSaved(boolean saved)
Marks the saved flag on the key

Parameters:
saved -


Copyright © 2009 SpringSource, Inc. All Rights Reserved.