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 ResultSetMetaDatabuild()StringgetColumnName(int column)Proxy forResultSetMetaData.getPrecision(int).intgetColumnType(int column)Proxy forResultSetMetaData.getPrecision(int).intgetPrecision(int column)Proxy forResultSetMetaData.getPrecision(int).intgetScale(int column)Proxy forResultSetMetaData.getPrecision(int).DialectTest.MockResultSetMetadatawithColumnName(String setColumnName)DialectTest.MockResultSetMetadatawithColumnType(int setColumnType)DialectTest.MockResultSetMetadatawithPrecision(int setPrecision)DialectTest.MockResultSetMetadatawithScale(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 SQLExceptionProxy 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 SQLExceptionProxy forResultSetMetaData.getPrecision(int).- Throws:
SQLException
-
getScale
public int getScale(int column) throws SQLExceptionProxy forResultSetMetaData.getPrecision(int).- Throws:
SQLException
-
-