Class TransformCharArray
java.lang.Object
org.synchronoss.cpo.jdbc.transform.TransformCharArray
- All Implemented Interfaces:
CpoTransform<String,,char[]> JdbcCpoTransform<String,char[]>
Converts a char[] from a jdbc datasource getString() call and from a char[] to a setString() in a
datasource
- Author:
- david berry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]transformIn(String inStr) Transforms the datasource object into an object required by the classtransformOut(char[] j) transformOut(JdbcCallableStatementFactory jpsf, char[] attributeObject) Transforms a java object to a data source object for the preparedstatementtransformOut(JdbcPreparedStatementFactory jpsf, char[] attributeObject) Transforms the data from the class attribute to the object required by the datasource
-
Constructor Details
-
TransformCharArray
public TransformCharArray()Constructs a TransformCharArray
-
-
Method Details
-
transformIn
Transforms the datasource object into an object required by the class- Specified by:
transformInin interfaceCpoTransform<String,char[]> - Parameters:
inStr- - The string from the db to be a char array- Returns:
- The object to be stored in the attribute
- Throws:
CpoException- An error occurred during the transform
-
transformOut
public String transformOut(JdbcPreparedStatementFactory jpsf, char[] attributeObject) throws CpoException Transforms the data from the class attribute to the object required by the datasource- Specified by:
transformOutin interfaceJdbcCpoTransform<String,char[]> - Parameters:
jpsf- The JdbcPreparedStatementFactory to have access to the actual connection and be able to work with closeable itemsattributeObject- The object that represents the attribute being persisted.- Returns:
- The object to be stored in the datasource
- Throws:
CpoException- An error occurred during the transform
-
transformOut
public String transformOut(JdbcCallableStatementFactory jpsf, char[] attributeObject) 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 objectattributeObject- the java object to be transformed- Returns:
- The datasource object
- Throws:
CpoException- an error transforming the java object to the data objectUnsupportedOperationException
-
transformOut
- Specified by:
transformOutin interfaceCpoTransform<String,char[]> - Throws:
CpoExceptionUnsupportedOperationException
-