net.databinder.models.ao
Class EntityModel
java.lang.Object
net.databinder.models.LoadableWritableModel
net.databinder.models.ao.EntityModel
- All Implemented Interfaces:
- java.io.Serializable, BindingModel, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel
public class EntityModel
- extends LoadableWritableModel
- implements BindingModel
- See Also:
- Serialized Form
|
Constructor Summary |
EntityModel(java.lang.Class entityType)
|
EntityModel(java.lang.Class entityType,
java.io.Serializable id)
|
EntityModel(net.java.ao.RawEntity<?> entity)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.wicket.model.IModel |
getObject |
| Methods inherited from interface org.apache.wicket.model.IDetachable |
detach |
EntityModel
public EntityModel(java.lang.Class entityType,
java.io.Serializable id)
EntityModel
public EntityModel(java.lang.Class entityType)
EntityModel
public EntityModel(net.java.ao.RawEntity<?> entity)
isBound
public boolean isBound()
- Specified by:
isBound in interface BindingModel
- Returns:
- true if object is bound to persistent storage
load
protected java.lang.Object load()
- Specified by:
load in class LoadableWritableModel
setObject
public void setObject(java.lang.Object object)
- Specified by:
setObject in interface org.apache.wicket.model.IModel
putDefaultProperties
protected void putDefaultProperties(java.util.Map<java.lang.String,java.lang.Object> propertyStore)
unbind
public void unbind()
- Description copied from interface:
BindingModel
- Discard any attached object and reset to a new unsaved object
- Specified by:
unbind in interface BindingModel
getPropertyStore
public java.util.Map<java.lang.String,java.lang.Object> getPropertyStore()
- Returns:
- map of properties to values for Wicket property models
getFieldMap
public java.util.Map<java.lang.String,java.lang.Object> getFieldMap()
- Returns:
- map of database fields to their values for creating new entities
getEntityType
public java.lang.Class getEntityType()
getManagerKey
public java.lang.Object getManagerKey()
setManagerKey
public void setManagerKey(java.lang.Object managerKey)
Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.