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)
           
 SQLTemplates getTemplates()
           
 void register(Type<?> type)
           
<T> int
set(PreparedStatement stmt, Path<?> path, int i, T value)
           
 void setType(int sqlType, Class<?> javaType)
           
 void setType(String table, String column, Type<?> type)
           
 
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

@Nullable
public <T> T get(ResultSet rs,
                          @Nullable
                          Path<?> path,
                          int i,
                          Class<T> clazz)
      throws SQLException
Throws:
SQLException

set

public <T> int set(PreparedStatement stmt,
                   Path<?> path,
                   int i,
                   T value)
        throws SQLException
Throws:
SQLException

register

public void register(Type<?> type)

setType

public void setType(int sqlType,
                    Class<?> javaType)

setType

public void setType(String table,
                    String column,
                    Type<?> type)


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.