Package net.snowflake.client.jdbc
Class SnowflakeColumnMetadata
- java.lang.Object
-
- net.snowflake.client.jdbc.SnowflakeColumnMetadata
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SnowflakeRichResultSetSerializableV1.SnowflakeRichResultsColumnMetadata
public class SnowflakeColumnMetadata extends Object implements Serializable
- Author:
- jhuang
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnowflakeColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session)
SnowflakeColumnMetadata(String name, int type, boolean nullable, int length, int precision, int scale, String typeName, boolean fixed, SnowflakeType base, String columnSrcDatabase, String columnSrcSchema, String columnSrcTable, boolean isAutoIncrement)
SnowflakeColumnMetadata(String name, int type, boolean nullable, int length, int precision, int scale, String typeName, boolean fixed, SnowflakeType base, List<FieldMetadata> fields, String columnSrcDatabase, String columnSrcSchema, String columnSrcTable, boolean isAutoIncrement, int dimension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnowflakeType
getBase()
String
getColumnSrcDatabase()
String
getColumnSrcSchema()
String
getColumnSrcTable()
int
getDimension()
List<FieldMetadata>
getFields()
int
getLength()
String
getName()
int
getPrecision()
int
getScale()
int
getType()
String
getTypeName()
boolean
isAutoIncrement()
boolean
isFixed()
boolean
isNullable()
void
setAutoIncrement(boolean autoIncrement)
void
setFields(List<FieldMetadata> fields)
void
setFixed(boolean fixed)
void
setLength(int length)
void
setName(String name)
void
setNullable(boolean nullable)
void
setPrecision(int precision)
void
setScale(int scale)
void
setType(int type)
void
setTypeName(String typeName)
String
toString()
-
-
-
Constructor Detail
-
SnowflakeColumnMetadata
@SnowflakeJdbcInternalApi public SnowflakeColumnMetadata(String name, int type, boolean nullable, int length, int precision, int scale, String typeName, boolean fixed, SnowflakeType base, List<FieldMetadata> fields, String columnSrcDatabase, String columnSrcSchema, String columnSrcTable, boolean isAutoIncrement, int dimension)
-
SnowflakeColumnMetadata
@Deprecated public SnowflakeColumnMetadata(String name, int type, boolean nullable, int length, int precision, int scale, String typeName, boolean fixed, SnowflakeType base, String columnSrcDatabase, String columnSrcSchema, String columnSrcTable, boolean isAutoIncrement)
Deprecated.- Parameters:
name
- nametype
- typenullable
- is nullablelength
- lengthprecision
- precisionscale
- scaletypeName
- type namefixed
- is fixedbase
- SnowflakeTypecolumnSrcDatabase
- column source databasecolumnSrcSchema
- column source schemacolumnSrcTable
- column source tableisAutoIncrement
- is auto-increment
-
SnowflakeColumnMetadata
@SnowflakeJdbcInternalApi public SnowflakeColumnMetadata(com.fasterxml.jackson.databind.JsonNode colNode, boolean jdbcTreatDecimalAsInt, SFBaseSession session) throws SnowflakeSQLLoggedException
- Throws:
SnowflakeSQLLoggedException
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getType
public int getType()
-
setType
public void setType(int type)
-
isNullable
public boolean isNullable()
-
setNullable
public void setNullable(boolean nullable)
-
getLength
public int getLength()
-
setLength
public void setLength(int length)
-
getPrecision
public int getPrecision()
-
setPrecision
public void setPrecision(int precision)
-
getScale
public int getScale()
-
setScale
public void setScale(int scale)
-
getTypeName
public String getTypeName()
-
setTypeName
public void setTypeName(String typeName)
-
isFixed
public boolean isFixed()
-
setFixed
public void setFixed(boolean fixed)
-
getBase
public SnowflakeType getBase()
-
getFields
@SnowflakeJdbcInternalApi public List<FieldMetadata> getFields()
-
setFields
@SnowflakeJdbcInternalApi public void setFields(List<FieldMetadata> fields)
-
getColumnSrcTable
public String getColumnSrcTable()
-
getColumnSrcSchema
public String getColumnSrcSchema()
-
getColumnSrcDatabase
public String getColumnSrcDatabase()
-
isAutoIncrement
public boolean isAutoIncrement()
-
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)
-
getDimension
@SnowflakeJdbcInternalApi public int getDimension()
-
-