Interface BoundValue
- All Known Implementing Classes:
BoundValue.DefaultBoundValue
public interface BoundValue
Represent a value for
Statement.bind(int, java.lang.Object)
and Statement.bindNull(int, java.lang.Class<?>)
operations.- Author:
- Tadaya Tsuyukubo
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> Get the boundnull
type byStatement.bindNull(int, java.lang.Class<?>)
.getValue()
Get the bound value byStatement.bind(int, java.lang.Object)
.boolean
isNull()
Distinguish between the bound value is forStatement.bind(int, java.lang.Object)
orStatement.bindNull(int, java.lang.Class<?>)
operation.static BoundValue
Create aBoundValue
that representsStatement.bindNull(int, java.lang.Class<?>)
.static BoundValue
Create aBoundValue
that representsStatement.bind(int, java.lang.Object)
.
-
Method Details
-
value
Create aBoundValue
that representsStatement.bind(int, java.lang.Object)
.- Parameters:
value
- value- Returns:
- a boundValue
- Throws:
IllegalArgumentException
- ifvalue
isnull
-
nullValue
Create aBoundValue
that representsStatement.bindNull(int, java.lang.Class<?>)
.- Parameters:
nullType
-null
type- Returns:
- a boundValue
- Throws:
IllegalArgumentException
- ifnullType
isnull
-
isNull
boolean isNull()Distinguish between the bound value is forStatement.bind(int, java.lang.Object)
orStatement.bindNull(int, java.lang.Class<?>)
operation.- Returns:
true
when this represents value ofStatement.bindNull(int, java.lang.Class<?>)
operation
-
getValue
Object getValue()Get the bound value byStatement.bind(int, java.lang.Object)
.- Returns:
- bound value
-
getNullType
Class<?> getNullType()Get the boundnull
type byStatement.bindNull(int, java.lang.Class<?>)
.- Returns:
null
type
-