com.legstar.coxb.transform
Interface IJavaToHostTransformer

All Superinterfaces:
IHostTransformer
All Known Implementing Classes:
AbstractJavaToHostTransformer

public interface IJavaToHostTransformer
extends IHostTransformer

Java to Host transformers offer the capability to turn a java data object to raw mainframe byte arrays.


Method Summary
 byte[] transform(Object valueObject)
          Transforms java to host data.
 byte[] transform(Object valueObject, HostTransformStatus status)
          Transforms java to host data.
 byte[] transform(Object valueObject, String hostCharset)
          Transforms java to host data with a specific host character set.
 byte[] transform(Object valueObject, String hostCharset, HostTransformStatus status)
          Transforms java to host data with a specific host character set.
 
Methods inherited from interface com.legstar.coxb.transform.IHostTransformer
getBinding, getByteLength, getCobolBindingVisitorsFactory, getCobolContext, getCobolConverters, newBinding, setCobolBindingVisitorsFactory, setCobolContext, setCobolConverters
 

Method Detail

transform

byte[] transform(Object valueObject,
                 String hostCharset)
                 throws HostTransformException
Transforms java to host data with a specific host character set.

Parameters:
valueObject - a java value object
hostCharset - the host character set
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Object valueObject)
                 throws HostTransformException
Transforms java to host data.

Parameters:
valueObject - a java value object
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Object valueObject,
                 String hostCharset,
                 HostTransformStatus status)
                 throws HostTransformException
Transforms java to host data with a specific host character set.

Parameters:
valueObject - a java value object
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

transform

byte[] transform(Object valueObject,
                 HostTransformStatus status)
                 throws HostTransformException
Transforms java to host data.

Parameters:
valueObject - a java value object
status - will contain information on the transformation after it is executed
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails


Copyright © 2015 LegSem. All Rights Reserved.