public interface TopiaEntityContextable extends TopiaEntity
TopiaEntity with TopiaDaoSupplier support (injected by
AbstractTopiaDao into entities).
WARNING, it is not recommended to use this mechanism as it breaks the POJO's Hibernate approach.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_AGGREGATE |
static String |
PROPERTY_COMPOSITE |
static String |
PROPERTY_TOPIA_DAO_SUPPLIER |
AGGREGATE, COMPOSITE, PROPERTY_TOPIA_CREATE_DATE, PROPERTY_TOPIA_ID, PROPERTY_TOPIA_VERSION, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete entity in persistence context.
|
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)
|
TopiaDao<?> |
getGenericEntityDao() |
TopiaDaoSupplier |
getTopiaDaoSupplier() |
void |
setTopiaDaoSupplier(TopiaDaoSupplier topiaDaoSupplier)
Injects into this entity the given
TopiaDaoSupplier, which can be used to
get any Dao instance. |
void |
update()
Update entity in persistence context.
|
accept, getTopiaCreateDate, getTopiaId, getTopiaVersion, isDeleted, isPersisted, notifyDeleted, setTopiaCreateDate, setTopiaId, setTopiaVersionstatic final String PROPERTY_COMPOSITE
static final String PROPERTY_AGGREGATE
static final String PROPERTY_TOPIA_DAO_SUPPLIER
void update()
void delete()
void setTopiaDaoSupplier(TopiaDaoSupplier topiaDaoSupplier)
TopiaDaoSupplier, which can be used to
get any Dao instance. This is used to make update() and delete() implementation possible.topiaDaoSupplier - an initialized TopiaDaoSupplier instanceTopiaDaoSupplier getTopiaDaoSupplier()
TopiaDaoSupplierTopiaDao<?> getGenericEntityDao()
@Deprecated List<TopiaEntity> getComposite()
@Deprecated List<TopiaEntity> getAggregate()
Copyright © 2004–2020 Code Lutin. All rights reserved.