2.17.2: 2011-06-17

net.sf.basedb.core.dbengine
Class TableInfo.ColumnInfo

java.lang.Object
  extended by 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.


Field Summary
private  boolean isNullable
           
private  boolean isUnique
           
private  String name
           
private  int size
           
private  Integer sqlType
           
private  String type
           
 
Constructor Summary
TableInfo.ColumnInfo(String name, String type, Integer sqlType, int size, boolean isNullable, boolean isUnique)
          Create a new ColumnInfo object.
 
Method Summary
 String getName()
           
 int getSize()
           
 Integer getSqlType()
           
 String getType()
           
 boolean isNullable()
           
 boolean isStringType()
           
 boolean isUnique()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name

type

private final String type

sqlType

private final Integer sqlType

size

private final int size

isNullable

private final boolean isNullable

isUnique

private final boolean isUnique
Constructor Detail

TableInfo.ColumnInfo

public TableInfo.ColumnInfo(String name,
                            String type,
                            Integer sqlType,
                            int size,
                            boolean isNullable,
                            boolean isUnique)
Create a new ColumnInfo object.

Parameters:
name - The name of the column
type - The type of the column (int, float, varchar, ...) etc.
size - The size of the column
isNullable - If the column is nullable
isUnique - If the column must have unique values
Method Detail

getName

public String getName()

getType

public String getType()

getSqlType

public Integer getSqlType()
Since:
2.9

getSize

public int getSize()

isNullable

public boolean isNullable()

isUnique

public boolean isUnique()

isStringType

public boolean isStringType()
Since:
2.9

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17