com.simba.dsi.utilities
Class DataRetrievalUtilities

java.lang.Object
  extended by com.simba.dsi.utilities.DataRetrievalUtilities

public final class DataRetrievalUtilities
extends java.lang.Object

Utility class for retrieving data.


Nested Class Summary
static class DataRetrievalUtilities.DataRetrievalStatus
           
 
Method Summary
static byte[] retrieveBinaryData(byte[] in_data, long offset, long maxSize, long targetColLen, DataRetrievalUtilities.DataRetrievalStatus dataRetrievalStatus)
          Retrieve the data for BINARY types and handle truncation and partial retrieval.
static java.lang.String retrieveCharData(java.lang.String in_data, long offset, long maxSize, long targetColLen, DataRetrievalUtilities.DataRetrievalStatus dataRetrievalStatus)
          Retrieve the data for CHAR types and handle truncation and partial retrieval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

retrieveBinaryData

public static byte[] retrieveBinaryData(byte[] in_data,
                                        long offset,
                                        long maxSize,
                                        long targetColLen,
                                        DataRetrievalUtilities.DataRetrievalStatus dataRetrievalStatus)
                                 throws com.simba.support.exceptions.ErrorException
Retrieve the data for BINARY types and handle truncation and partial retrieval.

Parameters:
in_data - The byte array that contains the input data.
offset - The offset of the request.
maxSize - The max size to retrieve from the request.
targetColLen - The target column length that limit the data to retrieve.
dataRetrievalStatus - The DataRetrievalStatus to hold the status regarding the retrieval.
Returns:
The byte array holds the retrieved data.
Throws:
com.simba.support.exceptions.ErrorException - if error happens.

retrieveCharData

public static java.lang.String retrieveCharData(java.lang.String in_data,
                                                long offset,
                                                long maxSize,
                                                long targetColLen,
                                                DataRetrievalUtilities.DataRetrievalStatus dataRetrievalStatus)
                                         throws com.simba.support.exceptions.ErrorException
Retrieve the data for CHAR types and handle truncation and partial retrieval.

Parameters:
in_data - The String that contains the input data.
offset - The offset of the request.
maxSize - The max size to retrieve from the request.
targetColLen - The target column length that limit the data to retrieve.
dataRetrievalStatus - The DataRetrievalStatus to hold the status regarding the retrieval.
Returns:
The String holds the retrieved data.
Throws:
com.simba.support.exceptions.ErrorException - if error happens.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.