public static class TableInfo.ColumnInfo extends Object implements Comparable<TableInfo.ColumnInfo>
Modifier and Type | Field and Description |
---|---|
private boolean |
isNullable |
private boolean |
isUnique |
private String |
name |
private int |
size |
private Integer |
sqlType |
private String |
type |
Constructor and Description |
---|
ColumnInfo(String name,
String type,
Integer sqlType,
int size,
boolean isNullable,
boolean isUnique)
Create a new ColumnInfo object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TableInfo.ColumnInfo o) |
String |
getName() |
int |
getSize() |
Integer |
getSqlType() |
String |
getType() |
boolean |
isNullable() |
boolean |
isStringType() |
boolean |
isUnique() |
String |
toString() |
private final String name
private final String type
private final Integer sqlType
private final int size
private final boolean isNullable
private final boolean isUnique
public ColumnInfo(String name, String type, 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 String getName()
public String getType()
public Integer getSqlType()
public int getSize()
public boolean isNullable()
public boolean isUnique()
public boolean isStringType()
public int compareTo(TableInfo.ColumnInfo o)
compareTo
in interface Comparable<TableInfo.ColumnInfo>