public class DefaultPersistenceContext extends Object implements PersistenceContext
Constructor and Description |
---|
DefaultPersistenceContext(com.datastax.driver.core.Session session) |
DefaultPersistenceContext(com.datastax.driver.core.Session session,
StatementOptions defaultOptions) |
Modifier and Type | Method and Description |
---|---|
Dehydrator |
createDehydrator(int ttl,
StatementOptions options) |
Evaporator |
createEvaporator(StatementOptions options) |
Hydrator |
createHydrator(StatementOptions options) |
<P> PojoDelete |
delete(PojoMapping<P> mapping) |
com.datastax.driver.core.ResultSet |
executeStatement(com.datastax.driver.core.Statement statement,
StatementOptions options) |
<P> PojoQueryBuilder<P> |
find(PojoMapping<P> mapping) |
<P> PojoQuery<P> |
findById(PojoMapping<P> mapping) |
<P> PojoFindByIds<P> |
findByIds(PojoMapping<P> mapping) |
<P> PojoFindForDelete |
findForDelete(PojoMapping<P> mapping) |
<P> PojoInsert<P> |
insert(PojoMapping<P> mapping) |
com.datastax.driver.core.PreparedStatement |
prepare(com.datastax.driver.core.RegularStatement statement) |
public DefaultPersistenceContext(com.datastax.driver.core.Session session)
public DefaultPersistenceContext(com.datastax.driver.core.Session session, StatementOptions defaultOptions)
public Dehydrator createDehydrator(int ttl, StatementOptions options)
createDehydrator
in interface PersistenceContext
public Evaporator createEvaporator(StatementOptions options)
createEvaporator
in interface PersistenceContext
public Hydrator createHydrator(StatementOptions options)
createHydrator
in interface PersistenceContext
public <P> PojoDelete delete(PojoMapping<P> mapping)
delete
in interface PersistenceContext
public com.datastax.driver.core.ResultSet executeStatement(com.datastax.driver.core.Statement statement, StatementOptions options)
executeStatement
in interface PersistenceContext
public <P> PojoQueryBuilder<P> find(PojoMapping<P> mapping)
find
in interface PersistenceContext
public <P> PojoQuery<P> findById(PojoMapping<P> mapping)
findById
in interface PersistenceContext
public <P> PojoFindByIds<P> findByIds(PojoMapping<P> mapping)
findByIds
in interface PersistenceContext
public <P> PojoFindForDelete findForDelete(PojoMapping<P> mapping)
findForDelete
in interface PersistenceContext
public <P> PojoInsert<P> insert(PojoMapping<P> mapping)
insert
in interface PersistenceContext
public com.datastax.driver.core.PreparedStatement prepare(com.datastax.driver.core.RegularStatement statement)
prepare
in interface PersistenceContext
Copyright © 2012-2015 Savoir Technologies, Inc.. All Rights Reserved.