public class Parameter extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Gets the
type property. |
Object |
getValue()
Gets the
value property. |
static Parameter |
in(int type,
Object value)
Creates a new input parameter with the given value.
|
static Parameter |
in(Object value)
Creates a new input parameter with the given value.
|
void |
inject(int parameterIndex,
CallableStatement statement)
Injects this parameter into the given callable statement.
|
void |
inject(int parameterIndex,
PreparedStatement statement)
Injects this parameter into the given prepared statement.
|
static Parameter |
inout(int type,
Object value)
Creates a new input/output parameter with the given type.
|
static Parameter |
out(int type)
Creates a new output parameter with the given type.
|
static Parameter |
with(int type,
Object value)
Creates a new input parameter with the given value.
|
static Parameter |
with(Object value)
Creates a new input parameter with the given value.
|
public static Parameter with(Object value)
Synonym for in(Object).
value - value of the parameterpublic static Parameter with(int type, Object value)
Synonym for in(Object).
type - SQL type of the parametervalue - value of the parameterpublic static Parameter in(Object value)
Synonym for in(Object).
value - value of the parameterpublic static Parameter in(int type, Object value)
Synonym for in(Object).
type - SQL type of the parametervalue - value of the parameterpublic static Parameter out(int type)
type - SQL type of the parameterpublic static Parameter inout(int type, Object value)
type - SQL type of the parametervalue - value of the parameterpublic void inject(int parameterIndex,
PreparedStatement statement)
throws SQLException
parameterIndex - index of the statement placeholder (starts at 1)statement - target statementSQLExceptionpublic void inject(int parameterIndex,
CallableStatement statement)
throws SQLException
parameterIndex - index of the statement placeholder (starts at 1)statement - target statementSQLExceptionpublic int getType()
type property.public Object getValue()
value property.Copyright © 2014–2015 Carl Harris, Jr. All rights reserved.