Top Description Fields Constructors Methods
com.ziclix.python.sql.handler

public abstract Class RowIdHandler

extends FilterDataHandler
Class Inheritance
Known Direct Subclasses
com.ziclix.python.sql.handler.MySQLDataHandler, com.ziclix.python.sql.handler.PostgresqlDataHandler
Imports
com.ziclix.python.sql.FilterDataHandler, .DataHandler, java.util.Map, java.sql.Statement, .SQLException, java.lang.reflect.Method, org.python.core.PyObject, .Py, org.python.util.Generic

Handle the rowid methods since the API is not available until JDBC 3.0.
Author
brian zimmer

Field Summary

Modifier and TypeField and Description
private static Object
private static Map<Class<?>, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PyObject

Returns:

an object representing the last row id
getRowId
(Statement stmt)

Overrides com.ziclix.python.sql.FilterDataHandler.getRowId.

Return the row id of the last insert statement.

protected abstract String

Returns:

name of the method that returns the last row id
getRowIdMethodName
()

Return the name of the method that returns the last row id. The method can take no arguments but the return type is flexible and will be figured out by the Jython runtime system.

Inherited from com.ziclix.python.sql.FilterDataHandler:
__chain__getPyObjectpostExecutepreExecutesetJDBCObjectsetJDBCObject

Field Detail

CHECKEDback to summary
private static Object CHECKED
ROWIDSback to summary
private static Map<Class<?>, Object> ROWIDS

Constructor Detail

RowIdHandlerback to summary
public RowIdHandler(DataHandler handler)

Method Detail

getRowIdback to summary
public PyObject getRowId(Statement stmt) throws SQLException

Overrides com.ziclix.python.sql.FilterDataHandler.getRowId.

Return the row id of the last insert statement.

Returns:PyObject

an object representing the last row id

Annotations
@Override
Exceptions
SQLException:

Doc from com.ziclix.python.sql.DataHandler.getRowId.

thrown if an exception occurs

getRowIdMethodNameback to summary
protected abstract String getRowIdMethodName()

Return the name of the method that returns the last row id. The method can take no arguments but the return type is flexible and will be figured out by the Jython runtime system.

Returns:String

name of the method that returns the last row id