org.qi4j.index.sql.support.postgresql
Class PostgreSQLTypeHelper.SQLTypeHelperMixin
java.lang.Object
org.qi4j.index.sql.support.postgresql.PostgreSQLTypeHelper.SQLTypeHelperMixin
- All Implemented Interfaces:
- PostgreSQLTypeHelper
- Enclosing interface:
- PostgreSQLTypeHelper
public static class PostgreSQLTypeHelper.SQLTypeHelperMixin
- extends Object
- implements PostgreSQLTypeHelper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgreSQLTypeHelper.SQLTypeHelperMixin
public PostgreSQLTypeHelper.SQLTypeHelperMixin()
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