Class DefaultSinglePropertyImplementation<I,T>
- java.lang.Object
-
- org.openflexo.pamela.model.property.AbstractPropertyImplementation<I,T>
-
- org.openflexo.pamela.model.property.DefaultSinglePropertyImplementation<I,T>
-
- Type Parameters:
I
- type of entity defining such propertyT
- accessed type for the property
- All Implemented Interfaces:
PropertyImplementation<I,T>
,SettablePropertyImplementation<I,T>
,SinglePropertyImplementation<I,T>
public class DefaultSinglePropertyImplementation<I,T> extends AbstractPropertyImplementation<I,T> implements SinglePropertyImplementation<I,T>
Default implementation of a property with SINGLE cardinality
-
-
Constructor Summary
Constructors Constructor Description DefaultSinglePropertyImplementation(ProxyMethodHandler<I> handler, ModelProperty<I> property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(java.util.List<java.lang.Object> embeddedObjects, java.lang.Object... context)
T
get()
void
set(T aValue)
protected void
setInternalValue(T aValue)
void
undelete()
void
update(T aValue)
-
Methods inherited from class org.openflexo.pamela.model.property.AbstractPropertyImplementation
firePropertyChange, getHandler, getModelEntity, getModelFactory, getObject, getPamelaProxyFactory, getProperty, isEqual
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openflexo.pamela.model.property.PropertyImplementation
getObject, getProperty
-
-
-
-
Constructor Detail
-
DefaultSinglePropertyImplementation
public DefaultSinglePropertyImplementation(ProxyMethodHandler<I> handler, ModelProperty<I> property) throws InvalidDataException
- Throws:
InvalidDataException
-
-
Method Detail
-
setInternalValue
protected void setInternalValue(T aValue)
-
get
public T get() throws ModelDefinitionException
- Specified by:
get
in interfacePropertyImplementation<I,T>
- Specified by:
get
in interfaceSinglePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
set
public void set(T aValue) throws ModelDefinitionException
- Specified by:
set
in interfaceSettablePropertyImplementation<I,T>
- Specified by:
set
in interfaceSinglePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
update
public void update(T aValue) throws ModelDefinitionException
- Specified by:
update
in interfaceSettablePropertyImplementation<I,T>
- Specified by:
update
in interfaceSinglePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
delete
public void delete(java.util.List<java.lang.Object> embeddedObjects, java.lang.Object... context) throws ModelDefinitionException
- Specified by:
delete
in interfacePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
undelete
public void undelete() throws ModelDefinitionException
- Specified by:
undelete
in interfacePropertyImplementation<I,T>
- Throws:
ModelDefinitionException
-
-