Module com.cryptoalgo.oursql.oursql
Class BooleanContainer
java.lang.Object
com.cryptoalgo.oursql.model.db.data.Container<Boolean>
com.cryptoalgo.oursql.model.db.data.BooleanContainer
A container for the
boolean
SQL type.-
Field Summary
-
Constructor Summary
ConstructorDescriptionBooleanContainer
(String boxValue) Create an instance of the container with raw content. -
Method Summary
Modifier and TypeMethodDescriptiongetFinalValue
(@NotNull String input) Get the final value from a user input for committingboolean
Get an escaped string representation of the value in this container.toString()
protected Boolean
"Unbox" a raw string to the boxed typeMethods inherited from class com.cryptoalgo.oursql.model.db.data.Container
getInstance, getTypes, getValue, isEditable
-
Constructor Details
-
BooleanContainer
Create an instance of the container with raw content. Raw value must be a valid boolean representation.- Parameters:
boxValue
- Raw content to unbox into this container
-
-
Method Details
-
unbox
Description copied from class:Container
"Unbox" a raw string to the boxed type -
getFinalValue
Description copied from class:Container
Get the final value from a user input for committing- Overrides:
getFinalValue
in classContainer<Boolean>
- Parameters:
input
- Raw input- Returns:
- Output to be used for the commit operation
-
isValid
-
toString
-
toSQLString
Description copied from class:Container
Get an escaped string representation of the value in this container. Value contained should be escaped and ready for insertion into a SQL query.- Overrides:
toSQLString
in classContainer<Boolean>
- Returns:
- Escaped string representation of the value in this container
-