public class JdbcColumn extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ODPS_DATE_FORMAT |
static String |
ODPS_DATETIME_FORMAT |
static int |
ODPS_DECIMAL_PRECISON |
static int |
ODPS_DECIMAL_SCALE |
static int |
ODPS_STRING_CHARACTERS |
static String |
ODPS_TIME_FORMAT |
| Constructor and Description |
|---|
JdbcColumn(String columnName,
String tableName,
String tableSchema,
com.aliyun.odps.OdpsType type,
com.aliyun.odps.type.TypeInfo typeInfo,
String comment,
int ordinalPos) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
columnCaseSensitive(com.aliyun.odps.OdpsType type) |
static String |
columnClassName(com.aliyun.odps.OdpsType type) |
static int |
columnDisplaySize(com.aliyun.odps.type.TypeInfo typeInfo) |
static int |
columnPrecision(com.aliyun.odps.type.TypeInfo typeInfo) |
static int |
columnScale(com.aliyun.odps.OdpsType type,
com.aliyun.odps.type.TypeInfo typeInfo) |
static boolean |
columnSigned(com.aliyun.odps.OdpsType type) |
String |
getColumnName() |
String |
getComment() |
int |
getDecimalDigits() |
int |
getIsNullable() |
String |
getIsNullableString() |
int |
getNumPercRaidx() |
int |
getOrdinalPos() |
String |
getTableName() |
String |
getTableSchema() |
int |
getType() |
String |
getTypeName() |
static int |
odpsTypeToSqlType(com.aliyun.odps.OdpsType type) |
public static final String ODPS_DATETIME_FORMAT
public static final String ODPS_DATE_FORMAT
public static final String ODPS_TIME_FORMAT
public static final int ODPS_DECIMAL_PRECISON
public static final int ODPS_DECIMAL_SCALE
public static final int ODPS_STRING_CHARACTERS
public static int odpsTypeToSqlType(com.aliyun.odps.OdpsType type)
throws SQLException
SQLExceptionpublic static String columnClassName(com.aliyun.odps.OdpsType type) throws SQLException
SQLExceptionpublic static int columnDisplaySize(com.aliyun.odps.type.TypeInfo typeInfo)
throws SQLException
SQLExceptionpublic static int columnPrecision(com.aliyun.odps.type.TypeInfo typeInfo)
throws SQLException
SQLExceptionpublic static int columnScale(com.aliyun.odps.OdpsType type,
com.aliyun.odps.type.TypeInfo typeInfo)
throws SQLException
SQLExceptionpublic static boolean columnCaseSensitive(com.aliyun.odps.OdpsType type)
throws SQLException
SQLExceptionpublic static boolean columnSigned(com.aliyun.odps.OdpsType type)
throws SQLException
SQLExceptionpublic String getColumnName()
public String getTableName()
public String getTableSchema()
public int getType()
throws SQLException
SQLExceptionpublic String getComment()
public String getTypeName()
public int getOrdinalPos()
public int getNumPercRaidx()
public int getIsNullable()
public String getIsNullableString()
public int getDecimalDigits()
Copyright © 2019 Alibaba Cloud Computing. All rights reserved.