org.synchronoss.cpo.transform.jdbc
Class TransformCharArray
java.lang.Object
org.synchronoss.cpo.transform.jdbc.TransformCharArray
- All Implemented Interfaces:
- CpoTransform<String,char[]>, JdbcCpoTransform<String,char[]>
public class TransformCharArray
- extends Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformCharArray
public TransformCharArray()
transformIn
public char[] transformIn(String inStr)
throws CpoException
- Transforms the datasource object into an object required by the class
- Specified by:
transformIn in interface CpoTransform<String,char[]>
- Parameters:
cpoAdapter - The CpoAdapter for the datasource where the attribute is being retrievedparentObject - The object that contains the attribute being retrieved.The - object that represents the datasource object being retrieved
- Returns:
- The object to be stored in the attribute
- Throws:
CpoException
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:
transformOut in interface JdbcCpoTransform<String,char[]>
- Parameters:
cpoAdapter - The CpoAdapter for the datasource where the attribute is being persistedparentObject - The object that contains the attribute being persisted.attributeObject - The object that represents the attribute being persisted.
- Returns:
- The object to be stored in the datasource
- Throws:
CpoException
transformOut
public String transformOut(JdbcCallableStatementFactory jpsf,
char[] attributeObject)
throws CpoException,
UnsupportedOperationException
- Specified by:
transformOut in interface JdbcCpoTransform<String,char[]>
- Throws:
CpoException
UnsupportedOperationException
transformOut
public String transformOut(char[] j)
throws CpoException,
UnsupportedOperationException
- Specified by:
transformOut in interface CpoTransform<String,char[]>
- Throws:
CpoException
UnsupportedOperationException
Copyright © 2014. All Rights Reserved.