public class Rectangle2DPersistenceFactory extends AbstractSinglePersistenceFactory
Rectangle2D
objects.Modifier and Type | Class and Description |
---|---|
static class |
Rectangle2DPersistenceFactory.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_HEIGHT |
static String |
FIELD_WIDTH |
static String |
FIELD_X |
static String |
FIELD_Y |
Constructor and Description |
---|
Rectangle2DPersistenceFactory()
Creates a new
Rectangle2DPersistenceFactory with the
DynStruct definition for the Rectangle2D objects. |
Modifier and Type | Method and Description |
---|---|
Object |
createFromState(PersistentState state)
Create an instance of the object represented by the state.
|
void |
saveToState(PersistentState state,
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 String FIELD_X
public static final String FIELD_Y
public static final String FIELD_WIDTH
public static final String FIELD_HEIGHT
public Rectangle2DPersistenceFactory()
Rectangle2DPersistenceFactory
with the
DynStruct
definition for the Rectangle2D
objects.public Object createFromState(PersistentState state) throws PersistenceException
PersistenceFactory
PersistenceFactory.loadFromState(PersistentState, Object)
only create
the object.PersistenceException
public void saveToState(PersistentState state, Object obj) throws PersistenceException
PersistenceFactory
state
with data to persist of obj
.PersistenceException