com.mockrunner.mock.jdbc
Class MockArray

java.lang.Object
  extended bycom.mockrunner.mock.jdbc.MockArray
All Implemented Interfaces:
java.sql.Array, java.lang.Cloneable

public class MockArray
extends java.lang.Object
implements java.sql.Array, java.lang.Cloneable

Mock implementation of Array.


Constructor Summary
MockArray(java.lang.Object array)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object getArray()
           
 java.lang.Object getArray(long index, int count)
           
 java.lang.Object getArray(long index, int count, java.util.Map map)
           
 java.lang.Object getArray(java.util.Map map)
           
 int getBaseType()
           
 java.lang.String getBaseTypeName()
           
 java.sql.ResultSet getResultSet()
           
 java.sql.ResultSet getResultSet(long index, int count)
           
 java.sql.ResultSet getResultSet(long index, int count, java.util.Map map)
           
 java.sql.ResultSet getResultSet(java.util.Map map)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockArray

public MockArray(java.lang.Object array)
Method Detail

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
Specified by:
getBaseTypeName in interface java.sql.Array
Throws:
java.sql.SQLException

getArray

public java.lang.Object getArray()
                          throws java.sql.SQLException
Specified by:
getArray in interface java.sql.Array
Throws:
java.sql.SQLException

getArray

public java.lang.Object getArray(java.util.Map 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 map)
                          throws java.sql.SQLException
Specified by:
getArray in interface java.sql.Array
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(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 map)
                                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 map)
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Array
Throws:
java.sql.SQLException

toString

public java.lang.String toString()

clone

public java.lang.Object clone()