|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mockrunner.mock.jdbc.MockArray
public class MockArray
Mock implementation of Array.
| Constructor Summary | |
|---|---|
MockArray(java.lang.Object array)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
void |
free()
|
java.lang.Object |
getArray()
|
java.lang.Object |
getArray(long index,
int count)
|
java.lang.Object |
getArray(long index,
int count,
java.util.Map map)
|
java.lang.Object |
getArray(java.util.Map map)
|
int |
getBaseType()
|
java.lang.String |
getBaseTypeName()
|
java.sql.ResultSet |
getResultSet()
|
java.sql.ResultSet |
getResultSet(long index,
int count)
|
java.sql.ResultSet |
getResultSet(long index,
int count,
java.util.Map map)
|
java.sql.ResultSet |
getResultSet(java.util.Map map)
|
int |
hashCode()
|
void |
setBaseType(int baseType)
Sets the base type. |
void |
setBaseTypeName(java.lang.String sqlTypeName)
Sets the base type name. |
java.lang.String |
toString()
|
boolean |
wasFreeCalled()
Returns if free() has been called. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockArray(java.lang.Object array)
| Method Detail |
|---|
public void setBaseType(int baseType)
baseType - the base typepublic void setBaseTypeName(java.lang.String sqlTypeName)
sqlTypeName - the base type name
public int getBaseType()
throws java.sql.SQLException
getBaseType in interface java.sql.Arrayjava.sql.SQLException
public java.lang.String getBaseTypeName()
throws java.sql.SQLException
getBaseTypeName in interface java.sql.Arrayjava.sql.SQLException
public java.lang.Object getArray()
throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLException
public java.lang.Object getArray(java.util.Map map)
throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLException
public java.lang.Object getArray(long index,
int count)
throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLException
public java.lang.Object getArray(long index,
int count,
java.util.Map map)
throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLException
public java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLException
public java.sql.ResultSet getResultSet(long index,
int count)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLException
public java.sql.ResultSet getResultSet(long index,
int count,
java.util.Map map)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLException
public java.sql.ResultSet getResultSet(java.util.Map map)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLException
public void free()
throws java.sql.SQLException
free in interface java.sql.Arrayjava.sql.SQLExceptionpublic boolean wasFreeCalled()
free() has been called.
true if free() has been called,
false otherwisepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||