Skip navigation links

Oracle® TimesTen In-Memory Database JDBC Extensions Java API Reference
Release 11.2.1

E13083-02


com.timesten.jdbc
Interface TimesTenStatement

All Superinterfaces:
java.sql.Statement, java.sql.Wrapper

public interface TimesTenStatement
extends java.sql.Statement

Contains Oracle TimesTen extension to Statement.


Field Summary

 

Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO

 

Method Summary
 int getQueryTimeThreshold()
          Returns value of query time threshold in effect.
 void setQueryTimeThreshold(int seconds)
          Sets query time threshold for the Statement.

 

Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout

 

Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap

 

Method Detail

setQueryTimeThreshold

void setQueryTimeThreshold(int seconds)
                           throws java.sql.SQLException
Sets query time threshold for the Statement. By default, Statement inherits query time threshold of the Connection. If query time thresold is exceeded, TimesTen will log a warning message and raise an SNMP trap.
Parameters:
seconds - >= 0. 0 Implies no query time threshold. You can use zero to annul the current query time thresold.
Throws:
java.sql.SQLException - if a database error occurs or seconds < 0

getQueryTimeThreshold

int getQueryTimeThreshold()
                          throws java.sql.SQLException
Returns value of query time threshold in effect.
Returns:
Current value of query time threshold in seconds.
Throws:
java.sql.SQLException - if a database error occurs.

Skip navigation links

Oracle® TimesTen In-Memory Database JDBC Extensions Java API Reference
Release 11.2.1

E13083-02


Copyright © 1999, 2010, Oracle and/or its affiliates. All rights reserved.