org.synchronoss.cpo.transform.jdbc
Class TransformCharArray

Package class diagram package TransformCharArray
java.lang.Object
  extended by org.synchronoss.cpo.transform.jdbc.TransformCharArray

public class TransformCharArray
extends java.lang.Object

Converts a char[] from a jdbc datasource getString() call and from a char[] to a setString() in a datasource

Author:
david berry

Constructor Summary
TransformCharArray()
           
 
Method Summary
 char[] transformIn(java.lang.String inStr)
          Transforms the datasource object into an object required by the class
 java.lang.String transformOut(JdbcPreparedStatementFactory jpsf, char[] attributeObject)
          Transforms the data from the class attribute to the object required by the datasource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformCharArray

public TransformCharArray()
Method Detail

transformIn

public char[] transformIn(java.lang.String inStr)
                   throws CpoException
Transforms the datasource object into an object required by the class

Parameters:
cpoAdapter - The CpoAdapter for the datasource where the attribute is being retrieved
parentObject - 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 java.lang.String transformOut(JdbcPreparedStatementFactory jpsf,
                                     char[] attributeObject)
                              throws CpoException
Transforms the data from the class attribute to the object required by the datasource

Parameters:
cpoAdapter - The CpoAdapter for the datasource where the attribute is being persisted
parentObject - 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


Copyright © 2009. All Rights Reserved.