public class TransformBlob extends Object implements JdbcCpoTransform<Blob,byte[]>
| Constructor and Description |
|---|
TransformBlob() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
transformIn(Blob blob)
Transforms the datasource object into an object required by the class
|
Blob |
transformOut(byte[] j) |
Blob |
transformOut(JdbcCallableStatementFactory jpsf,
byte[] attributeObject) |
Blob |
transformOut(JdbcPreparedStatementFactory jpsf,
byte[] attributeObject)
Transforms the data from the class attribute to the object required by the datasource
|
public byte[] transformIn(Blob blob) throws CpoException
transformIn in interface CpoTransform<Blob,byte[]>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 retrievedCpoExceptionpublic Blob transformOut(JdbcPreparedStatementFactory jpsf, byte[] attributeObject) throws CpoException
transformOut in interface JdbcCpoTransform<Blob,byte[]>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.CpoExceptionpublic Blob transformOut(JdbcCallableStatementFactory jpsf, byte[] attributeObject) throws CpoException, UnsupportedOperationException
transformOut in interface JdbcCpoTransform<Blob,byte[]>CpoExceptionUnsupportedOperationExceptionpublic Blob transformOut(byte[] j) throws CpoException, UnsupportedOperationException
transformOut in interface CpoTransform<Blob,byte[]>CpoExceptionUnsupportedOperationExceptionCopyright © 2014. All Rights Reserved.