com.mockrunner.mock.jdbc
Class MockRef
java.lang.Object
com.mockrunner.mock.jdbc.MockRef
- All Implemented Interfaces:
- java.lang.Cloneable, java.sql.Ref
public class MockRef
- extends java.lang.Object
- implements java.sql.Ref, java.lang.Cloneable
Mock implementation of Ref
.
Constructor Summary |
MockRef(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MockRef
public MockRef(java.lang.Object object)
getBaseTypeName
public java.lang.String getBaseTypeName()
throws java.sql.SQLException
- Specified by:
getBaseTypeName
in interface java.sql.Ref
- Throws:
java.sql.SQLException
setBaseTypeName
public void setBaseTypeName(java.lang.String baseTypeName)
- Sets the base type name.
- Parameters:
baseTypeName
- the base type name
getObject
public java.lang.Object getObject(java.util.Map map)
throws java.sql.SQLException
- Specified by:
getObject
in interface java.sql.Ref
- Throws:
java.sql.SQLException
getObject
public java.lang.Object getObject()
throws java.sql.SQLException
- Specified by:
getObject
in interface java.sql.Ref
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object object)
throws java.sql.SQLException
- Specified by:
setObject
in interface java.sql.Ref
- Throws:
java.sql.SQLException
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