org.gvsig.tools.service.spi
Class AbstractPersistentProviderServices

java.lang.Object
  extended by org.gvsig.tools.service.spi.AbstractProviderServices
      extended by org.gvsig.tools.service.spi.AbstractPersistentProviderServices
All Implemented Interfaces:
Persistent, ProviderServices

public abstract class AbstractPersistentProviderServices
extends AbstractProviderServices
implements Persistent

Base Persistent ProviderServices.

Author:
2009- C�sar Ordi�ana - gvSIG team

Constructor Summary
AbstractPersistentProviderServices()
          Empty constructor to be used only for persistence purposes.
 
Method Summary
protected abstract  void doLoadFromState(PersistentState state)
          Set the state of the child class persistent attributes from the state passed as parameter.
protected abstract  void doSaveToState(PersistentState state)
          Saves the internal state of the child class persistent attributes on the provided PersistentState object.
protected abstract  DynClass getProviderServicesChildDynClass()
          Return the DynClass of the persisted attributes of the child class.
 void loadFromState(PersistentState state)
          Set the state of the object from the state passed as parameter.
 void saveToState(PersistentState state)
          Saves the internal state of the object on the provided PersistentState object.
 
Methods inherited from class org.gvsig.tools.service.spi.AbstractProviderServices
getParameters, getService, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPersistentProviderServices

public AbstractPersistentProviderServices()
Empty constructor to be used only for persistence purposes.

Method Detail

loadFromState

public final void loadFromState(PersistentState state)
                         throws PersistenceException
Description copied from interface: Persistent
Set the state of the object from the state passed as parameter.

Specified by:
loadFromState in interface Persistent
Throws:
PersistenceException

saveToState

public final void saveToState(PersistentState state)
                       throws PersistenceException
Description copied from interface: Persistent
Saves the internal state of the object on the provided PersistentState object.

Specified by:
saveToState in interface Persistent
Throws:
PersistenceException

getProviderServicesChildDynClass

protected abstract DynClass getProviderServicesChildDynClass()
Return the DynClass of the persisted attributes of the child class.

Returns:
the DynClass for persistence of the child service class

doLoadFromState

protected abstract void doLoadFromState(PersistentState state)
Set the state of the child class persistent attributes from the state passed as parameter.

Parameters:
state - to load the attribute values from
See Also:
Persistent.loadFromState(PersistentState)

doSaveToState

protected abstract void doSaveToState(PersistentState state)
Saves the internal state of the child class persistent attributes on the provided PersistentState object.

Parameters:
state - to save the attribute values to


Copyright © 2004-2011 gvSIG. All Rights Reserved.