|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.Column
Represents a table column.
Nested Class Summary | |
static class |
Column.Nullable
|
Field Summary | |
static Column.Nullable |
NO_NULLS
Indicates that the column might not allow NULL values. |
static Column.Nullable |
NULLABLE
Indicates that the column definitely allows NULL values. |
static Column.Nullable |
NULLABLE_UNKNOWN
Indicates that the nullability of columns is unknown. |
Constructor Summary | |
Column(java.lang.String columnName,
DataType dataType)
Creates a Column object. |
|
Column(java.lang.String columnName,
DataType dataType,
Column.Nullable nullable)
Creates a Column object. |
|
Column(java.lang.String columnName,
DataType dataType,
java.lang.String sqlTypeName,
Column.Nullable nullable)
Creates a Column object. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getColumnName()
Returns this column name. |
DataType |
getDataType()
Returns this column data type. |
Column.Nullable |
getNullable()
Returns true if this column is nullable. |
java.lang.String |
getSqlTypeName()
Returns this column sql data type name. |
int |
hashCode()
|
static Column.Nullable |
nullableValue(boolean nullable)
Returns the appropriate Nullable constant. |
static Column.Nullable |
nullableValue(int nullable)
Returns the appropriate Nullable constant according specified JDBC DatabaseMetaData constant. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Column.Nullable NO_NULLS
NULL
values.
public static final Column.Nullable NULLABLE
NULL
values.
public static final Column.Nullable NULLABLE_UNKNOWN
Constructor Detail |
public Column(java.lang.String columnName, DataType dataType)
columnName
- the column namedataType
- the data typepublic Column(java.lang.String columnName, DataType dataType, Column.Nullable nullable)
public Column(java.lang.String columnName, DataType dataType, java.lang.String sqlTypeName, Column.Nullable nullable)
Method Detail |
public java.lang.String getColumnName()
public DataType getDataType()
public java.lang.String getSqlTypeName()
public Column.Nullable getNullable()
true
if this column is nullable.
public static Column.Nullable nullableValue(int nullable)
nullable
- one of the following constants
DatabaseMetaData.columnNoNulls
,
DatabaseMetaData.columnNullable
,
DatabaseMetaData.columnNullableUnknown
public static Column.Nullable nullableValue(boolean nullable)
nullable
- true
if null is allowedpublic java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |