public interface TopiaEntity extends Serializable
The TopiaEntity is the main interface for each generated entity.
An entity is just a persistent bean mapped with Hibernate. The manipulation on entities (create, update, delete,
find) is made by the associated TopiaDao.
| 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(TopiaEntityVisitor visitor)
Route the entity using a
visitor. |
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 |
isDeleted() |
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 |
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. Make sure to use this method only for copy. The technical id is
generated by ToPIA when the entity is persisted using the TopiaDao.create()
methods.id - technical id to setlong getTopiaVersion()
void setTopiaVersion(long version)
version of the entity. Make sure to use this method only for copy. The version is
automatically incremented on entity changes.version - technical version to setDate getTopiaCreateDate()
TopiaDao.create() methods.void setTopiaCreateDate(Date date)
date of the entity. Make sure to use this method only for copy. This date is
immutable and was created on entity creation.date - technical create date to setboolean isPersisted()
boolean isDeleted()
void notifyDeleted()
void accept(TopiaEntityVisitor visitor)
visitor.visitor - to usedCopyright © 2004–2019 CodeLutin. All rights reserved.