public class BusinessEntityImpl extends Object implements BusinessEntity
| Modifier and Type | Field and Description |
|---|---|
protected WikittyExtension |
extensionForMetaExtension
Only used by meta-extension, but all extension need it, bacause
extension can require meta-extension, and then this attribute
the metaExtension operations target this extension, may be null
|
protected PropertyChangeSupport |
propertyChangeSupport
Property change support.
|
protected Wikitty |
wikitty |
| Constructor and Description |
|---|
BusinessEntityImpl() |
BusinessEntityImpl(Wikitty wi) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add
PropertyChangeListener on propertyName. |
void |
copyFrom(BusinessEntity source)
this copy used introspection, you can override it in generated class
to optimize it
|
boolean |
equals(Object obj) |
Collection<String> |
getExtensionFields(String ext)
Return list of all field for this object.
|
Collection<String> |
getExtensionNames()
Return list of all extension for this object.
|
Object |
getField(String ext,
String fieldName)
Return field value for the specific extension and field.
|
Object |
getFieldAsObject(String ext,
String fieldName)
Return field value for the specific extension and field.
|
FieldType |
getFieldType(String ext,
String fieldName) |
protected PropertyChangeSupport |
getPropertyChangeSupport() |
Collection<WikittyExtension> |
getStaticExtensions()
Return list of all extension that this entity has by definition
(design time) and not extension added during execution time
|
Wikitty |
getWikitty() |
String |
getWikittyId()
Return wikitty id (uuid).
|
String |
getWikittyVersion()
Return wikitty version (x.y).
|
int |
hashCode() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove
PropertyChangeListener. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove
PropertyChangeListener on propertyName |
void |
setField(String ext,
String fieldName,
Object value)
Set field value for the specific extension and field.
|
void |
setWikitty(Wikitty wikitty) |
void |
setWikittyVersion(String version)
Only framework can use this method.
|
protected transient PropertyChangeSupport propertyChangeSupport
protected WikittyExtension extensionForMetaExtension
protected Wikitty wikitty
public BusinessEntityImpl(Wikitty wi)
public BusinessEntityImpl()
protected PropertyChangeSupport getPropertyChangeSupport()
public String getWikittyId()
BusinessEntitygetWikittyId in interface BusinessEntitypublic String getWikittyVersion()
BusinessEntitygetWikittyVersion in interface BusinessEntitypublic void setWikittyVersion(String version)
BusinessEntitysetWikittyVersion in interface BusinessEntityversion - version to setpublic void setWikitty(Wikitty wikitty)
public Wikitty getWikitty()
public void copyFrom(BusinessEntity source)
copyFrom in interface BusinessEntitysource - public Collection<String> getExtensionNames()
BusinessEntitygetExtensionNames in interface BusinessEntitypublic Collection<String> getExtensionFields(String ext)
BusinessEntitygetExtensionFields in interface BusinessEntityext - extension to get fieldspublic Object getFieldAsObject(String ext, String fieldName)
BusinessEntitygetFieldAsObject in interface BusinessEntityext - extensionfieldName - field namepublic Object getField(String ext, String fieldName)
BusinessEntitygetField in interface BusinessEntityext - extensionfieldName - field namepublic void setField(String ext, String fieldName, Object value)
BusinessEntitysetField in interface BusinessEntityext - extensionfieldName - field namevalue - value to setpublic Collection<WikittyExtension> getStaticExtensions()
public void addPropertyChangeListener(PropertyChangeListener listener)
BusinessEntityaddPropertyChangeListener in interface BusinessEntitylistener - listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
BusinessEntityPropertyChangeListener.removePropertyChangeListener in interface BusinessEntitylistener - listener to removepublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
BusinessEntityPropertyChangeListener on propertyName.addPropertyChangeListener in interface BusinessEntitypropertyName - property namelistener - listener to addpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
BusinessEntityPropertyChangeListener on propertyNameremovePropertyChangeListener in interface BusinessEntitypropertyName - property namelistener - listener listener to removeCopyright © 2009-2012 CodeLutin. All Rights Reserved.