net.sf.basedb.core.dbengine
Class TableInfo.ColumnInfo
java.lang.Object
net.sf.basedb.core.dbengine.TableInfo.ColumnInfo
- Enclosing class:
- TableInfo
public static class TableInfo.ColumnInfo
- extends Object
Holds information about a single column in a table.
name
private final String name
type
private final String type
size
private final int size
isNullable
private final boolean isNullable
isUnique
private final boolean isUnique
TableInfo.ColumnInfo
public TableInfo.ColumnInfo(String name,
String type,
int size,
boolean isNullable,
boolean isUnique)
- Create a new ColumnInfo object.
- Parameters:
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 values
getName
public String getName()
getType
public String getType()
getSize
public int getSize()
isNullable
public boolean isNullable()
isUnique
public boolean isUnique()
toString
public String toString()
- Overrides:
toString
in class Object