Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)

com.lapetus_ltd.api.db.control
Class TLptsRowSet.ResultSetObjectLists

java.lang.Object
  extended by com.lapetus_ltd.api.db.control.TLptsRowSet.ResultSetObjectLists
Enclosing class:
TLptsRowSet

public class TLptsRowSet.ResultSetObjectLists
extends java.lang.Object


This class is used to transport the complete data for a row of the data source.
It contains the java objects, sql types, string values and the raw bytes for each object.


Constructor Summary
TLptsRowSet.ResultSetObjectLists()
          The constructor for the row objects.
 
Method Summary
 void addRecord(java.lang.Object object, int sqlType, java.lang.String string, byte[] bytes)
          Used internally to add objects to the row.
 java.util.List<byte[]> getBytesList()
          This provides all the raw bytes of the objects of the row.
 java.util.List<java.lang.Object> getObjectList()
          This provides all the objects of the row.
 java.util.List<java.lang.Integer> getSqlTypeList()
          This provides all the sql types of the objects of the row.
 java.util.List<java.lang.String> getStringList()
          This provides all the string values of the objects of the row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLptsRowSet.ResultSetObjectLists

public TLptsRowSet.ResultSetObjectLists()
The constructor for the row objects.

Method Detail

addRecord

public void addRecord(java.lang.Object object,
                      int sqlType,
                      java.lang.String string,
                      byte[] bytes)
Used internally to add objects to the row.

Parameters:
object - The java object to be added to the object list.
sqlType - The sql type of the object from the data source.
string - The string value of the object.
bytes - The raw bytes from the data source.

getBytesList

public java.util.List<byte[]> getBytesList()
This provides all the raw bytes of the objects of the row.

Thread Safe : Yes, but is not a copy of the list. Synchronisation may be required in the application.

Spawns its own Thread : No

May Return NULL : N/A

Notes : As returned by the data source driver.
Example :

 

Returns:
The synchronised list of the objects. Unlike the XML lists, this is not a copy of the list. So synchronisation may be required if called by two separate threads.

getObjectList

public java.util.List<java.lang.Object> getObjectList()
This provides all the objects of the row.

Thread Safe : Yes, but is not a copy of the list. Synchronisation may be required in the application.

Spawns its own Thread : No

May Return NULL : N/A

Notes :
All the character objects are stored as type TLptsRowSetStringObject.
This allows for charset conversions of the object, without reading the object again from the resultset. Example :

 

Returns:
The synchronised list of the objects. Unlike the XML lists, this is not a copy of the list. So synchronisation may be required if called by two separate threads.

getSqlTypeList

public java.util.List<java.lang.Integer> getSqlTypeList()
This provides all the sql types of the objects of the row.

Thread Safe : Yes, but is not a copy of the list. Synchronisation may be required in the application.

Spawns its own Thread : No

May Return NULL : N/A

Notes :
Example :

 

Returns:
The synchronised list of the objects. Unlike the XML lists, this is not a copy of the list. So synchronisation may be required if called by two separate threads.

getStringList

public java.util.List<java.lang.String> getStringList()
This provides all the string values of the objects of the row.

Thread Safe : Yes, but is not a copy of the list. Synchronisation may be required in the application.

Spawns its own Thread : No

May Return NULL : N/A

Notes : This is the toString() value of the object.
Example :

 

Returns:
The synchronised list of the objects. Unlike the XML lists, this is not a copy of the list. So synchronisation may be required if called by two separate threads.


Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)