Modifier and Type | Field and Description |
---|---|
static int |
QUERY_TIMEOUT_NOT_SET |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
autoMap(java.lang.Object o,
java.lang.Class<?> cls)
Converts from java.sql Types to common java types like java.util.Date and
numeric types.
|
static void |
closeSilently(java.lang.AutoCloseable c) |
static void |
commit(java.sql.PreparedStatement ps) |
static ConnectionProvider |
connectionProvider(javax.sql.DataSource dataSource) |
static ConnectionProvider |
connectionProvider(java.lang.String url,
java.util.Properties properties) |
static boolean |
hasCollection(java.util.List<Parameter> params) |
static <T> T |
mapObject(java.sql.CallableStatement cs,
java.lang.Class<T> cls,
int i,
Type type) |
static <T> T |
mapObject(java.sql.ResultSet rs,
java.lang.Class<T> cls,
int i) |
static void |
rollback(java.sql.PreparedStatement ps) |
static Util |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Util[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int QUERY_TIMEOUT_NOT_SET
public static Util[] values()
for (Util c : Util.values()) System.out.println(c);
public static Util valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void closeSilently(java.lang.AutoCloseable c)
public static void commit(java.sql.PreparedStatement ps) throws java.sql.SQLException
java.sql.SQLException
public static void rollback(java.sql.PreparedStatement ps) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.Object autoMap(java.lang.Object o, java.lang.Class<?> cls)
o
- object to map to new object of type cls
cls
- object return typecls
public static <T> T mapObject(java.sql.ResultSet rs, java.lang.Class<T> cls, int i)
public static <T> T mapObject(java.sql.CallableStatement cs, java.lang.Class<T> cls, int i, Type type)
public static ConnectionProvider connectionProvider(java.lang.String url, java.util.Properties properties)
public static ConnectionProvider connectionProvider(javax.sql.DataSource dataSource)
public static boolean hasCollection(java.util.List<Parameter> params)
Copyright © 2016–2020. All rights reserved.