org.synchronoss.cpo.transform.jdbc
Class TransformGZipBlob
java.lang.Object
org.synchronoss.cpo.transform.jdbc.TransformGZipBlob
- All Implemented Interfaces:
- CpoTransform<Blob,byte[]>, JdbcCpoTransform<Blob,byte[]>
public class TransformGZipBlob
- extends Object
- implements JdbcCpoTransform<Blob,byte[]>
Converts a java.sql.Blob from a jdbc datasource to a byte[] and from a byte[] to a java.sql.Blob
- Author:
- david berry
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformGZipBlob
public TransformGZipBlob()
transformIn
public byte[] transformIn(Blob blob)
throws CpoException
- Transforms the datasource object into an object required by the class
- Specified by:
transformIn in interface CpoTransform<Blob,byte[]>
- 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 Blob transformOut(JdbcPreparedStatementFactory jpsf,
byte[] attributeObject)
throws CpoException
- Transforms the data from the class attribute to the object required by the datasource
- Specified by:
transformOut in interface JdbcCpoTransform<Blob,byte[]>
- 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 Blob transformOut(JdbcCallableStatementFactory jpsf,
byte[] attributeObject)
throws CpoException,
UnsupportedOperationException
- Specified by:
transformOut in interface JdbcCpoTransform<Blob,byte[]>
- Throws:
CpoException
UnsupportedOperationException
transformOut
public Blob transformOut(byte[] j)
throws CpoException,
UnsupportedOperationException
- Specified by:
transformOut in interface CpoTransform<Blob,byte[]>
- Throws:
CpoException
UnsupportedOperationException
Copyright © 2014. All Rights Reserved.