Class TransformStringChar
java.lang.Object
org.synchronoss.cpo.jdbc.transform.TransformStringChar
- All Implemented Interfaces:
CpoTransform<String,,char[]> JdbcCpoTransform<String,char[]>
Converts a String from a jdbc datasource to a char[] and from a char[] to a String in a
datasource
- Author:
- david berry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]transformIn(String lvc) Transforms the datasource object into an object required by the classtransformOut(char[] j) Converts a bean attribute's value into the raw datastore-side representation.transformOut(JdbcCallableStatementFactory jpsf, char[] dataObject) Transforms a java object to a data source object for the preparedstatementtransformOut(JdbcPreparedStatementFactory jpsf, char[] dataObj) Transforms the data from the class attribute to the object required by the datasource
-
Constructor Details
-
TransformStringChar
public TransformStringChar()Convert a TransformStringChar
-
-
Method Details
-
transformIn
Transforms the datasource object into an object required by the class- Specified by:
transformInin interfaceCpoTransform<String,char[]> - Parameters:
lvc- The String to transform- Returns:
- The byte array
- Throws:
CpoException- - an error occurred
-
transformOut
Transforms the data from the class attribute to the object required by the datasource- Specified by:
transformOutin interfaceJdbcCpoTransform<String,char[]> - Parameters:
jpsf- The JdbcPreparedStatementFactorydataObj- database object to be transformed- Returns:
- The String to be stored in the java attribute
- Throws:
CpoException- - an error occurred
-
transformOut
public String transformOut(JdbcCallableStatementFactory jpsf, char[] dataObject) throws CpoException, UnsupportedOperationException Description copied from interface:JdbcCpoTransformTransforms a java object to a data source object for the preparedstatement- Specified by:
transformOutin interfaceJdbcCpoTransform<String,char[]> - Parameters:
jpsf- the callable statement factory that will be receiving the objectdataObject- the java object to be transformed- Returns:
- The datasource object
- Throws:
CpoException- an error transforming the java object to the data objectUnsupportedOperationException
-
transformOut
Description copied from interface:CpoTransformConverts a bean attribute's value into the raw datastore-side representation.- Specified by:
transformOutin interfaceCpoTransform<String,char[]> - Parameters:
j- the value read from the bean attribute- Returns:
- the value to bind to the datastore
- Throws:
CpoException- if the value cannot be convertedUnsupportedOperationException
-