| Package | Description |
|---|---|
| org.knowm.yank |
| Modifier and Type | Method and Description |
|---|---|
static int |
Yank.execute(String sql,
Object[] params)
Executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL prepared statement.
|
static int |
Yank.execute(String poolName,
String sql,
Object[] params)
Executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL prepared statement.
|
static int[] |
Yank.executeBatch(String sql,
Object[][] params)
Batch executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL statement using the default connection pool.
|
static int[] |
Yank.executeBatch(String poolName,
String sql,
Object[][] params)
Batch executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL statement
|
static int[] |
Yank.executeBatchSQLKey(String sqlKey,
Object[][] params)
Batch executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...) using the default connection pool.
|
static int[] |
Yank.executeBatchSQLKey(String poolName,
String sqlKey,
Object[][] params)
Batch executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
static int |
Yank.executeSQLKey(String sqlKey,
Object[] params)
Executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...) using the default connection pool.
|
static int |
Yank.executeSQLKey(String poolName,
String sqlKey,
Object[] params)
Executes the given INSERT, UPDATE, DELETE, REPLACE or UPSERT SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
static Long |
Yank.insert(String sql,
Object[] params)
Executes a given INSERT SQL prepared statement.
|
static Long |
Yank.insert(String poolName,
String sql,
Object[] params)
Executes a given INSERT SQL prepared statement.
|
static Long |
Yank.insertSQLKey(String sqlKey,
Object[] params)
Executes a given INSERT SQL prepared statement matching the sqlKey String in a properties file loaded via Yank.addSQLStatements(...) using the
default connection pool.
|
static Long |
Yank.insertSQLKey(String poolName,
String sqlKey,
Object[] params)
Executes a given INSERT SQL prepared statement matching the sqlKey String in a properties file loaded via Yank.addSQLStatements(...).
|
static <T> T |
Yank.queryBean(String sql,
Class<T> beanType,
Object[] params)
Return just one Bean given an SQL statement.
|
static <T> T |
Yank.queryBean(String poolName,
String sql,
Class<T> beanType,
Object[] params)
Return just one Bean given an SQL statement.
|
static <T> List<T> |
Yank.queryBeanList(String sql,
Class<T> beanType,
Object[] params)
Return a List of Beans given an SQL statement using the default connection pool.
|
static <T> List<T> |
Yank.queryBeanList(String poolName,
String sql,
Class<T> beanType,
Object[] params)
Return a List of Beans given an SQL statement
|
static <T> List<T> |
Yank.queryBeanListSQLKey(String sqlKey,
Class<T> beanType,
Object[] params)
Return a List of Beans given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...) using the default connection pool.
|
static <T> List<T> |
Yank.queryBeanListSQLKey(String poolName,
String sqlKey,
Class<T> beanType,
Object[] params)
Return a List of Beans given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
static <T> T |
Yank.queryBeanSQLKey(String sqlKey,
Class<T> beanType,
Object[] params)
Return just one Bean given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
static <T> T |
Yank.queryBeanSQLKey(String poolName,
String sqlKey,
Class<T> beanType,
Object[] params)
Return just one Bean given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
static <T> List<T> |
Yank.queryColumn(String sql,
String columnName,
Class<T> columnType,
Object[] params)
Return a List of Objects from a single table column given an SQL statement using the default connection pool.
|
static <T> List<T> |
Yank.queryColumn(String poolName,
String sql,
String columnName,
Class<T> columnType,
Object[] params)
Return a List of Objects from a single table column given an SQL statement
|
static <T> List<T> |
Yank.queryColumnSQLKey(String sqlKey,
String columnName,
Class<T> columnType,
Object[] params)
Return a List of Objects from a single table column given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded
via Yank.addSQLStatements(...) using the default connection pool.
|
static <T> List<T> |
Yank.queryColumnSQLKey(String poolName,
String sqlKey,
String columnName,
Class<T> columnType,
Object[] params)
Return a List of Objects from a single table column given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded
via Yank.addSQLStatements(...).
|
static List<Object[]> |
Yank.queryObjectArrays(String sql,
Object[] params)
Return a List of generic Object[]s given an SQL statement using the default connection pool.
|
static List<Object[]> |
Yank.queryObjectArrays(String poolName,
String sql,
Object[] params)
Return a List of generic Object[]s given an SQL statement
|
static List<Object[]> |
Yank.queryObjectArraysSQLKey(String sqlKey,
Object[] params)
Return a List of generic Object[]s given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...) using the default connection pool.
|
static List<Object[]> |
Yank.queryObjectArraysSQLKey(String poolName,
String sqlKey,
Object[] params)
Return a List of generic Object[]s given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
static <T> T |
Yank.queryScalar(String sql,
Class<T> scalarType,
Object[] params)
Return just one scalar given a an SQL statement using the default connection pool.
|
static <T> T |
Yank.queryScalar(String poolName,
String sql,
Class<T> scalarType,
Object[] params)
Return just one scalar given a an SQL statement
|
static <T> T |
Yank.queryScalarSQLKey(String sqlKey,
Class<T> scalarType,
Object[] params)
Return just one scalar given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...) using the default connection pool.
|
static <T> T |
Yank.queryScalarSQLKey(String poolName,
String sqlKey,
Class<T> scalarType,
Object[] params)
Return just one scalar given a SQL Key using an SQL statement matching the sqlKey String in a properties file loaded via
Yank.addSQLStatements(...).
|
Copyright © 2011–2017 Knowm Inc.. All rights reserved.