org.nuiton.wikitty.entities
Class BusinessEntityImpl

java.lang.Object
  extended by org.nuiton.wikitty.entities.BusinessEntityImpl
All Implemented Interfaces:
Serializable, Cloneable, BusinessEntity
Direct Known Subclasses:
WikittyAccessStatAbstract, WikittyAuthorisationAbstract, WikittyGroupAbstract, WikittyHookAbstract, WikittyI18nAbstract, WikittyLabelAbstract, WikittyTokenAbstract, WikittyTreeNodeAbstract, WikittyUserAbstract

public class BusinessEntityImpl
extends Object
implements BusinessEntity

Version:
$Revision: 513 $ Each business object will inherit of this class. Last update: $Date: 2010-11-24 18:00:26 +0100 (mer. 24 nov. 2010) $ by : $Author: bpoussin $
Author:
poussin
See Also:
Serialized Form

Field Summary
protected  PropertyChangeSupport propertyChangeSupport
          Property change support.
protected  Wikitty wikitty
           
 
Constructor Summary
BusinessEntityImpl()
           
BusinessEntityImpl(Wikitty wi)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add PropertyChangeListener.
 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.
 FieldType getFieldType(String ext, String fieldName)
           
protected  PropertyChangeSupport getPropertyChangeSupport()
           
 Collection<WikittyExtension> getStaticExtensions()
           
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChangeSupport

protected transient PropertyChangeSupport propertyChangeSupport
Property change support. Warning, this transient field is null after deserialization.


wikitty

protected Wikitty wikitty
Constructor Detail

BusinessEntityImpl

public BusinessEntityImpl(Wikitty wi)

BusinessEntityImpl

public BusinessEntityImpl()
Method Detail

getPropertyChangeSupport

protected PropertyChangeSupport getPropertyChangeSupport()

getWikittyId

public String getWikittyId()
Description copied from interface: BusinessEntity
Return wikitty id (uuid).

Specified by:
getWikittyId in interface BusinessEntity
Returns:
wikitty id

getWikittyVersion

public String getWikittyVersion()
Description copied from interface: BusinessEntity
Return wikitty version (x.y).

Specified by:
getWikittyVersion in interface BusinessEntity
Returns:
wikitty version

setWikittyVersion

public void setWikittyVersion(String version)
Description copied from interface: BusinessEntity
Only framework can use this method.

Specified by:
setWikittyVersion in interface BusinessEntity
Parameters:
version - version to set

setWikitty

public void setWikitty(Wikitty wikitty)

getWikitty

public Wikitty getWikitty()

copyFrom

public void copyFrom(BusinessEntity source)
this copy used introspection, you can override it in generated class to optimize it

Specified by:
copyFrom in interface BusinessEntity
Parameters:
source -

getExtensionNames

public Collection<String> getExtensionNames()
Description copied from interface: BusinessEntity
Return list of all extension for this object.

Specified by:
getExtensionNames in interface BusinessEntity
Returns:
extension names

getExtensionFields

public Collection<String> getExtensionFields(String ext)
Description copied from interface: BusinessEntity
Return list of all field for this object.

Specified by:
getExtensionFields in interface BusinessEntity
Parameters:
ext - extension to get fields
Returns:
fields collections

getFieldType

public FieldType getFieldType(String ext,
                              String fieldName)

getField

public Object getField(String ext,
                       String fieldName)
Description copied from interface: BusinessEntity
Return field value for the specific extension and field.

Specified by:
getField in interface BusinessEntity
Parameters:
ext - extension
fieldName - field name
Returns:
field value

setField

public void setField(String ext,
                     String fieldName,
                     Object value)
Description copied from interface: BusinessEntity
Set field value for the specific extension and field. This method don't check the type of value for this field.

Specified by:
setField in interface BusinessEntity
Parameters:
ext - extension
fieldName - field name
value - value to set

getStaticExtensions

public Collection<WikittyExtension> getStaticExtensions()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Add PropertyChangeListener.

Specified by:
addPropertyChangeListener in interface BusinessEntity
Parameters:
listener - listener to add

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Remove PropertyChangeListener.

Specified by:
removePropertyChangeListener in interface BusinessEntity
Parameters:
listener - listener to remove

addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Add PropertyChangeListener on propertyName.

Specified by:
addPropertyChangeListener in interface BusinessEntity
Parameters:
propertyName - property name
listener - listener to add

removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
Description copied from interface: BusinessEntity
Remove PropertyChangeListener on propertyName

Specified by:
removePropertyChangeListener in interface BusinessEntity
Parameters:
propertyName - property name
listener - listener listener to remove


Copyright © 2009-2011 CodeLutin. All Rights Reserved.