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 voiddelete(java.util.List<java.lang.Object> embeddedObjects, java.lang.Object... context)Tget()voidset(T aValue)protected voidsetInternalValue(T aValue)voidundelete()voidupdate(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:
getin interfacePropertyImplementation<I,T>- Specified by:
getin interfaceSinglePropertyImplementation<I,T>- Throws:
ModelDefinitionException
-
set
public void set(T aValue) throws ModelDefinitionException
- Specified by:
setin interfaceSettablePropertyImplementation<I,T>- Specified by:
setin interfaceSinglePropertyImplementation<I,T>- Throws:
ModelDefinitionException
-
update
public void update(T aValue) throws ModelDefinitionException
- Specified by:
updatein interfaceSettablePropertyImplementation<I,T>- Specified by:
updatein interfaceSinglePropertyImplementation<I,T>- Throws:
ModelDefinitionException
-
delete
public void delete(java.util.List<java.lang.Object> embeddedObjects, java.lang.Object... context) throws ModelDefinitionException- Specified by:
deletein interfacePropertyImplementation<I,T>- Throws:
ModelDefinitionException
-
undelete
public void undelete() throws ModelDefinitionException- Specified by:
undeletein interfacePropertyImplementation<I,T>- Throws:
ModelDefinitionException
-
-