|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unitils.dbunit.dataset.Column
public class Column
A column in a data set row
Constructor Summary | |
---|---|
Column(String name,
org.dbunit.dataset.datatype.DataType type,
Object value)
Creates a value |
Method Summary | |
---|---|
ColumnDifference |
compare(Column actualColumn)
Compares the column with the given actual column. |
Object |
getCastedValue(org.dbunit.dataset.datatype.DataType castType)
Gets the value casted to the given type. |
String |
getName()
|
org.dbunit.dataset.datatype.DataType |
getType()
|
Object |
getValue()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Column(String name, org.dbunit.dataset.datatype.DataType type, Object value)
name
- The name of the data set column, not nulltype
- The type of the data set column, e.g. varchar, not nullvalue
- The actual value with a type corresponding the column type, e.g. String for varchar, can be nullMethod Detail |
---|
public String getName()
public org.dbunit.dataset.datatype.DataType getType()
public Object getValue()
public Object getCastedValue(org.dbunit.dataset.datatype.DataType castType)
castType
- The type to cast the value to, not null
UnitilsException
- When the value cannot be castpublic ColumnDifference compare(Column actualColumn)
actualColumn
- The column to compare with, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |