com.mysema.query.sql
Class Configuration
java.lang.Object
com.mysema.query.sql.Configuration
public class Configuration
- extends Object
Configuration for SQLQuery instances
- Author:
- tiwe
Method Summary |
|
get(ResultSet rs,
Path<?> path,
int i,
Class<T> clazz)
|
Class<?> |
getJavaType(int sqlType,
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 |
|
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 |
DEFAULT
public static final Configuration DEFAULT
Configuration
public Configuration(SQLTemplates templates)
getTemplates
public SQLTemplates getTemplates()
getJavaType
public Class<?> getJavaType(int sqlType,
String tableName,
String columnName)
- Get the java type for the given jdbc type, table name and column name
- Parameters:
sqlType
- tableName
- columnName
-
- Returns:
get
@Nullable
public <T> T get(ResultSet rs,
@Nullable
Path<?> path,
int i,
Class<T> clazz)
throws SQLException
- Type Parameters:
T
- - Parameters:
rs
- path
- i
- clazz
-
- Returns:
-
- Throws:
SQLException
set
public <T> int set(PreparedStatement stmt,
Path<?> path,
int i,
T value)
throws SQLException
- Type Parameters:
T
- - Parameters:
stmt
- path
- i
- value
-
- Returns:
-
- Throws:
SQLException
register
public void register(Type<?> type)
- Register the given Type to be used
- Parameters:
type
-
register
public void register(String table,
String column,
Type<?> type)
- Register the given Type for the given table and column
- Parameters:
table
- column
- type
-
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.