Class TransformStringByte
java.lang.Object
org.synchronoss.cpo.core.transform.TransformStringByte
- All Implemented Interfaces:
CpoTransform<byte[],String>
Converts a String to a byte[]
- Author:
- david berry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontransformIn(byte[] bytes) Converts a raw datastore value into the bean-side representation.byte[]transformOut(String str) Converts a bean attribute's value into the raw datastore-side representation.
-
Constructor Details
-
TransformStringByte
public TransformStringByte()Creates an instance.
-
-
Method Details
-
transformIn
Converts a raw datastore value into the bean-side representation.- Specified by:
transformInin interfaceCpoTransform<byte[],String> - Parameters:
bytes- the raw value read from the datastore- Returns:
- the value to set on the bean attribute
- Throws:
CpoException- if the value cannot be converted
-
transformOut
Converts a bean attribute's value into the raw datastore-side representation.- Specified by:
transformOutin interfaceCpoTransform<byte[],String> - Parameters:
str- the value read from the bean attribute- Returns:
- the value to bind to the datastore
- Throws:
CpoException- if the value cannot be converted
-