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.String sqlTypeName)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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()