Class PrometheusColumnDefinition.PrometheusBinaryColumn
java.lang.Object
io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition
io.github.tonywasher.joceanus.prometheus.database.PrometheusColumnDefinition.PrometheusBinaryColumn
- Enclosing class:
PrometheusColumnDefinition
protected static final class PrometheusColumnDefinition.PrometheusBinaryColumn
extends PrometheusColumnDefinition
The binaryColumn 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
ConstructorsConstructorDescriptionPrometheusBinaryColumn(PrometheusTableDefinition pTable, MetisDataItem.MetisDataFieldId pId, int pLength) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildColumnType(StringBuilder pBuilder) Build the column type for this column.(package private) byte[]getValue()Get the value.protected voidLoad the value for this column.(package private) voidsetValue(byte[] pValue) Set 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
-
PrometheusBinaryColumn
PrometheusBinaryColumn(PrometheusTableDefinition pTable, MetisDataItem.MetisDataFieldId pId, int pLength) Constructor.- Parameters:
pTable- the table to which the column belongspId- the column idpLength- the length of the column
-
-
Method Details
-
buildColumnType
Description copied from class:PrometheusColumnDefinitionBuild the column type for this column.- Specified by:
buildColumnTypein classPrometheusColumnDefinition- Parameters:
pBuilder- the String builder
-
setValue
void setValue(byte[] pValue) Set the value.- Parameters:
pValue- the value
-
getValue
byte[] 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
-