Class AbstractStaticEntityStorePlugin
- java.lang.Object
-
- io.vertigo.datastore.plugins.entitystore.AbstractStaticEntityStorePlugin
-
- All Implemented Interfaces:
io.vertigo.core.node.component.CoreComponent
,io.vertigo.core.node.component.Plugin
,EntityStorePlugin
public abstract class AbstractStaticEntityStorePlugin extends Object implements EntityStorePlugin
Class abstraite des Stores de données static et immutable.- Author:
- npiedeloup
-
-
Constructor Summary
Constructors Constructor Description AbstractStaticEntityStorePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends Entity>
Ecreate(DtDefinition dtDefinition, E entity)
Creates an object.void
delete(DtDefinition dtDefinition, UID uri)
Deletes an object identified by an uri.<E extends Entity>
DtList<E>findAll(DtDefinition dtDefinition, DtListURIForNNAssociation uri)
Récupération d'une liste correspondant à l'URI fournie.<E extends Entity>
DtList<E>findAll(DtDefinition dtDefinition, DtListURIForSimpleAssociation uri)
Récupération d'une liste correspondant à l'URI fournie.void
update(DtDefinition dtDefinition, Entity entity)
Updates an object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.vertigo.datastore.impl.entitystore.EntityStorePlugin
count, findByCriteria, getConnectionName, getDataSpace, readNullable, readNullableForUpdate
-
-
-
-
Method Detail
-
create
public <E extends Entity> E create(DtDefinition dtDefinition, E entity)
Creates an object. No object with the same id must have been created previously.- Specified by:
create
in interfaceEntityStorePlugin
- Parameters:
dtDefinition
- Definitionentity
- Object to create- Returns:
- the created entity
-
update
public void update(DtDefinition dtDefinition, Entity entity)
Updates an object. This object must have an id.- Specified by:
update
in interfaceEntityStorePlugin
- Parameters:
dtDefinition
- Definitionentity
- Object to update
-
delete
public void delete(DtDefinition dtDefinition, UID uri)
Deletes an object identified by an uri.- Specified by:
delete
in interfaceEntityStorePlugin
- Parameters:
dtDefinition
- Definitionuri
- UID
-
findAll
public <E extends Entity> DtList<E> findAll(DtDefinition dtDefinition, DtListURIForNNAssociation uri)
Récupération d'une liste correspondant à l'URI fournie. NOT NULL- Specified by:
findAll
in interfaceEntityStorePlugin
- Type Parameters:
E
- the type of entity- Parameters:
dtDefinition
- Definitionuri
- UID de la collection à charger- Returns:
- DtList
Liste correspondant à l'URI fournie
-
findAll
public <E extends Entity> DtList<E> findAll(DtDefinition dtDefinition, DtListURIForSimpleAssociation uri)
Récupération d'une liste correspondant à l'URI fournie. NOT NULL- Specified by:
findAll
in interfaceEntityStorePlugin
- Type Parameters:
E
- the type of entity- Parameters:
dtDefinition
- Definitionuri
- UID de la collection à charger- Returns:
- DtList
Liste correspondant à l'URI fournie
-
-