Package org.synchronoss.cpo.cassandra
Class CassandraBoundStatementCpoData
java.lang.Object
org.synchronoss.cpo.core.AbstractCpoData
org.synchronoss.cpo.core.meta.AbstractBindableCpoData
org.synchronoss.cpo.cassandra.CassandraBoundStatementCpoData
- All Implemented Interfaces:
CpoData
Helps manage data transfer between the CPO object and the Cassandra bound statement. Bind values
are actually applied in
CassandraBoundStatementFactory.setBindValues(java.util.Collection<org.synchronoss.cpo.core.BindAttribute>), which builds the
whole value array and binds it in a single PreparedStatement.bind(Object...) call; this
class only supplies the transform half of the contract (see transformOut(Object)), used
to resolve each attribute's value before it goes into that array.- Author:
- dberry
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraBoundStatementCpoData(CassandraBoundStatementFactory cpoStatementFactory, CpoAttribute cpoAttribute, int index) Constructs the CassandraBoundStatementCpoData -
Method Summary
Methods inherited from class org.synchronoss.cpo.core.meta.AbstractBindableCpoData
getIndexMethods inherited from class org.synchronoss.cpo.core.AbstractCpoData
getCpoAttribute, getDataGetterReturnType, getDataSetterParamType, invokeGetter, invokeSetter, setCpoAttribute, transformIn
-
Constructor Details
-
CassandraBoundStatementCpoData
public CassandraBoundStatementCpoData(CassandraBoundStatementFactory cpoStatementFactory, CpoAttribute cpoAttribute, int index) Constructs the CassandraBoundStatementCpoData- Parameters:
cpoStatementFactory- The CassandraBoundStatementFactorycpoAttribute- The CpoAttributeindex- The index of the attribute in the bound statement
-
-
Method Details
-
transformOut
- Specified by:
transformOutin interfaceCpoData- Overrides:
transformOutin classAbstractCpoData- Throws:
CpoException
-