Class PrometheusColumnDefinition.PrometheusLongColumn
java.lang.Object
io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition
io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition.PrometheusLongColumn
- Enclosing class:
PrometheusColumnDefinition
protected static final class PrometheusColumnDefinition.PrometheusLongColumn
extends PrometheusColumnDefinition
The longColumn Class.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition
PrometheusColumnDefinition.PrometheusBinaryColumn, PrometheusColumnDefinition.PrometheusBooleanColumn, PrometheusColumnDefinition.PrometheusDateColumn, PrometheusColumnDefinition.PrometheusIdColumn, PrometheusColumnDefinition.PrometheusIntegerColumn, PrometheusColumnDefinition.PrometheusLongColumn, PrometheusColumnDefinition.PrometheusMoneyColumn, PrometheusColumnDefinition.PrometheusPriceColumn, PrometheusColumnDefinition.PrometheusRateColumn, PrometheusColumnDefinition.PrometheusRatioColumn, PrometheusColumnDefinition.PrometheusReferenceColumn, PrometheusColumnDefinition.PrometheusShortColumn, PrometheusColumnDefinition.PrometheusStringColumn, PrometheusColumnDefinition.PrometheusUnitsColumn -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildColumnType(StringBuilder pBuilder) Build the column type for this column.(package private) LonggetValue()Get the value.protected voidLoad the value for this column.(package private) voidSet the value.protected voidstoreValue(PreparedStatement pStatement, int pIndex) Store the value for this column.Methods inherited from class io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition
buildCreateString, buildKeyReference, clearValue, getColumnId, getColumnName, getDriver, getObject, getSortOrder, getTable, isValueSet, locateReference, setNullable, setObject, setSortOnReference, setSortOrder
-
Constructor Details
-
PrometheusLongColumn
PrometheusLongColumn(PrometheusTableDefinition pTable, MetisDataItem.MetisDataFieldId pId) Constructor.- Parameters:
pTable- the table to which the column belongspId- the column id
-
-
Method Details
-
buildColumnType
Description copied from class:PrometheusColumnDefinitionBuild the column type for this column.- Specified by:
buildColumnTypein classPrometheusColumnDefinition- Parameters:
pBuilder- the String builder
-
setValue
Set the value.- Parameters:
pValue- the value
-
getValue
Long getValue()Get the value.- Returns:
- the value
-
loadValue
Description copied from class:PrometheusColumnDefinitionLoad the value for this column.- Specified by:
loadValuein classPrometheusColumnDefinition- Parameters:
pResults- the resultspIndex- the index of the result column- Throws:
SQLException- on error
-
storeValue
Description copied from class:PrometheusColumnDefinitionStore the value for this column.- Specified by:
storeValuein classPrometheusColumnDefinition- Parameters:
pStatement- the prepared statementpIndex- the index of the statement- Throws:
SQLException- on error
-