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 StringgetCelestaDoc()Column's CelestaDoc.StringgetCelestaType()Celesta data type that corresponds to the field.ViewColumnTypegetColumnType()Returns column type.Class<?>getJavaClass()Returns corresponding Java data type.intgetLength()Returns field's length (or -1 if undefined).StringgetName()Returns column name.booleanisNullable()Whether the field is nullable.StringjdbcGetterName()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:ColumnMetaReturns column name.- Specified by:
getNamein interfaceColumnMeta<V>- Returns:
-
jdbcGetterName
public String jdbcGetterName()
Description copied from interface:ColumnMetaName of jdbcGetter that should be used for getting column data.- Specified by:
jdbcGetterNamein interfaceColumnMeta<V>- Returns:
-
getCelestaType
public String getCelestaType()
Description copied from interface:ColumnMetaCelesta data type that corresponds to the field.- Specified by:
getCelestaTypein interfaceColumnMeta<V>- Returns:
-
getJavaClass
public Class<?> getJavaClass()
Description copied from interface:ColumnMetaReturns corresponding Java data type.- Specified by:
getJavaClassin interfaceColumnMeta<V>- Returns:
-
isNullable
public boolean isNullable()
Description copied from interface:ColumnMetaWhether the field is nullable.- Specified by:
isNullablein interfaceColumnMeta<V>- Returns:
-
getCelestaDoc
public String getCelestaDoc()
Description copied from interface:ColumnMetaColumn's CelestaDoc.- Specified by:
getCelestaDocin interfaceColumnMeta<V>- Returns:
-
getLength
public int getLength()
Returns field's length (or -1 if undefined).- Returns:
-
-