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 boundnulltype byStatement.bindNull(int, java.lang.Class<?>).getValue()Get the bound value byStatement.bind(int, java.lang.Object).booleanisNull()Distinguish between the bound value is forStatement.bind(int, java.lang.Object)orStatement.bindNull(int, java.lang.Class<?>)operation.static BoundValueCreate aBoundValuethat representsStatement.bindNull(int, java.lang.Class<?>).static BoundValueCreate aBoundValuethat representsStatement.bind(int, java.lang.Object).
-
Method Details
-
value
Create aBoundValuethat representsStatement.bind(int, java.lang.Object).- Parameters:
value- value- Returns:
- a boundValue
- Throws:
IllegalArgumentException- ifvalueisnull
-
nullValue
Create aBoundValuethat representsStatement.bindNull(int, java.lang.Class<?>).- Parameters:
nullType-nulltype- Returns:
- a boundValue
- Throws:
IllegalArgumentException- ifnullTypeisnull
-
isNull
boolean isNull()Distinguish between the bound value is forStatement.bind(int, java.lang.Object)orStatement.bindNull(int, java.lang.Class<?>)operation.- Returns:
truewhen 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 boundnulltype byStatement.bindNull(int, java.lang.Class<?>).- Returns:
nulltype
-