com.mysema.query.sql
Class Configuration

java.lang.Object
  extended by com.mysema.query.sql.Configuration

public class Configuration
extends Object

Configuration for SQLQuery instances

Author:
tiwe

Field Summary
static Configuration DEFAULT
           
 
Constructor Summary
Configuration(SQLTemplates templates)
           
 
Method Summary
<T> T
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
<T> int
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

DEFAULT

public static final Configuration DEFAULT
Constructor Detail

Configuration

public Configuration(SQLTemplates templates)
Method Detail

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.