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
ConstructorsConstructorDescriptionBooleanContainer(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 committingbooleanGet 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:ContainerGet the final value from a user input for committing- Overrides:
getFinalValuein classContainer<Boolean>- Parameters:
input- Raw input- Returns:
- Output to be used for the commit operation
-
isValid
-
toString
-
toSQLString
Description copied from class:ContainerGet an escaped string representation of the value in this container. Value contained should be escaped and ready for insertion into a SQL query.- Overrides:
toSQLStringin classContainer<Boolean>- Returns:
- Escaped string representation of the value in this container
-