public class DimensionPersistenceFactory extends AbstractSinglePersistenceFactory
Rectangle2D
objects.Modifier and Type | Class and Description |
---|---|
static class |
DimensionPersistenceFactory.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_HEIGHT |
static java.lang.String |
FIELD_WIDTH |
Constructor and Description |
---|
DimensionPersistenceFactory()
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createFromState(PersistentState state)
Create an instance of the object represented by the state.
|
void |
saveToState(PersistentState state,
java.lang.Object obj)
Fill
state with data to persist of obj . |
getDefinition, getDefinition, getDefinitions, getDomainName, getDomainURL, getManagedClass, getManagedClass, getManagedClass, getManagedClasses, getManagedClassName, loadFromState, manages, manages, manages, toString
public static final java.lang.String FIELD_HEIGHT
public static final java.lang.String FIELD_WIDTH
public java.lang.Object createFromState(PersistentState state) throws PersistenceException
PersistenceFactory
PersistenceFactory.loadFromState(PersistentState, Object)
only create
the object.PersistenceException
public void saveToState(PersistentState state, java.lang.Object obj) throws PersistenceException
PersistenceFactory
state
with data to persist of obj
.PersistenceException