Package com.redwood.scheduler.api.jdbc
Class InternalResultSetMetaData
- java.lang.Object
-
- com.redwood.scheduler.api.jdbc.InternalResultSetMetaData
-
- All Implemented Interfaces:
ToolResultSetMetaData
public class InternalResultSetMetaData extends Object implements ToolResultSetMetaData
REDWOOD INTERNAL USE ONLY, NOT FOR CUSTOMER USE. Internal tool result set metadata for client JDBC driver.
-
-
Constructor Summary
Constructors Constructor Description InternalResultSetMetaData(ResultSetMetaData newMetaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColumnClassName(int newColumnIndex)
Get the class name for the specified column, columns start at 1.int
getColumnCount()
Get the number of columns.String
getColumnLabel(int newColumnIndex)
Get the label for the specified column, columns start at 1.String
getColumnTypeInternal(int columnIndex)
String
getColumnTypeName(int newColumnIndex)
Get the type for the specified column, columns start at 1.
-
-
-
Constructor Detail
-
InternalResultSetMetaData
public InternalResultSetMetaData(ResultSetMetaData newMetaData)
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
Description copied from interface:ToolResultSetMetaData
Get the number of columns.- Specified by:
getColumnCount
in interfaceToolResultSetMetaData
- Returns:
- the number of columns.
-
getColumnClassName
public String getColumnClassName(int newColumnIndex)
Description copied from interface:ToolResultSetMetaData
Get the class name for the specified column, columns start at 1. This corresponds to the <classname> tag in the XML format, the value is of the format:
<ObjectType>.<FieldName>- Specified by:
getColumnClassName
in interfaceToolResultSetMetaData
- Parameters:
newColumnIndex
- the column index, 1 based.- Returns:
- the class name.
-
getColumnLabel
public String getColumnLabel(int newColumnIndex)
Description copied from interface:ToolResultSetMetaData
Get the label for the specified column, columns start at 1. This corresponds to the <label%gt; tag in the XML format, the value is either the same as the class name, or the alias specified in the SQL query.- Specified by:
getColumnLabel
in interfaceToolResultSetMetaData
- Parameters:
newColumnIndex
- the column index, 1 based.- Returns:
- the label.
-
getColumnTypeName
public String getColumnTypeName(int newColumnIndex)
Description copied from interface:ToolResultSetMetaData
Get the type for the specified column, columns start at 1. This corresponds to the <datatype%gt; tag in the XML format, the value is one of:- obj.<ObjectType> - Another object
- Integer - A 64 bit integer (Java Long).
- Number - A general number (Java BigDecimal).
- DateTimeZone - A date with time zone. (Java String/Calendar or Redwood DateTimeZone object)
- String - a String.
- Specified by:
getColumnTypeName
in interfaceToolResultSetMetaData
- Parameters:
newColumnIndex
- the column index, 1 based.- Returns:
- the type name.
-
getColumnTypeInternal
public String getColumnTypeInternal(int columnIndex)
-
-