Package ru.curs.celesta.score
Class ViewColumnMeta<V>
- java.lang.Object
-
- ru.curs.celesta.score.ViewColumnMeta<V>
-
- Type Parameters:
V
- Java class of column value
- All Implemented Interfaces:
ColumnMeta<V>
public final class ViewColumnMeta<V> extends Object implements ColumnMeta<V>
View column metadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ru.curs.celesta.score.ColumnMeta
ColumnMeta.Ordering
-
-
Constructor Summary
Constructors Constructor Description ViewColumnMeta(ViewColumnType type)
ViewColumnMeta(ViewColumnType type, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCelestaDoc()
Column's CelestaDoc.String
getCelestaType()
Celesta data type that corresponds to the field.ViewColumnType
getColumnType()
Returns column type.Class<?>
getJavaClass()
Returns corresponding Java data type.int
getLength()
Returns field's length (or -1 if undefined).String
getName()
Returns column name.boolean
isNullable()
Whether the field is nullable.String
jdbcGetterName()
Name of jdbcGetter that should be used for getting column data.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.curs.celesta.score.ColumnMeta
asc, desc, ordering
-
-
-
-
Constructor Detail
-
ViewColumnMeta
public ViewColumnMeta(ViewColumnType type)
-
ViewColumnMeta
public ViewColumnMeta(ViewColumnType type, int length)
-
-
Method Detail
-
getColumnType
public ViewColumnType getColumnType()
Returns column type.- Returns:
-
getName
public String getName()
Description copied from interface:ColumnMeta
Returns column name.- Specified by:
getName
in interfaceColumnMeta<V>
- Returns:
-
jdbcGetterName
public String jdbcGetterName()
Description copied from interface:ColumnMeta
Name of jdbcGetter that should be used for getting column data.- Specified by:
jdbcGetterName
in interfaceColumnMeta<V>
- Returns:
-
getCelestaType
public String getCelestaType()
Description copied from interface:ColumnMeta
Celesta data type that corresponds to the field.- Specified by:
getCelestaType
in interfaceColumnMeta<V>
- Returns:
-
getJavaClass
public Class<?> getJavaClass()
Description copied from interface:ColumnMeta
Returns corresponding Java data type.- Specified by:
getJavaClass
in interfaceColumnMeta<V>
- Returns:
-
isNullable
public boolean isNullable()
Description copied from interface:ColumnMeta
Whether the field is nullable.- Specified by:
isNullable
in interfaceColumnMeta<V>
- Returns:
-
getCelestaDoc
public String getCelestaDoc()
Description copied from interface:ColumnMeta
Column's CelestaDoc.- Specified by:
getCelestaDoc
in interfaceColumnMeta<V>
- Returns:
-
getLength
public int getLength()
Returns field's length (or -1 if undefined).- Returns:
-
-