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 StringgetColumnClassName(int newColumnIndex)Get the class name for the specified column, columns start at 1.intgetColumnCount()Get the number of columns.StringgetColumnLabel(int newColumnIndex)Get the label for the specified column, columns start at 1.StringgetColumnTypeInternal(int columnIndex)StringgetColumnTypeName(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:ToolResultSetMetaDataGet the number of columns.- Specified by:
getColumnCountin interfaceToolResultSetMetaData- Returns:
- the number of columns.
-
getColumnClassName
public String getColumnClassName(int newColumnIndex)
Description copied from interface:ToolResultSetMetaDataGet 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:
getColumnClassNamein interfaceToolResultSetMetaData- Parameters:
newColumnIndex- the column index, 1 based.- Returns:
- the class name.
-
getColumnLabel
public String getColumnLabel(int newColumnIndex)
Description copied from interface:ToolResultSetMetaDataGet 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:
getColumnLabelin interfaceToolResultSetMetaData- Parameters:
newColumnIndex- the column index, 1 based.- Returns:
- the label.
-
getColumnTypeName
public String getColumnTypeName(int newColumnIndex)
Description copied from interface:ToolResultSetMetaDataGet 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:
getColumnTypeNamein interfaceToolResultSetMetaData- Parameters:
newColumnIndex- the column index, 1 based.- Returns:
- the type name.
-
getColumnTypeInternal
public String getColumnTypeInternal(int columnIndex)
-
-