|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.sql.Configuration
public class Configuration
Configuration for SQLQuery instances
Field Summary | |
---|---|
static Configuration |
DEFAULT
Default instance |
Constructor Summary | |
---|---|
Configuration(SQLTemplates templates)
Create a new Configuration instance |
Method Summary | ||
---|---|---|
|
get(ResultSet rs,
Path<?> path,
int i,
Class<T> clazz)
|
|
Class<?> |
getJavaType(int sqlType,
int size,
int digits,
String tableName,
String columnName)
Get the java type for the given jdbc type, table name and column name |
|
SQLTemplates |
getTemplates()
|
|
void |
register(String table,
String column,
Type<?> type)
Register the given Type for the given table and column |
|
void |
register(Type<?> type)
Register the given Type to be used |
|
void |
registerNumeric(int size,
int digits,
Class<? extends Number> javaType)
Override the binding for the given NUMERIC type |
|
|
set(PreparedStatement stmt,
Path<?> path,
int i,
T value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Configuration DEFAULT
Constructor Detail |
---|
public Configuration(SQLTemplates templates)
templates
- Method Detail |
---|
public SQLTemplates getTemplates()
public Class<?> getJavaType(int sqlType, int size, int digits, String tableName, String columnName)
sqlType
- size
- digits
- tableName
- columnName
-
@Nullable public <T> T get(ResultSet rs, @Nullable Path<?> path, int i, Class<T> clazz) throws SQLException
T
- rs
- path
- i
- clazz
-
SQLException
public <T> int set(PreparedStatement stmt, Path<?> path, int i, T value) throws SQLException
T
- stmt
- path
- i
- value
-
SQLException
public void register(Type<?> type)
type
- public void registerNumeric(int size, int digits, Class<? extends Number> javaType)
size
- digits
- javaType
- public void register(String table, String column, Type<?> type)
table
- column
- type
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |