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 |
static String |
COMPOSITE |
static String |
TOPIA_CREATE_DATE |
static String |
TOPIA_ID |
static String |
TOPIA_VERSION |
static final String TOPIA_ID
static final String TOPIA_CREATE_DATE
static final String TOPIA_VERSION
static final String COMPOSITE
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 setList<TopiaEntity> getComposite() throws TopiaException
TopiaException
- if any pbList<TopiaEntity> getAggregate() throws TopiaException
TopiaException
- if any pbvoid addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
- name of property to listenlistener
- the listener to registervoid addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to registervoid addVetoableChangeListener(String propertyName, VetoableChangeListener vetoable)
void addVetoableChangeListener(VetoableChangeListener vetoable)
void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
void removeVetoableChangeListener(String propertyName, VetoableChangeListener vetoable)
void removeVetoableChangeListener(VetoableChangeListener vetoable)
void addPropertyListener(String propertyName, PropertyChangeListener listener)
propertyName
- the property name to listenlistener
- the listener to registervoid addPropertyListener(PropertyChangeListener listener)
listener
- the listener to registervoid addVetoableListener(String propertyName, VetoableChangeListener vetoable)
void addVetoableListener(VetoableChangeListener vetoable)
void removePropertyListener(String propertyName, PropertyChangeListener listener)
void removePropertyListener(PropertyChangeListener listener)
void removeVetoableListener(String propertyName, VetoableChangeListener vetoable)
void removeVetoableListener(VetoableChangeListener vetoable)
void accept(EntityVisitor visitor) throws TopiaException
visitor
.visitor
- to usedTopiaException
- for all type of errorCopyright © 2004–2022 Code Lutin. All rights reserved.