public abstract class AbstractDataManager<EntityImpl extends Entity> extends Object implements DataManager<EntityImpl>
| Constructor and Description |
|---|
AbstractDataManager() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic abstract Class<? extends EntityImpl> getManagedEntityClass()
public List<Class<? extends EntityImpl>> getManagedEntitySubClasses()
protected CommandContext getCommandContext()
protected <T> T getSession(Class<T> sessionClass)
protected DbSqlSession getDbSqlSession()
protected EntityCache getEntityCache()
public EntityImpl findById(String entityId)
findById in interface DataManager<EntityImpl extends Entity>public void insert(EntityImpl entity)
insert in interface DataManager<EntityImpl extends Entity>public EntityImpl update(EntityImpl entity)
update in interface DataManager<EntityImpl extends Entity>public void delete(String id)
delete in interface DataManager<EntityImpl extends Entity>public void delete(EntityImpl entity)
delete in interface DataManager<EntityImpl extends Entity>protected EntityImpl findByQuery(String selectQuery, Object parameter)
protected List<EntityImpl> getList(String dbQueryName, Object parameter)
protected EntityImpl getEntity(String selectQuery, Object parameter, SingleCachedEntityMatcher<EntityImpl> cachedEntityMatcher, boolean checkDatabase)
protected List<EntityImpl> getList(String dbQueryName, Object parameter, CachedEntityMatcher<EntityImpl> cachedEntityMatcher)
protected List<EntityImpl> getList(String dbQueryName, Object parameter, CachedEntityMatcher<EntityImpl> cachedEntityMatcher, boolean checkCache)
CachedEntityMatcher. First, the entities are fetched from the database using the provided query. The cache is then queried for
the entities of the same type. If an entity matches the CachedEntityMatcher condition, it replaces the entity from the database (as it is newer).dbQueryName - The query name that needs to be executed.parameter - The parameters for the query.cachedEntityMatcher - The matcher used to determine which entities from the cache needs to be retainedcheckCache - If false, no cache check will be done, and the returned list will simply be the list from the database.protected List<EntityImpl> getListFromCache(CachedEntityMatcher<EntityImpl> entityMatcher, Object parameter)
Copyright © 2017 Flowable. All rights reserved.