Package ru.curs.celesta.score
Interface ColumnMeta<V>
-
- Type Parameters:
V
- Java class of column value
- All Known Implementing Classes:
BinaryColumn
,BooleanColumn
,Column
,DateTimeColumn
,DecimalColumn
,FloatingColumn
,IntegerColumn
,StringColumn
,ViewColumnMeta
,ZonedDateTimeColumn
public interface ColumnMeta<V>
Meta information about column of a table or a view.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ColumnMeta.Ordering
Column ordering specifier.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ColumnMeta<V>
asc()
Returnsthis
column meta information with ascending ordering set.default ColumnMeta<V>
desc()
Returnsthis
column meta information with descending ordering set.String
getCelestaDoc()
Column's CelestaDoc.String
getCelestaType()
Celesta data type that corresponds to the field.Class<?>
getJavaClass()
Returns corresponding Java data type.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.default ColumnMeta.Ordering
ordering()
Returns column ordering if any.
-
-
-
Method Detail
-
getName
String getName()
Returns column name.- Returns:
-
jdbcGetterName
String jdbcGetterName()
Name of jdbcGetter that should be used for getting column data.- Returns:
-
getCelestaType
String getCelestaType()
Celesta data type that corresponds to the field.- Returns:
-
getJavaClass
Class<?> getJavaClass()
Returns corresponding Java data type.- Returns:
-
isNullable
boolean isNullable()
Whether the field is nullable.- Returns:
-
getCelestaDoc
String getCelestaDoc()
Column's CelestaDoc.- Returns:
-
ordering
default ColumnMeta.Ordering ordering()
Returns column ordering if any.- Returns:
null
if ordering is unspecified
-
asc
default ColumnMeta<V> asc()
Returnsthis
column meta information with ascending ordering set.- Returns:
-
desc
default ColumnMeta<V> desc()
Returnsthis
column meta information with descending ordering set.- Returns:
-
-