com.mockrunner.mock.jdbc
Class MockStruct

java.lang.Object
  extended by com.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.Object[] attributes)
           
MockStruct(java.lang.String sqlTypeName)
           
MockStruct(java.lang.String sqlTypeName, java.lang.Object[] attributes)
           
 
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()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object[] getAttributes()
           
 java.lang.Object[] getAttributes(java.util.Map map)
           
 java.lang.String getSQLTypeName()
           
 int hashCode()
           
 void setSQLTypeName(java.lang.String sqlTypeName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockStruct

public MockStruct(java.lang.Object[] attributes)

MockStruct

public MockStruct(java.lang.String sqlTypeName,
                  java.lang.Object[] attributes)

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

setSQLTypeName

public void setSQLTypeName(java.lang.String sqlTypeName)

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()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object