com.mockrunner.mock.jdbc
Class MockStruct
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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)
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