|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.persist.PersisterBase
public abstract class PersisterBase
Constructor Summary | |
---|---|
|
PersisterBase()
Constructor. |
protected |
PersisterBase(Path path)
Constructor used for nested persisters. |
Method Summary | |
---|---|
protected abstract void |
clear(Path path)
Remove a possibly previously persisted object. |
protected abstract String[] |
list(Path path)
|
protected abstract void |
persist(Path path,
String id,
Object component)
Provided by subclasses to do the persisting. |
ComponentPersister |
persisterFor(String id)
Provide a ComponentPersiter which may or may not require the id. |
protected abstract void |
remove(Path path,
String id)
Remove a possibly previously persisted object. |
protected abstract Object |
restore(Path path,
String id,
ClassLoader classLoader)
Restore a previously persisted Component or it's Proxy. |
void |
setPath(String path)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersisterBase()
protected PersisterBase(Path path)
path
- The path.Method Detail |
---|
public void setPath(String path)
public ComponentPersister persisterFor(String id)
OddjobPersister
persisterFor
in interface OddjobPersister
id
- An Id which may be used for a path. May be Null.
protected abstract void persist(Path path, String id, Object component) throws ComponentPersistException
path
- The path as a string. Never null.id
- The id. Never Null.component
- The component or it's proxy.
ComponentPersistException
protected abstract Object restore(Path path, String id, ClassLoader classLoader) throws ComponentPersistException
path
- The path. Never Null.id
- The id. Never Null.classLoader
- The classLoader.
ComponentPersistException
protected abstract String[] list(Path path) throws ComponentPersistException
ComponentPersistException
protected abstract void remove(Path path, String id) throws ComponentPersistException
path
- The path.id
- The id.
ComponentPersistException
protected abstract void clear(Path path) throws ComponentPersistException
path
- The path.id
- The id.
ComponentPersistException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |