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 java.lang.Object
- implements PostgreSQLTypeHelper
Method Summary |
void |
addPrimitiveToPS(java.sql.PreparedStatement ps,
java.lang.Integer index,
java.lang.Object primitive,
java.lang.reflect.Type primitiveType)
Adds the specified object at specified index in specified prepared statement. |
java.lang.Integer |
getSQLType(java.lang.Object primitive)
|
java.lang.Object |
processJavaPrimitiveBeforeUsingInStatement(java.lang.Object primitive)
|
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 java.lang.Object processJavaPrimitiveBeforeUsingInStatement(java.lang.Object primitive)
addPrimitiveToPS
public void addPrimitiveToPS(java.sql.PreparedStatement ps,
java.lang.Integer index,
java.lang.Object primitive,
java.lang.reflect.Type primitiveType)
throws java.sql.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:
java.sql.SQLException
- If something underlying throws it.
getSQLType
public java.lang.Integer getSQLType(java.lang.Object primitive)
- Specified by:
getSQLType
in interface PostgreSQLTypeHelper