Package | Description |
---|---|
org.skife.jdbi.v2 |
Start with
DBI and Handle |
org.skife.jdbi.v2.exceptions |
All JDBI exceptions extend
RuntimeException , so you can skip catching them. |
org.skife.jdbi.v2.sqlobject.stringtemplate | |
org.skife.jdbi.v2.tweak |
Interfaces used to alter JDBI's behavior
|
org.skife.jdbi.v2.unstable.oracle |
Convenience classes when working with Oracle databases.
|
org.skife.jdbi.v2.util |
Classes provided as a convenience to users of the library.
|
Modifier and Type | Class and Description |
---|---|
class |
ConcreteStatementContext |
Modifier and Type | Method and Description |
---|---|
boolean |
BuiltInArgumentFactory.accepts(Class expectedType,
Object value,
StatementContext ctx) |
boolean |
ResultSetMapperFactory.accepts(Class type,
StatementContext ctx)
Can this factory provide a result set mapper which maps to the desired type
|
boolean |
ResultColumnMapperFactory.accepts(Class type,
StatementContext ctx)
Can this factory provide a column mapper which maps to the desired type
|
boolean |
PrimitivesMapperFactory.accepts(Class type,
StatementContext ctx)
Deprecated.
|
boolean |
PrimitivesColumnMapperFactory.accepts(Class type,
StatementContext ctx) |
void |
StatementCustomizers.FetchDirectionStatementCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.QueryTimeoutCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.FetchSizeCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.MaxRowsCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.MaxFieldSizeCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
Argument |
BuiltInArgumentFactory.build(Class expectedType,
Object value,
StatementContext ctx) |
void |
TimingCollector.collect(long elapsedTime,
StatementContext ctx)
This method is executed every time there is information to collect.
|
void |
TimingCollector.NopTimingCollector.collect(long elapsedTime,
StatementContext ctx) |
ResultColumnMapper |
ResultColumnMapperFactory.columnMapperFor(Class type,
StatementContext ctx)
Supplies a column mapper which will map result set columns to type
|
ResultColumnMapper |
PrimitivesColumnMapperFactory.columnMapperFor(Class type,
StatementContext ctx) |
PreparedStatement |
DefaultStatementBuilder.create(Connection conn,
String sql,
StatementContext ctx)
Create a new DefaultStatementBuilder which will always create a new PreparedStatement from
the Connection
|
PreparedStatement |
CachingStatementBuilder.create(Connection conn,
String sql,
StatementContext ctx)
Deprecated.
Return either a cached PreparedStatement or a new one which has just been added to the cache
|
Argument |
Foreman.createArgument(Class<?> expectedType,
Object boundValue,
StatementContext ctx) |
CallableStatement |
DefaultStatementBuilder.createCall(Connection conn,
String sql,
StatementContext ctx)
Called each time a Callable statement needs to be created
|
CallableStatement |
CachingStatementBuilder.createCall(Connection conn,
String sql,
StatementContext ctx)
Deprecated.
|
AccumulatorType |
Folder3.fold(AccumulatorType accumulator,
MappedType rs,
FoldController control,
StatementContext ctx)
Invoked once per row in the result set from the query.
|
AccumulatorType |
Folder2.fold(AccumulatorType accumulator,
ResultSet rs,
StatementContext ctx)
Invoked once per row in the result set from the query.
|
String |
ClasspathStatementLocator.locate(String name,
StatementContext ctx)
If the passed in name doesn't look like SQL it will search the classpath for a file
which looks like the provided name.
|
T |
ReflectionBeanMapper.map(int row,
ResultSet rs,
StatementContext ctx) |
Map<String,Object> |
DefaultMapper.map(int index,
ResultSet r,
StatementContext ctx) |
T |
BeanMapper.map(int row,
ResultSet rs,
StatementContext ctx) |
ResultType |
BaseResultSetMapper.map(int index,
ResultSet r,
StatementContext ctx)
Defers to mapInternal
|
ResultSetMapper |
ResultSetMapperFactory.mapperFor(Class type,
StatementContext ctx)
Supplies a result set mapper which will map result sets to type
|
ResultSetMapper |
PrimitivesMapperFactory.mapperFor(Class type,
StatementContext ctx)
Deprecated.
|
RewrittenStatement |
NoOpStatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx) |
RewrittenStatement |
HashPrefixStatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx)
Munge up the SQL as desired.
|
RewrittenStatement |
ColonPrefixNamedParamStatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx)
Munge up the SQL as desired.
|
Modifier and Type | Method and Description |
---|---|
StatementContext |
StatementException.getStatementContext() |
Constructor and Description |
---|
NoResultsException(String msg,
StatementContext ctx) |
NoResultsException(String msg,
Throwable e,
StatementContext ctx) |
NoResultsException(Throwable e,
StatementContext ctx) |
ResultSetException(String msg,
Exception e,
StatementContext ctx) |
StatementException(String message,
StatementContext ctx) |
StatementException(String string,
Throwable throwable,
StatementContext ctx) |
StatementException(Throwable cause,
StatementContext ctx) |
UnableToCreateStatementException(Exception e,
StatementContext ctx) |
UnableToCreateStatementException(String string,
Throwable throwable,
StatementContext ctx) |
UnableToExecuteStatementException(Exception e,
StatementContext ctx) |
UnableToExecuteStatementException(String message,
StatementContext ctx) |
UnableToExecuteStatementException(String string,
Throwable throwable,
StatementContext ctx) |
Modifier and Type | Method and Description |
---|---|
String |
StringTemplate3StatementLocator.locate(String name,
StatementContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
ArgumentFactory.accepts(Class<?> expectedType,
Object value,
StatementContext ctx) |
boolean |
BeanMapperFactory.accepts(Class type,
StatementContext ctx) |
void |
StatementCustomizer.afterExecution(PreparedStatement stmt,
StatementContext ctx)
This will be invoked after execution of the prepared statement, but before any results
are accessed.
|
void |
BaseStatementCustomizer.afterExecution(PreparedStatement stmt,
StatementContext ctx)
This will be invoked after execution of the prepared statement, but before any results
are accessed.
|
void |
Argument.apply(int position,
PreparedStatement statement,
StatementContext ctx)
Callback method invoked right before statement execution.
|
void |
StatementCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx)
Make the changes you need to inside this method.
|
void |
BaseStatementCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx)
Make the changes you need to inside this method.
|
Argument |
ArgumentFactory.build(Class<?> expectedType,
T value,
StatementContext ctx) |
void |
StatementCustomizer.cleanup(StatementContext ctx)
Invoked at cleanup time to clean resources used by this statement.
|
void |
BaseStatementCustomizer.cleanup(StatementContext ctx)
Invoked at cleanup time to clean resources used by this statement.
|
PreparedStatement |
StatementBuilder.create(Connection conn,
String sql,
StatementContext ctx)
Called each time a prepared statement needs to be created
|
CallableStatement |
StatementBuilder.createCall(Connection conn,
String sql,
StatementContext ctx)
Called each time a Callable statement needs to be created
|
String |
StatementLocator.locate(String name,
StatementContext ctx)
Use this to map from a named statement to SQL.
|
T |
ResultSetMapper.map(int index,
ResultSet r,
StatementContext ctx)
Map the row the result set is at when passed in.
|
T |
ResultColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
T |
ResultColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
ResultSetMapper |
BeanMapperFactory.mapperFor(Class type,
StatementContext ctx) |
RewrittenStatement |
StatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx)
Munge up the SQL as desired.
|
Modifier and Type | Method and Description |
---|---|
void |
OracleReturning.afterExecution(PreparedStatement stmt,
StatementContext ctx)
Deprecated.
|
void |
OracleReturning.beforeExecution(PreparedStatement stmt,
StatementContext ctx)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EnumByOrdinalColumnMapperFactory.accepts(Class type,
StatementContext ctx) |
boolean |
EnumByNameColumnMapperFactory.accepts(Class type,
StatementContext ctx) |
ResultColumnMapper |
EnumByOrdinalColumnMapperFactory.columnMapperFor(Class type,
StatementContext ctx) |
ResultColumnMapper |
EnumByNameColumnMapperFactory.columnMapperFor(Class type,
StatementContext ctx) |
T |
TypedMapper.map(int index,
ResultSet r,
StatementContext ctx)
Deprecated.
|
T |
SingleColumnMapper.map(int index,
ResultSet r,
StatementContext ctx) |
URL |
URLColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
URI |
URIColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Timestamp |
TimestampColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
String |
StringColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Short |
ShortColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Long |
LongColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Integer |
IntegerColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Float |
FloatColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Double |
DoubleColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Character |
CharColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Byte |
ByteColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
byte[] |
ByteArrayColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
Boolean |
BooleanColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
BigDecimal |
BigDecimalColumnMapper.mapColumn(ResultSet r,
int columnNumber,
StatementContext ctx) |
URL |
URLColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
URI |
URIColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Timestamp |
TimestampColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
String |
StringColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Short |
ShortColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Long |
LongColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Integer |
IntegerColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Float |
FloatColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Double |
DoubleColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Character |
CharColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Byte |
ByteColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
byte[] |
ByteArrayColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Boolean |
BooleanColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
BigDecimal |
BigDecimalColumnMapper.mapColumn(ResultSet r,
String columnLabel,
StatementContext ctx) |
Copyright © 2018. All rights reserved.