E
- - Entity classpublic class EntityList<E extends Entity> extends EntitiesBufferIndexed<E> implements Entities<E>, StatisticCollectorProvider, StatisticProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
needRefresh |
Constructor and Description |
---|
EntityList(List<E> entities) |
EntityList(List<E> entities,
Class<E> clazz) |
calculateIndexes, filter, getKeys, getValues, init, isPrimaryKey, setPrimaryKey, size
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateIndexes, filter, findByteBuffer, findOne, forEach
exists, map
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
toJSON
delete, deleteCollection, deletePkEntity, deletePkEntity, findAll, findAll, findFieldsByPk, findFieldsByPk, findManyByPk, findManyByPk, findOneByPk, findOneByPk, findOneByPk, getPrimaryKeyGenerator, insert, insertAll, insertAll, nativeSelect, nativeSelect, nativeSelect, select, select, select, select, select, selectRelated, update, update, update, update, updateWhole
public boolean isTransactionActive()
isTransactionActive
in interface Target
public boolean isLogQueriesEnabled()
isLogQueriesEnabled
in interface Target
public <T> T aroundTransaction(Supplier<T> t)
aroundTransaction
in interface Target
public <E1 extends Entity> E1 readEntity(QueryEntity<E1> query)
readEntity
in interface QueryReceiver
public <E1 extends Entity> Entities<E1> readEntityList(QueryEntity<E1> query)
readEntityList
in interface QueryReceiver
public <M extends Entity,F> F readField(QueryField<M,F> query)
readField
in interface QueryReceiver
public <O extends Entity,F> List<F> readFieldList(QueryField<O,F> query)
readFieldList
in interface QueryReceiver
public <F> List<F> readFieldList2(QueryField<E,F> query)
public PlateBuffer readPlateList(QueryPlate query)
readPlateList
in interface QueryReceiver
public <E extends Entity> int delete(QueryDelete<E> query, boolean transaction)
delete
in interface QueryReceiver
public <E extends Entity> int update(QueryUpdate<E> query, boolean transaction)
update
in interface QueryReceiver
public <E extends Entity> E insert(QueryInsert<E> query, boolean transaction)
insert
in interface QueryReceiver
public <E extends Entity> int delete(QueryDelete<E> query, Propagation propagation)
delete
in interface QueryReceiver
public <E extends Entity> int update(QueryUpdate<E> query, Propagation propagation)
update
in interface QueryReceiver
public <E extends Entity> E insert(QueryInsert<E> query, Propagation propagation)
insert
in interface QueryReceiver
public boolean isConnectedToDatabase()
isConnectedToDatabase
in interface Target
public OpenedTransactionTarget beginTransaction()
beginTransaction
in interface Target
public Entities<E> findMany()
findMany
in interface EntitiesProvider<E extends Entity>
public Optional<E> findFirst()
findFirst
in interface EntitiesProvider<E extends Entity>
public long countAny()
countAny
in interface EntitiesProvider<E extends Entity>
public void refreshImmediately()
refreshImmediately
in interface Entities<E extends Entity>
public void markRefreshCache()
markRefreshCache
in interface Entities<E extends Entity>
public Plate readPlate(QueryPlate query)
readPlate
in interface QueryReceiver
public org.slf4j.Logger getLog()
getLog
in interface ILoggerBean
public String toJSON()
toJSON
in interface JsonHandler
toJSON
in interface JsonListHandler
public String toUpdateSQL(DataBaseTarget target)
public StatisticCollector getStatisticCollector()
getStatisticCollector
in interface StatisticCollectorProvider
public boolean isStatisticCollectingEnabled()
isStatisticCollectingEnabled
in interface StatisticCollectorProvider
public void enableStatisticCollecting(boolean statisticEnabled)
enableStatisticCollecting
in interface StatisticCollectorProvider
public <E extends Entity> String toSqlQuery(Query<E,?> query)
toSqlQuery
in interface QueryReceiver
public Entities<StatisticRecord> getStatistics()
getStatistics
in interface StatisticProvider
Copyright © 2021. All rights reserved.