public class Column extends Object implements Serializable
| Constructor and Description |
|---|
Column() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDefaultValue()
Returns the default value of the column.
|
void |
getDelimitedName(StringBuilder query,
String delimiterToken) |
String |
getDescription()
Returns the description of the column.
|
String |
getJavaName()
Returns the java name of the column.
|
String |
getName()
Returns the name of the column.
|
Object |
getParsedDefaultValue()
Tries to parse the default value of the column and returns it as an object of the
corresponding java type.
|
int |
getPrecisionRadix()
Returns the precision radix of the column.
|
int |
getScale()
Returns the scale of the column.
|
String |
getSize()
Returns the size of the column.
|
int |
getSizeAsInt()
Returns the size of the column as an integer.
|
String |
getType()
Returns the JDBC type of the column.
|
int |
getTypeCode()
Returns the code (one of the constants in
Types) of the
JDBC type of the column. |
int |
hashCode() |
boolean |
isAutoIncrement()
Determines whether this column is an auto-increment column.
|
boolean |
isOfBinaryType()
Determines whether this column is of a binary type.
|
boolean |
isOfNumericType()
Determines whether this column is of a numeric type.
|
boolean |
isOfSpecialType()
Determines whether this column is of a special type.
|
boolean |
isOfTextType()
Determines whether this column is of a text type.
|
boolean |
isPrimaryKey()
Determines whether this column is a primary key column.
|
boolean |
isRequired()
Determines whether this column is a required column, ie.
|
boolean |
isUnspecifiedPrecision()
Oracle NUMBER without any precision
|
void |
setAutoIncrement(boolean autoIncrement)
Specifies whether this column is an auto-increment column.
|
void |
setDefaultValue(String defaultValue)
Sets the default value of the column.
|
void |
setDescription(String description)
Sets the description of the column.
|
void |
setJavaName(String javaName)
Sets the java name of the column.
|
void |
setName(String name)
Sets the name of the column.
|
void |
setPrecisionRadix(int precisionRadix)
Sets the precision radix of the column.
|
void |
setPrimaryKey(boolean primaryKey)
Specifies whether this column is a primary key column.
|
void |
setRequired(boolean required)
Specifies whether this column is a required column, ie.
|
void |
setScale(int scale)
Sets the scale of the column.
|
void |
setSize(String size)
Sets the size of the column.
|
void |
setSizeAndScale(int size,
int scale)
Sets both the size and scale.
|
void |
setType(String type)
Sets the JDBC type of the column.
|
void |
setTypeCode(int typeCode)
Sets the code (one of the constants in
Types) of the
JDBC type of the column. |
void |
setUnspecifiedPrecision(boolean flag)
set for Oracle NUMBER without any precision
|
String |
toString() |
String |
toVerboseString()
Returns a verbose string representation of this column.
|
public boolean isUnspecifiedPrecision()
public void setUnspecifiedPrecision(boolean flag)
public void getDelimitedName(StringBuilder query, String delimiterToken)
public String getName()
public void setName(String name)
name - The namepublic String getJavaName()
public void setJavaName(String javaName)
javaName - The java namepublic String getDescription()
public void setDescription(String description)
description - The descriptionpublic boolean isPrimaryKey()
true if this column is a primary key columnpublic void setPrimaryKey(boolean primaryKey)
primaryKey - true if this column is a primary key columnpublic boolean isRequired()
NULL values.true if this column is a required columnpublic void setRequired(boolean required)
NULL values.required - true if this column is a required columnpublic boolean isAutoIncrement()
true if this column is an auto-increment columnpublic void setAutoIncrement(boolean autoIncrement)
autoIncrement - true if this column is an auto-increment columnpublic int getTypeCode()
Types) of the
JDBC type of the column.public void setTypeCode(int typeCode)
Types) of the
JDBC type of the column.typeCode - The type codepublic String getType()
public void setType(String type)
type - The typepublic boolean isOfNumericType()
true if this column is of a numeric typepublic boolean isOfTextType()
true if this column is of a text typepublic boolean isOfBinaryType()
true if this column is of a binary typepublic boolean isOfSpecialType()
true if this column is of a special typepublic String getSize()
public int getSizeAsInt()
public void setSize(String size)
size - The sizepublic int getScale()
public void setScale(int scale)
scale - The scalepublic void setSizeAndScale(int size,
int scale)
size - The sizescale - The scalepublic int getPrecisionRadix()
public void setPrecisionRadix(int precisionRadix)
precisionRadix - The precision radixpublic String getDefaultValue()
public Object getParsedDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - The default valuepublic String toVerboseString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.