org.qi4j.index.sql.support.postgresql
Class PostgreSQLTypeHelper.SQLTypeHelperMixin

java.lang.Object
  extended by org.qi4j.index.sql.support.postgresql.PostgreSQLTypeHelper.SQLTypeHelperMixin
All Implemented Interfaces:
PostgreSQLTypeHelper
Enclosing interface:
PostgreSQLTypeHelper

public static class PostgreSQLTypeHelper.SQLTypeHelperMixin
extends Object
implements PostgreSQLTypeHelper


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.index.sql.support.postgresql.PostgreSQLTypeHelper
PostgreSQLTypeHelper.SQLTypeHelperMixin
 
Constructor Summary
PostgreSQLTypeHelper.SQLTypeHelperMixin()
           
 
Method Summary
 void addPrimitiveToPS(PreparedStatement ps, Integer index, Object primitive, Type primitiveType)
          Adds the specified object at specified index in specified prepared statement.
 Integer getSQLType(Object primitive)
           
 Object processJavaPrimitiveBeforeUsingInStatement(Object primitive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSQLTypeHelper.SQLTypeHelperMixin

public PostgreSQLTypeHelper.SQLTypeHelperMixin()
Method Detail

processJavaPrimitiveBeforeUsingInStatement

public Object processJavaPrimitiveBeforeUsingInStatement(Object primitive)

addPrimitiveToPS

public void addPrimitiveToPS(PreparedStatement ps,
                             Integer index,
                             Object primitive,
                             Type primitiveType)
                      throws SQLException
Description copied from interface: PostgreSQLTypeHelper
Adds the specified object at specified index in specified prepared statement.

Specified by:
addPrimitiveToPS in interface PostgreSQLTypeHelper
Parameters:
ps - The prepared statement.
index - The index for the object to be inserted in prepared statemtent (> 0).
primitive - The object to insert.
primitiveType - The type of object.
Throws:
SQLException - If something underlying throws it.

getSQLType

public Integer getSQLType(Object primitive)
Specified by:
getSQLType in interface PostgreSQLTypeHelper