Package net.snowflake.client.core
Class SFResultSetMetaData
- java.lang.Object
-
- net.snowflake.client.core.SFResultSetMetaData
-
public class SFResultSetMetaData extends Object
Snowflake ResultSetMetaData
-
-
Constructor Summary
Constructors Constructor Description SFResultSetMetaData(int columnCount, List<String> columnNames, List<String> columnTypeNames, List<Integer> columnTypes, SFBaseSession session)
SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, String queryId, SFBaseSession session, boolean isResultColumnCaseInsensitive, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter)
SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, SFBaseSession session, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCatalogName(int column)
int
getColumnCount()
Get number of columnsInteger
getColumnDisplaySize(int column)
int
getColumnIndex(String columnName)
Get the index of the column by nameString
getColumnLabel(int column)
String
getColumnName(int column)
List<String>
getColumnNames()
Get the list of column namesint
getColumnType(int column)
String
getColumnTypeName(int column)
int
getInternalColumnType(int column)
boolean
getIsAutoIncrement(int column)
List<Boolean>
getIsAutoIncrementList()
int
getPrecision(int column)
String
getQueryId()
get the query idint
getScale(int column)
String
getSchemaName(int column)
SFBaseSession
getSession()
get the sessionString
getTableName(int column)
int
isNullable(int column)
boolean
isSigned(int column)
-
-
-
Constructor Detail
-
SFResultSetMetaData
public SFResultSetMetaData(int columnCount, List<String> columnNames, List<String> columnTypeNames, List<Integer> columnTypes, SFBaseSession session)
-
SFResultSetMetaData
public SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, SFBaseSession session, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter)
-
SFResultSetMetaData
public SFResultSetMetaData(List<SnowflakeColumnMetadata> columnMetadata, String queryId, SFBaseSession session, boolean isResultColumnCaseInsensitive, net.snowflake.common.core.SnowflakeDateTimeFormat timestampNTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampLTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timestampTZFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat dateFormatter, net.snowflake.common.core.SnowflakeDateTimeFormat timeFormatter)
-
-
Method Detail
-
getQueryId
public String getQueryId()
get the query id- Returns:
- query id
-
getSession
public SFBaseSession getSession()
get the session- Returns:
- session object
-
getColumnNames
public List<String> getColumnNames()
Get the list of column names- Returns:
- column names in list
-
getColumnIndex
public int getColumnIndex(String columnName)
Get the index of the column by name- Parameters:
columnName
- column name- Returns:
- index of the column that names matches the column name
-
getColumnCount
public int getColumnCount()
Get number of columns- Returns:
- column count
-
getColumnType
public int getColumnType(int column) throws SFException
- Throws:
SFException
-
getInternalColumnType
public int getInternalColumnType(int column) throws SFException
- Throws:
SFException
-
getColumnTypeName
public String getColumnTypeName(int column) throws SFException
- Throws:
SFException
-
getScale
public int getScale(int column)
-
getPrecision
public int getPrecision(int column)
-
isSigned
public boolean isSigned(int column)
-
getColumnLabel
public String getColumnLabel(int column)
-
getColumnName
public String getColumnName(int column)
-
isNullable
public int isNullable(int column)
-
getCatalogName
public String getCatalogName(int column)
-
getSchemaName
public String getSchemaName(int column)
-
getTableName
public String getTableName(int column)
-
getColumnDisplaySize
public Integer getColumnDisplaySize(int column)
-
getIsAutoIncrement
public boolean getIsAutoIncrement(int column)
-
-