public class PersistenceContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationContext |
configContext |
protected DaoContext |
daoContext |
protected Object |
entity |
protected Class<?> |
entityClass |
protected EntityMeta |
entityMeta |
protected AbstractFlushContext |
flushContext |
protected EntityInitializer |
initializer |
protected EntityLoader |
loader |
protected Options |
options |
protected Object |
partitionKey |
protected EntityPersister |
persister |
protected Object |
primaryKey |
protected EntityProxifier |
proxifier |
protected EntityRefresher |
refresher |
protected EntityUpdater |
updater |
| Constructor and Description |
|---|
PersistenceContext(EntityMeta entityMeta,
ConfigurationContext configContext,
DaoContext daoContext,
AbstractFlushContext flushContext,
Class<?> entityClass,
Object primaryKey,
Options options) |
PersistenceContext(EntityMeta entityMeta,
ConfigurationContext configContext,
DaoContext daoContext,
AbstractFlushContext flushContext,
Object entity,
Options options) |
protected AbstractFlushContext flushContext
protected EntityInitializer initializer
protected EntityPersister persister
protected EntityProxifier proxifier
protected EntityRefresher refresher
protected EntityLoader loader
protected EntityUpdater updater
protected ConfigurationContext configContext
protected Class<?> entityClass
protected EntityMeta entityMeta
protected Object entity
protected Object primaryKey
protected Object partitionKey
protected Options options
protected DaoContext daoContext
public PersistenceContext(EntityMeta entityMeta, ConfigurationContext configContext, DaoContext daoContext, AbstractFlushContext flushContext, Class<?> entityClass, Object primaryKey, Options options)
public PersistenceContext(EntityMeta entityMeta, ConfigurationContext configContext, DaoContext daoContext, AbstractFlushContext flushContext, Object entity, Options options)
public PersistenceContext duplicate(Object entity)
public com.datastax.driver.core.Row loadEntity()
public com.datastax.driver.core.Row loadProperty(PropertyMeta pm)
public void pushInsertStatement()
public void pushUpdateStatement(List<PropertyMeta> pms)
public void bindForRemoval(String tableName)
public void bindForSimpleCounterIncrement(PropertyMeta counterMeta, Long increment)
public void incrementSimpleCounter(PropertyMeta counterMeta, Long increment, ConsistencyLevel consistency)
public void decrementSimpleCounter(PropertyMeta counterMeta, Long decrement, ConsistencyLevel consistency)
public Long getSimpleCounter(PropertyMeta counterMeta, ConsistencyLevel consistency)
public void bindForSimpleCounterRemoval(PropertyMeta counterMeta)
public void pushClusteredCounterIncrementStatement(PropertyMeta counterMeta, Long increment)
public com.datastax.driver.core.Row getClusteredCounter(ConsistencyLevel readLevel)
public Long getClusteredCounterColumn(PropertyMeta counterMeta, ConsistencyLevel readLevel)
public void bindForClusteredCounterRemoval()
public com.datastax.driver.core.ResultSet bindAndExecute(com.datastax.driver.core.PreparedStatement ps,
Object... params)
public void pushStatement(AbstractStatementWrapper statementWrapper)
public void pushCounterStatement(AbstractStatementWrapper statementWrapper)
public com.datastax.driver.core.ResultSet executeImmediate(AbstractStatementWrapper bsWrapper)
public <T> T persist(T rawEntity)
public void update(Object proxifiedEntity)
public void remove()
public <T> T find(Class<T> entityClass)
public <T> T getProxy(Class<T> entityClass)
public void refresh(Object proxifiedEntity) throws AchillesStaleObjectStateException
public <T> T initialize(T proxifiedEntity)
public PropertyMeta getIdMeta()
public boolean isClusteredEntity()
public boolean isClusteredCounter()
public String getTableName()
public boolean isBatchMode()
public void flush()
public void endBatch()
public EntityMeta getEntityMeta()
public Object getEntity()
public void setEntity(Object entity)
public <T> Class<T> getEntityClass()
public Object getPrimaryKey()
public void setPrimaryKey(Object primaryKey)
public Object getPartitionKey()
public void setPartitionKey(Object partitionKey)
public ConfigurationContext getConfigContext()
public void setEntityMeta(EntityMeta entityMeta)
public com.google.common.base.Optional<Integer> getTtt()
public com.google.common.base.Optional<Long> getTimestamp()
public com.google.common.base.Optional<ConsistencyLevel> getConsistencyLevel()
public List<PropertyMeta> getAllCountersMeta()
Copyright © 2012-2014. All Rights Reserved.