|
|||||||||
| Home >> All >> com >> mockobjects >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mockobjects.sql
Class CommonMockResultSetMetaData

java.lang.Objectcom.mockobjects.MockObject
com.mockobjects.sql.CommonMockResultSetMetaData
- All Implemented Interfaces:
- java.sql.ResultSetMetaData, com.mockobjects.Verifiable
- Direct Known Subclasses:
- MockResultSetMetaData
- class CommonMockResultSetMetaData
- extends com.mockobjects.MockObject
- implements java.sql.ResultSetMetaData
- extends com.mockobjects.MockObject
- Version:
- $Revision: 1.3 $
| Field Summary | |
private com.mockobjects.ReturnObjectList |
myClassNames
|
private com.mockobjects.ExpectationList |
myColumnClassNameIndexes
|
private int |
myColumnCount
|
private com.mockobjects.ExpectationList |
myColumnNameIndexes
|
private com.mockobjects.ExpectationList |
myColumnTypeIndexes
|
private com.mockobjects.ReturnObjectList |
myNames
|
private com.mockobjects.ReturnObjectList |
myTypes
|
| Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
| Constructor Summary | |
(package private) |
CommonMockResultSetMetaData()
|
| Method Summary | |
void |
addExpectedColumnClassNameIndex(int aColumnIndex)
Adds an expectation for a column index to be passed to getColumnClassName |
void |
addExpectedColumnNameIndex(int aColumnIndex)
Adds an expectation for a column index to be passed to getColumnName |
void |
addExpectedColumnTypeIndex(int aColumnIndex)
Adds an expectation for a column index to be passed to getColumnType |
java.lang.String |
getCatalogName(int arg0)
Calls notImplemented. |
java.lang.String |
getColumnClassName(int aColumnIndex)
Returns the column class name. |
int |
getColumnCount()
Returns value passed to setupGetColumnCount. |
int |
getColumnDisplaySize(int arg0)
Calls notImplemented. |
java.lang.String |
getColumnLabel(int arg0)
Calls notImplemented. |
java.lang.String |
getColumnName(int aColumnIndex)
Returns the column name. |
int |
getColumnType(int aColumnIndex)
Returns the column SQL type. |
java.lang.String |
getColumnTypeName(int arg0)
Calls notImplemented. |
int |
getPrecision(int arg0)
Calls notImplemented. |
int |
getScale(int arg0)
Calls notImplemented. |
java.lang.String |
getSchemaName(int arg0)
Calls notImplemented. |
java.lang.String |
getTableName(int arg0)
Calls notImplemented. |
boolean |
isAutoIncrement(int arg0)
Calls notImplemented. |
boolean |
isCaseSensitive(int arg0)
Calls notImplemented. |
boolean |
isCurrency(int arg0)
Calls notImplemented. |
boolean |
isDefinitelyWritable(int arg0)
Calls notImplemented. |
int |
isNullable(int arg0)
Calls notImplemented. |
boolean |
isReadOnly(int arg0)
Calls notImplemented. |
boolean |
isSearchable(int arg0)
Calls notImplemented. |
boolean |
isSigned(int arg0)
Calls notImplemented. |
boolean |
isWritable(int arg0)
Calls notImplemented. |
void |
setupAddColumnClassName(java.lang.String aName)
The next column class name in the resultSet. |
void |
setupAddColumnClassNames(java.lang.String[] allNames)
An array of column class names in the order they appear in the resultSet. |
void |
setupAddColumnName(java.lang.String aName)
The next column name in the resultSet. |
void |
setupAddColumnNames(java.lang.String[] allNames)
An array of column names in the order they appear in the resultSet. |
void |
setupAddColumnType(int aType)
The next column's SQL type in the resultSet as an int. |
void |
setupAddColumnTypes(int[] allTypes)
An array of column SQL types in the order they appear in the resultSet. |
void |
setupGetColumnCount(int aColumnCount)
Value to return from getColumnCount. |
| Methods inherited from class com.mockobjects.MockObject |
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
myNames
private final com.mockobjects.ReturnObjectList myNames
myTypes
private final com.mockobjects.ReturnObjectList myTypes
myClassNames
private final com.mockobjects.ReturnObjectList myClassNames
myColumnCount
private int myColumnCount
myColumnTypeIndexes
private final com.mockobjects.ExpectationList myColumnTypeIndexes
myColumnNameIndexes
private final com.mockobjects.ExpectationList myColumnNameIndexes
myColumnClassNameIndexes
private final com.mockobjects.ExpectationList myColumnClassNameIndexes
| Constructor Detail |
CommonMockResultSetMetaData
CommonMockResultSetMetaData()
| Method Detail |
setupGetColumnCount
public void setupGetColumnCount(int aColumnCount)
- Value to return from getColumnCount.
setupAddColumnNames
public void setupAddColumnNames(java.lang.String[] allNames)
- An array of column names in the order they appear in the
resultSet.
setupAddColumnName
public void setupAddColumnName(java.lang.String aName)
- The next column name in the resultSet.
setupAddColumnTypes
public void setupAddColumnTypes(int[] allTypes)
- An array of column SQL types in the order they appear in the
resultSet.
setupAddColumnType
public void setupAddColumnType(int aType)
- The next column's SQL type in the resultSet as an int.
getColumnCount
public int getColumnCount()
throws java.sql.SQLException
- Returns value passed to setupGetColumnCount.
- Specified by:
getColumnCountin interfacejava.sql.ResultSetMetaData
getColumnName
public java.lang.String getColumnName(int aColumnIndex) throws java.sql.SQLException
- Returns the column name.
DOES NOT SUPPORT THE aColumnIndex PARAMETER.
You must call getColumnName in order, first to last.
Column names may be added with setupAddColumnName.
or setupAddColumnNames.
- Specified by:
getColumnNamein interfacejava.sql.ResultSetMetaData
addExpectedColumnNameIndex
public void addExpectedColumnNameIndex(int aColumnIndex)
- Adds an expectation for a column index to be passed to getColumnName
getColumnType
public int getColumnType(int aColumnIndex)
throws java.sql.SQLException
- Returns the column SQL type.
DOES NOT SUPPORT THE aColumnIndex PARAMETER.
You must call getColumnType in order, first to last.
Column SQL types may be added with setupAddColumnType.
- Specified by:
getColumnTypein interfacejava.sql.ResultSetMetaData
addExpectedColumnTypeIndex
public void addExpectedColumnTypeIndex(int aColumnIndex)
- Adds an expectation for a column index to be passed to getColumnType
isAutoIncrement
public boolean isAutoIncrement(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isAutoIncrementin interfacejava.sql.ResultSetMetaData
isCaseSensitive
public boolean isCaseSensitive(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isCaseSensitivein interfacejava.sql.ResultSetMetaData
isSearchable
public boolean isSearchable(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isSearchablein interfacejava.sql.ResultSetMetaData
isCurrency
public boolean isCurrency(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isCurrencyin interfacejava.sql.ResultSetMetaData
isNullable
public int isNullable(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isNullablein interfacejava.sql.ResultSetMetaData
isSigned
public boolean isSigned(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isSignedin interfacejava.sql.ResultSetMetaData
getColumnDisplaySize
public int getColumnDisplaySize(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns 0.
- Specified by:
getColumnDisplaySizein interfacejava.sql.ResultSetMetaData
getColumnLabel
public java.lang.String getColumnLabel(int arg0) throws java.sql.SQLException
- Calls notImplemented. Returns null.
- Specified by:
getColumnLabelin interfacejava.sql.ResultSetMetaData
getColumnTypeName
public java.lang.String getColumnTypeName(int arg0) throws java.sql.SQLException
- Calls notImplemented. Returns null.
- Specified by:
getColumnTypeNamein interfacejava.sql.ResultSetMetaData
getSchemaName
public java.lang.String getSchemaName(int arg0) throws java.sql.SQLException
- Calls notImplemented. Returns null.
- Specified by:
getSchemaNamein interfacejava.sql.ResultSetMetaData
getPrecision
public int getPrecision(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns 0.
- Specified by:
getPrecisionin interfacejava.sql.ResultSetMetaData
getScale
public int getScale(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns 0.
- Specified by:
getScalein interfacejava.sql.ResultSetMetaData
getTableName
public java.lang.String getTableName(int arg0) throws java.sql.SQLException
- Calls notImplemented. Returns null.
- Specified by:
getTableNamein interfacejava.sql.ResultSetMetaData
getCatalogName
public java.lang.String getCatalogName(int arg0) throws java.sql.SQLException
- Calls notImplemented. Returns null.
- Specified by:
getCatalogNamein interfacejava.sql.ResultSetMetaData
isReadOnly
public boolean isReadOnly(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isReadOnlyin interfacejava.sql.ResultSetMetaData
isWritable
public boolean isWritable(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isWritablein interfacejava.sql.ResultSetMetaData
isDefinitelyWritable
public boolean isDefinitelyWritable(int arg0)
throws java.sql.SQLException
- Calls notImplemented. Returns false.
- Specified by:
isDefinitelyWritablein interfacejava.sql.ResultSetMetaData
setupAddColumnClassNames
public void setupAddColumnClassNames(java.lang.String[] allNames)
- An array of column class names in the order they appear in the
resultSet.
setupAddColumnClassName
public void setupAddColumnClassName(java.lang.String aName)
- The next column class name in the resultSet.
getColumnClassName
public java.lang.String getColumnClassName(int aColumnIndex) throws java.sql.SQLException
- Returns the column class name.
DOES NOT SUPPORT THE aColumnIndex PARAMETER.
You must call getColumnClassName in order, first to last.
Column class names may be added with setupAddColumnClassName.
or setupAddColumnClassNames.
- Specified by:
getColumnClassNamein interfacejava.sql.ResultSetMetaData
addExpectedColumnClassNameIndex
public void addExpectedColumnClassNameIndex(int aColumnIndex)
- Adds an expectation for a column index to be passed to getColumnClassName
|
|||||||||
| Home >> All >> com >> mockobjects >> [ sql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC