Package mondrian.test
Class DialectTest.MockResultSetMetadata
- java.lang.Object
-
- mondrian.util.DelegatingInvocationHandler
-
- mondrian.test.DialectTest.MockResultSetMetadata
-
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
- DialectTest
public static class DialectTest.MockResultSetMetadata extends DelegatingInvocationHandler
-
-
Constructor Summary
Constructors Constructor Description MockResultSetMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetMetaData
build()
String
getColumnName(int column)
Proxy forResultSetMetaData.getPrecision(int)
.int
getColumnType(int column)
Proxy forResultSetMetaData.getPrecision(int)
.int
getPrecision(int column)
Proxy forResultSetMetaData.getPrecision(int)
.int
getScale(int column)
Proxy forResultSetMetaData.getPrecision(int)
.DialectTest.MockResultSetMetadata
withColumnName(String setColumnName)
DialectTest.MockResultSetMetadata
withColumnType(int setColumnType)
DialectTest.MockResultSetMetadata
withPrecision(int setPrecision)
DialectTest.MockResultSetMetadata
withScale(int setScale)
-
Methods inherited from class mondrian.util.DelegatingInvocationHandler
getTarget, invoke
-
-
-
-
Method Detail
-
withPrecision
public DialectTest.MockResultSetMetadata withPrecision(int setPrecision)
-
withScale
public DialectTest.MockResultSetMetadata withScale(int setScale)
-
withColumnType
public DialectTest.MockResultSetMetadata withColumnType(int setColumnType)
-
withColumnName
public DialectTest.MockResultSetMetadata withColumnName(String setColumnName)
-
build
public ResultSetMetaData build()
-
getPrecision
public int getPrecision(int column) throws SQLException
Proxy forResultSetMetaData.getPrecision(int)
.- Throws:
SQLException
-
getColumnName
public String getColumnName(int column) throws SQLException
Proxy forResultSetMetaData.getPrecision(int)
.- Throws:
SQLException
-
getColumnType
public int getColumnType(int column) throws SQLException
Proxy forResultSetMetaData.getPrecision(int)
.- Throws:
SQLException
-
getScale
public int getScale(int column) throws SQLException
Proxy forResultSetMetaData.getPrecision(int)
.- Throws:
SQLException
-
-