public static class TableInfo.ColumnInfo extends java.lang.Object implements java.lang.Comparable<TableInfo.ColumnInfo>
Modifier and Type | Field and Description |
---|---|
private boolean |
isNullable |
private boolean |
isUnique |
private java.lang.String |
name |
private int |
size |
private java.lang.Integer |
sqlType |
private java.lang.String |
type |
Constructor and Description |
---|
ColumnInfo(java.lang.String name,
java.lang.String type,
java.lang.Integer sqlType,
int size,
boolean isNullable,
boolean isUnique)
Create a new ColumnInfo object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TableInfo.ColumnInfo o) |
java.lang.String |
getName() |
int |
getSize() |
java.lang.Integer |
getSqlType() |
java.lang.String |
getType() |
boolean |
isNullable() |
boolean |
isStringType() |
boolean |
isUnique() |
java.lang.String |
toString() |
private final java.lang.String name
private final java.lang.String type
private final java.lang.Integer sqlType
private final int size
private final boolean isNullable
private final boolean isUnique
public ColumnInfo(java.lang.String name, java.lang.String type, java.lang.Integer sqlType, int size, boolean isNullable, boolean isUnique)
name
- The name of the columntype
- The type of the column (int, float, varchar, ...) etc.size
- The size of the columnisNullable
- If the column is nullableisUnique
- If the column must have unique valuespublic java.lang.String getName()
public java.lang.String getType()
public java.lang.Integer getSqlType()
public int getSize()
public boolean isNullable()
public boolean isUnique()
public boolean isStringType()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(TableInfo.ColumnInfo o)
compareTo
in interface java.lang.Comparable<TableInfo.ColumnInfo>