com.mockrunner.mock.jdbc
Class MockStruct

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

public class MockStruct
extends java.lang.Object
implements java.sql.Struct, java.lang.Cloneable

Mock implementation of Struct.


Constructor Summary
MockStruct(java.lang.String sqlTypeName)
           
 
Method Summary
 void addAttribute(java.lang.Object attribute)
           
 void addAttributes(java.util.List attributes)
           
 void addAttributes(java.lang.Object[] attributes)
           
 void clearAttributes()
           
 java.lang.Object clone()
           
 java.lang.Object[] getAttributes()
           
 java.lang.Object[] getAttributes(java.util.Map map)
           
 java.lang.String getSQLTypeName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockStruct

public MockStruct(java.lang.String sqlTypeName)
Method Detail

getSQLTypeName

public java.lang.String getSQLTypeName()
                                throws java.sql.SQLException
Specified by:
getSQLTypeName in interface java.sql.Struct
Throws:
java.sql.SQLException

getAttributes

public java.lang.Object[] getAttributes()
                                 throws java.sql.SQLException
Specified by:
getAttributes in interface java.sql.Struct
Throws:
java.sql.SQLException

getAttributes

public java.lang.Object[] getAttributes(java.util.Map map)
                                 throws java.sql.SQLException
Specified by:
getAttributes in interface java.sql.Struct
Throws:
java.sql.SQLException

addAttribute

public void addAttribute(java.lang.Object attribute)

addAttributes

public void addAttributes(java.lang.Object[] attributes)

addAttributes

public void addAttributes(java.util.List attributes)

clearAttributes

public void clearAttributes()

toString

public java.lang.String toString()

clone

public java.lang.Object clone()