it.amattioli.applicate.commands
Class HibernateEntityEditor<I extends Serializable,T extends it.amattioli.dominate.OptLockEntity<I>>
java.lang.Object
it.amattioli.applicate.commands.BeanEditorImpl<T>
it.amattioli.applicate.commands.HibernateEntityEditor<I,T>
- All Implemented Interfaces:
- BeanEditor<T>, Command, Resettable, PropertyAvailabilityRetriever, PropertyClassRetriever, PropertyWritabilityRetriever, ValuesLister, it.amattioli.dominate.util.PropertyChangeEmitter, it.amattioli.dominate.validation.Validator, org.apache.commons.beanutils.DynaBean
public class HibernateEntityEditor<I extends Serializable,T extends it.amattioli.dominate.OptLockEntity<I>>
- extends BeanEditorImpl<T>
- implements Command, Resettable
| Methods inherited from class it.amattioli.applicate.commands.BeanEditorImpl |
addPropertyChangeListener, contains, firePropertyChange, get, get, get, getDynaClass, getPropertyConstraint, getPropertyConstraints, getPropertyValues, getWrapper, isPropertyAvailable, isPropertyWritable, remove, removePropertyChangeListener, retrievePropertyClass, set, set, set, validateBean, validateProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
addPropertyChangeListener, removePropertyChangeListener |
HibernateEntityEditor
public HibernateEntityEditor()
HibernateEntityEditor
public HibernateEntityEditor(Class<T> entityClass)
getEntityClass
public Class<T> getEntityClass()
setEntityClass
public void setEntityClass(Class<T> entityClass)
getEditingBean
public T getEditingBean()
- Specified by:
getEditingBean in interface BeanEditor<T extends it.amattioli.dominate.OptLockEntity<I>>- Overrides:
getEditingBean in class BeanEditorImpl<T extends it.amattioli.dominate.OptLockEntity<I>>
setEditingBean
public void setEditingBean(T editingBean)
- Specified by:
setEditingBean in interface BeanEditor<T extends it.amattioli.dominate.OptLockEntity<I>>- Overrides:
setEditingBean in class BeanEditorImpl<T extends it.amattioli.dominate.OptLockEntity<I>>
getEditingBeanId
public I getEditingBeanId()
setEditingBeanId
public void setEditingBeanId(I id)
setId
public void setId(I id)
doCommand
public void doCommand()
throws ApplicationException
- Description copied from interface:
Command
- Execute this command.
- Specified by:
doCommand in interface Command
- Throws:
ApplicationException
cancelCommand
public void cancelCommand()
- Specified by:
cancelCommand in interface Command
addCommandListener
public void addCommandListener(CommandListener listener)
- Description copied from interface:
Command
- Add a listener for this command events. Every time this command fires a
CommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners.
- Specified by:
addCommandListener in interface Command
- Parameters:
listener - the listener to be added
addCommandListener
public void addCommandListener(CommandListener listener,
CommandResult... results)
- Description copied from interface:
Command
- Add a listener for this command events. Every time this command fires a
CommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners with result equals to one
of the specified results.
- Specified by:
addCommandListener in interface Command
- Parameters:
listener - the listener to be added
reset
public void reset()
- Specified by:
reset in interface Resettable
toBeReset
public boolean toBeReset()
- Specified by:
toBeReset in interface Resettable
setToBeReset
public void setToBeReset(boolean toBeReset)
Copyright © 2011. All Rights Reserved.