public class EntityByteBuffer<E extends Entity> extends BaseByteBuffer<E>
Modifier and Type | Field and Description |
---|---|
protected Class<E> |
entityClass |
additionalParameters, bitBufferedClasses, bitFieldOperations, bufferStatic, columnOrderIntoEntityHashMap, columns, columnsPositionsQueue, indexRepository, isIndexRepositoryEmpty, locations, pageMaxCapacity, pageMaxCapacityBytes, pages, removed, totalBufferActiveElements, totalBufferSize, totalEntitySpace
entityAny, log
Constructor and Description |
---|
EntityByteBuffer(E entity) |
EntityByteBuffer(E entity,
int capacity) |
EntityByteBuffer(List<E> entities) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E entity) |
OpenedTransactionTarget |
beginTransaction() |
<E extends Entity> |
delete(QueryDelete<E> query,
boolean transaction) |
<E extends Entity> |
delete(QueryDelete<E> query,
Propagation propagation) |
List<E> |
finalFilter(Query<E,?> query) |
E |
get(int i) |
Plate |
getPlate(int i,
Collection<TableColumn> chosenColumns) |
List<Entity> |
getTables() |
<E extends Entity> |
insert(QueryInsert<E> query,
boolean transaction) |
<E extends Entity> |
insert(QueryInsert<E> query,
Propagation propagation) |
boolean |
isBuffer() |
boolean |
isConnectedToDatabase() |
boolean |
isLogQueriesEnabled() |
boolean |
isTransactionActive() |
<E extends Entity> |
readEntity(QueryEntity<E> query) |
<E1 extends Entity> |
readEntityList(QueryEntity<E1> query) |
<E extends Entity,F> |
readField(QueryField<E,F> query) |
<E extends Entity,F> |
readFieldList(QueryField<E,F> query) |
Plate |
readPlate(QueryPlate query) |
Plates |
readPlateList(QueryPlate query) |
void |
remove(int position) |
<E extends Entity> |
toSqlQuery(Query<E,?> query) |
<E extends Entity> |
update(QueryUpdate<E> query,
boolean transaction) |
<E extends Entity> |
update(QueryUpdate<E> query,
Propagation propagation) |
adjustForCapacity, determineBitField, determineIndex, filterUsingIndexes, finalFilter, finalFilterField, getBufferMemoryUsage, getBufferPositionOfColumn, getColumnIntoEntityPosition, getLog, getNextFreeLocation, getPages, getValue, getValueForColumnPosition, isBufferStatic, isEmpty, mayBeBitBuffered, mergeIfNecessary, setBufferStatic, size
addInterceptor, addInterceptorForAllEntities, afterDelete, afterInsert, afterUpdate, areInterceptorInUse, beforeDelete, beforeInsert, beforeUpdate, enableStatisticCollecting, getAccessProtector, getInterceptorsForEntity, getInterceptorsMap, getStatisticCollector, getStatistics, handleTransactionalTarget, isStatisticCollectingEnabled, setAccessProtector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
aroundTransaction
public EntityByteBuffer(E entity)
public EntityByteBuffer(E entity, int capacity)
public void remove(int position)
public boolean add(E entity)
public Plate getPlate(int i, Collection<TableColumn> chosenColumns)
getPlate
in class BaseByteBuffer<E extends Entity>
public E get(int i)
public <E extends Entity> E readEntity(QueryEntity<E> query)
public <E1 extends Entity> Entities<E1> readEntityList(QueryEntity<E1> query)
public <E extends Entity,F> F readField(QueryField<E,F> query)
public <E extends Entity,F> List<F> readFieldList(QueryField<E,F> query)
public Plate readPlate(QueryPlate query)
readPlate
in interface QueryReceiver
readPlate
in class BaseByteBuffer<E extends Entity>
public Plates readPlateList(QueryPlate query)
readPlateList
in interface QueryReceiver
readPlateList
in class BaseByteBuffer<E extends Entity>
public <E extends Entity> int delete(QueryDelete<E> query, boolean transaction)
delete
in interface QueryReceiver
delete
in class BaseByteBuffer<E extends Entity>
public <E extends Entity> int update(QueryUpdate<E> query, boolean transaction)
update
in interface QueryReceiver
update
in class BaseByteBuffer<E extends Entity>
public <E extends Entity> E insert(QueryInsert<E> query, boolean transaction)
insert
in interface QueryReceiver
insert
in class BaseByteBuffer<E extends Entity>
public <E extends Entity> int delete(QueryDelete<E> query, Propagation propagation)
delete
in interface QueryReceiver
delete
in class BaseByteBuffer<E extends Entity>
public <E extends Entity> int update(QueryUpdate<E> query, Propagation propagation)
update
in interface QueryReceiver
update
in class BaseByteBuffer<E extends Entity>
public <E extends Entity> E insert(QueryInsert<E> query, Propagation propagation)
insert
in interface QueryReceiver
insert
in class BaseByteBuffer<E extends Entity>
public boolean isBuffer()
public boolean isConnectedToDatabase()
isConnectedToDatabase
in interface Target
isConnectedToDatabase
in class BaseByteBuffer<E extends Entity>
public OpenedTransactionTarget beginTransaction()
beginTransaction
in interface Target
beginTransaction
in class BaseByteBuffer<E extends Entity>
public boolean isTransactionActive()
isTransactionActive
in interface Target
isTransactionActive
in class BaseByteBuffer<E extends Entity>
public boolean isLogQueriesEnabled()
isLogQueriesEnabled
in interface Target
isLogQueriesEnabled
in class BaseByteBuffer<E extends Entity>
Copyright © 2021. All rights reserved.