com.nqadmin.swingSet.utils
Class SSArray

java.lang.Object
  extended by com.nqadmin.swingSet.utils.SSArray
All Implemented Interfaces:
java.sql.Array

public class SSArray
extends java.lang.Object
implements java.sql.Array

SSArray.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

 Implementation of SQL array for SSList.


Constructor Summary
SSArray(java.lang.Object[] _data, java.lang.String _baseTypeName)
          Creates SSArray with the object array and data base type
 
Method Summary
 void free()
           
 java.lang.Object getArray()
          returns Object Array contained in SSArray
 java.lang.Object getArray(long index, int count)
           
 java.lang.Object getArray(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map)
           
 java.lang.Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)
           
 int getBaseType()
           
 java.lang.String getBaseTypeName()
          returns the base type name of db array elements
 java.sql.ResultSet getResultSet()
           
 java.sql.ResultSet getResultSet(long index, int count)
           
 java.sql.ResultSet getResultSet(long index, int count, java.util.Map<java.lang.String,java.lang.Class<?>> map)
           
 java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map)
           
 java.lang.String toString()
          Returns a string value with comma separated values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSArray

public SSArray(java.lang.Object[] _data,
               java.lang.String _baseTypeName)
Creates SSArray with the object array and data base type

Parameters:
_data - object array of SSArray
_baseTypeName - Array elements database type name
Method Detail

free

public void free()
          throws java.sql.SQLException
Throws:
java.sql.SQLException

getArray

public java.lang.Object getArray()
                          throws java.sql.SQLException
returns Object Array contained in SSArray

Specified by:
getArray in interface java.sql.Array
Throws:
java.sql.SQLException

getArray

public java.lang.Object getArray(java.util.Map<java.lang.String,java.lang.Class<?>> map)
                          throws java.sql.SQLException
Specified by:
getArray in interface java.sql.Array
Throws:
java.sql.SQLException

getArray

public java.lang.Object getArray(long index,
                                 int count)
                          throws java.sql.SQLException
Specified by:
getArray in interface java.sql.Array
Throws:
java.sql.SQLException

getArray

public java.lang.Object getArray(long index,
                                 int count,
                                 java.util.Map<java.lang.String,java.lang.Class<?>> map)
                          throws java.sql.SQLException
Specified by:
getArray in interface java.sql.Array
Throws:
java.sql.SQLException

getBaseType

public int getBaseType()
                throws java.sql.SQLException
Specified by:
getBaseType in interface java.sql.Array
Throws:
java.sql.SQLException

getBaseTypeName

public java.lang.String getBaseTypeName()
                                 throws java.sql.SQLException
returns the base type name of db array elements

Specified by:
getBaseTypeName in interface java.sql.Array
Returns:
_baseTypeName data base type name
Throws:
java.sql.SQLException

getResultSet

public java.sql.ResultSet getResultSet()
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Array
Throws:
java.sql.SQLException

getResultSet

public java.sql.ResultSet getResultSet(java.util.Map<java.lang.String,java.lang.Class<?>> map)
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Array
Throws:
java.sql.SQLException

getResultSet

public java.sql.ResultSet getResultSet(long index,
                                       int count)
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Array
Throws:
java.sql.SQLException

getResultSet

public java.sql.ResultSet getResultSet(long index,
                                       int count,
                                       java.util.Map<java.lang.String,java.lang.Class<?>> map)
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Array
Throws:
java.sql.SQLException

toString

public java.lang.String toString()
Returns a string value with comma separated values. e.g. "{100,200,300}"

Overrides:
toString in class java.lang.Object