org.databene.commons.db
Class LoggingPreparedStatementHandler
java.lang.Object
org.databene.commons.db.LoggingPreparedStatementHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class LoggingPreparedStatementHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Provides database related utility methods.
Created: 28.06.2007 12:30:02
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LoggingPreparedStatementHandler
public LoggingPreparedStatementHandler(java.sql.PreparedStatement realStatement,
java.lang.String sql)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
addBatch
public void addBatch()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addBatch
public void addBatch(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
execute
public boolean execute()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
execute
public boolean execute(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
execute
public boolean execute(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
execute
public boolean execute(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
execute
public boolean execute(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeBatch
public int[] executeBatch()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeQuery
public java.sql.ResultSet executeQuery()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeQuery
public java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2010. All Rights Reserved.