public interface TopiaEntity extends Serializable
TopiaMetaTransformer. An entity is simply a persistent bean mapped with
Hibernate. The manipulation on entities (create, update, delete, find) is
made by the DAO associated. The corresponding DAO interface is TopiaDAO.
Setter methods have to be used only in internal. They are in the interface to
make easier their usages in internal.EntityHibernateMappingGenerator,
EntityTransformer| Modifier and Type | Field and Description |
|---|---|
static String |
AGGREGATE
Deprecated.
since 3.0, will be removed in 3.1, unused
|
static String |
COMPOSITE
Deprecated.
since 3.0, will be removed in 3.1, unused
|
static String |
PROPERTY_TOPIA_CREATE_DATE |
static String |
PROPERTY_TOPIA_ID |
static String |
PROPERTY_TOPIA_VERSION |
static String |
TOPIA_CREATE_DATE
Deprecated.
since 3.0, will be removed in 3.1, use
PROPERTY_TOPIA_CREATE_DATE instead |
static String |
TOPIA_ID
Deprecated.
since 3.0, will be removed in 3.1, use
PROPERTY_TOPIA_ID instead |
static String |
TOPIA_VERSION
Deprecated.
since 3.0, will be removed in 3.1, use
PROPERTY_TOPIA_VERSION instead |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(EntityVisitor visitor)
Route the entity using a
visitor. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add listener for property writing.
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add listener for property writing.
|
void |
addPropertyListener(PropertyChangeListener listener)
Add listener for property reading.
|
void |
addPropertyListener(String propertyName,
PropertyChangeListener listener)
Add listener for property reading.
|
void |
addVetoableChangeListener(String propertyName,
VetoableChangeListener vetoable) |
void |
addVetoableChangeListener(VetoableChangeListener vetoable) |
void |
addVetoableListener(String propertyName,
VetoableChangeListener vetoable) |
void |
addVetoableListener(VetoableChangeListener vetoable) |
List<TopiaEntity> |
getAggregate()
Deprecated.
from 3.0, method will be moved to entity's generated DAO (cf http://nuiton.org/issues/2776)
|
List<TopiaEntity> |
getComposite()
Deprecated.
from 3.0, method will be moved to entity's generated DAO (cf http://nuiton.org/issues/2776)
|
Date |
getTopiaCreateDate()
Technical date creation of the entity.
|
String |
getTopiaId()
Unique technical Id of the entity.
|
long |
getTopiaVersion()
Technical property to keep versionning of the entity.
|
boolean |
isPersisted()
This method must be used to know if the current entity is present on the
persistent support.
|
void |
notifyDeleted()
Notifies the current entity instance than it has been removed from the
persistent support.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener) |
void |
removePropertyListener(PropertyChangeListener listener) |
void |
removePropertyListener(String propertyName,
PropertyChangeListener listener) |
void |
removeVetoableChangeListener(String propertyName,
VetoableChangeListener vetoable) |
void |
removeVetoableChangeListener(VetoableChangeListener vetoable) |
void |
removeVetoableListener(String propertyName,
VetoableChangeListener vetoable) |
void |
removeVetoableListener(VetoableChangeListener vetoable) |
void |
setTopiaCreateDate(Date date)
Set the technical creation
date of the entity. |
void |
setTopiaId(String id)
Set the technical
id of the entity. |
void |
setTopiaVersion(long version)
Set the technical
version of the entity. |
static final String PROPERTY_TOPIA_ID
@Deprecated static final String TOPIA_ID
PROPERTY_TOPIA_ID insteadstatic final String PROPERTY_TOPIA_CREATE_DATE
@Deprecated static final String TOPIA_CREATE_DATE
PROPERTY_TOPIA_CREATE_DATE insteadstatic final String PROPERTY_TOPIA_VERSION
@Deprecated static final String TOPIA_VERSION
PROPERTY_TOPIA_VERSION instead@Deprecated static final String COMPOSITE
@Deprecated static final String AGGREGATE
String getTopiaId()
void setTopiaId(String id)
id of the entity. Careful, use this method only
for copy. The technical id is generated by ToPIA when entity is created
using TopiaDAO.create(Object...).id - technical id to setlong getTopiaVersion()
void setTopiaVersion(long version)
version of the entity. Careful, use this method
only for copy. The version is automatically incremented on entity
changes.version - technical version to setDate getTopiaCreateDate()
TopiaDAO.create(Object...).void setTopiaCreateDate(Date date)
date of the entity. Careful, use this
method only for copy. This date is immutable and was created on entity
creation.date - technical create date to setboolean isPersisted()
void notifyDeleted()
@Deprecated List<TopiaEntity> getComposite() throws TopiaException
TopiaException - if any pb@Deprecated List<TopiaEntity> getAggregate() throws TopiaException
TopiaException - if any pbvoid accept(EntityVisitor visitor) throws TopiaException
visitor.visitor - to usedTopiaException - for all type of errorvoid addPropertyListener(PropertyChangeListener listener)
listener - the listener to registervoid addPropertyListener(String propertyName, PropertyChangeListener listener)
propertyName - the property name to listenlistener - the listener to registervoid removePropertyListener(PropertyChangeListener listener)
void removePropertyListener(String propertyName, PropertyChangeListener listener)
void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listener to registervoid addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName - name of property to listenlistener - the listener to registervoid removePropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
void addVetoableListener(VetoableChangeListener vetoable)
void addVetoableListener(String propertyName, VetoableChangeListener vetoable)
void removeVetoableListener(VetoableChangeListener vetoable)
void removeVetoableListener(String propertyName, VetoableChangeListener vetoable)
void addVetoableChangeListener(VetoableChangeListener vetoable)
void addVetoableChangeListener(String propertyName, VetoableChangeListener vetoable)
void removeVetoableChangeListener(VetoableChangeListener vetoable)
void removeVetoableChangeListener(String propertyName, VetoableChangeListener vetoable)
Copyright © 2004–2013 CodeLutin. All rights reserved.