public class ColumnInfo extends Object
Constructor and Description |
---|
ColumnInfo(String columnName,
int sqlType) |
ColumnInfo(String columnName,
int sqlType,
Integer maxLength) |
ColumnInfo(String columnName,
int sqlType,
Integer precision,
Integer scale) |
Modifier and Type | Method and Description |
---|---|
static ColumnInfo |
create(String columnName,
int sqlType,
Integer maxLength,
Integer scale) |
boolean |
equals(Object o) |
static ColumnInfo |
fromString(String stringRepresentation)
Instantiate a
ColumnInfo from a string representation created by the toString() method. |
String |
getColumnName() |
String |
getDisplayName()
Returns the column name without the associated Column Family.
|
Integer |
getMaxLength() |
PDataType |
getPDataType() |
Integer |
getPrecision() |
Integer |
getScale() |
int |
getSqlType() |
int |
hashCode() |
String |
toString() |
String |
toTypeString() |
public ColumnInfo(String columnName, int sqlType)
public static ColumnInfo create(String columnName, int sqlType, Integer maxLength, Integer scale)
public String getColumnName()
public int getSqlType()
public PDataType getPDataType()
public String getDisplayName()
public String toTypeString()
public static ColumnInfo fromString(String stringRepresentation)
ColumnInfo
from a string representation created by the toString()
method.stringRepresentation
- string representation of a ColumnInfoIllegalArgumentException
- if the given string representation cannot be
parsedpublic Integer getMaxLength()
public Integer getPrecision()
public Integer getScale()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.