Class PrometheusColumnDefinition.PrometheusIntegerColumn
java.lang.Object
io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition
io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition.PrometheusIntegerColumn
- Direct Known Subclasses:
PrometheusColumnDefinition.PrometheusIdColumn,PrometheusColumnDefinition.PrometheusReferenceColumn
- Enclosing class:
PrometheusColumnDefinition
protected static class PrometheusColumnDefinition.PrometheusIntegerColumn
extends PrometheusColumnDefinition
The integerColumn 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
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildColumnType(StringBuilder pBuilder) Build the column type for this column.protected IntegergetValue()Get the value.protected voidLoad the value for this column.protected 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
-
PrometheusIntegerColumn
protected PrometheusIntegerColumn(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
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
-