Package net.bitnine.agensgraph.jdbc
Class AgStatement
java.lang.Object
net.bitnine.agensgraph.jdbc.AgStatement
- All Implemented Interfaces:
AutoCloseable,Statement,Wrapper,org.postgresql.core.BaseStatement,org.postgresql.PGStatement
- Direct Known Subclasses:
AgPreparedStatement
This class defines a statement to AgensGraph.
-
Field Summary
Fields inherited from interface org.postgresql.PGStatement
DATE_NEGATIVE_INFINITY, DATE_NEGATIVE_SMALLER_INFINITY, DATE_POSITIVE_INFINITY, DATE_POSITIVE_SMALLER_INFINITYFields 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
Modifier and TypeMethodDescriptionvoidvoidcancel()voidvoidvoidclose()voidcreateDriverResultSet(org.postgresql.core.Field[] fields, List<org.postgresql.core.Tuple> tuples) createResultSet(org.postgresql.core.Query originalQuery, org.postgresql.core.Field[] fields, List<org.postgresql.core.Tuple> tuples, org.postgresql.core.ResultCursor cursor) booleanbooleanbooleanbooleanint[]executeQuery(String sql) intexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] columnIndexes) intexecuteUpdate(String sql, String[] columnNames) booleanexecuteWithFlags(int flags) booleanexecuteWithFlags(String p_sql, int flags) booleanexecuteWithFlags(org.postgresql.core.CachedQuery p_sql, int flags) intintlongintintbooleanbooleangetMoreResults(int current) intintintintintintbooleanisClosed()booleanbooleanbooleanbooleanisWrapperFor(Class<?> iface) voidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int rows) voidsetMaxFieldSize(int max) voidsetMaxRows(int max) voidsetPoolable(boolean poolable) voidsetPrepareThreshold(int threshold) voidsetQueryTimeout(int seconds) voidsetUseServerPrepare(boolean flag) <T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRows
-
Method Details
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
getMaxRows
- Specified by:
getMaxRowsin interfaceStatement- Throws:
SQLException
-
setMaxRows
- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
- Specified by:
getQueryTimeoutin interfaceStatement- Throws:
SQLException
-
setQueryTimeout
- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceStatement- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarningsin interfaceStatement- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceStatement- Throws:
SQLException
-
getUpdateCount
- Specified by:
getUpdateCountin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchDirection
public int getFetchDirection()- Specified by:
getFetchDirectionin interfaceStatement
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getFetchSize
public int getFetchSize()- Specified by:
getFetchSizein interfaceStatement
-
getResultSetConcurrency
public int getResultSetConcurrency()- Specified by:
getResultSetConcurrencyin interfaceStatement
-
getResultSetType
public int getResultSetType()- Specified by:
getResultSetTypein interfaceStatement
-
addBatch
- Specified by:
addBatchin interfaceStatement- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatchin interfaceStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
- Specified by:
getResultSetHoldabilityin interfaceStatement- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceStatement- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
isPoolable
- Specified by:
isPoolablein interfaceStatement- Throws:
SQLException
-
closeOnCompletion
- Specified by:
closeOnCompletionin interfaceStatement- Throws:
SQLException
-
isCloseOnCompletion
- Specified by:
isCloseOnCompletionin interfaceStatement- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper
-
createDriverResultSet
public ResultSet createDriverResultSet(org.postgresql.core.Field[] fields, List<org.postgresql.core.Tuple> tuples) throws SQLException - Specified by:
createDriverResultSetin interfaceorg.postgresql.core.BaseStatement- Throws:
SQLException
-
createResultSet
public ResultSet createResultSet(org.postgresql.core.Query originalQuery, org.postgresql.core.Field[] fields, List<org.postgresql.core.Tuple> tuples, org.postgresql.core.ResultCursor cursor) throws SQLException - Specified by:
createResultSetin interfaceorg.postgresql.core.BaseStatement- Throws:
SQLException
-
executeWithFlags
- Specified by:
executeWithFlagsin interfaceorg.postgresql.core.BaseStatement- Throws:
SQLException
-
executeWithFlags
public boolean executeWithFlags(org.postgresql.core.CachedQuery p_sql, int flags) throws SQLException - Specified by:
executeWithFlagsin interfaceorg.postgresql.core.BaseStatement- Throws:
SQLException
-
executeWithFlags
- Specified by:
executeWithFlagsin interfaceorg.postgresql.core.BaseStatement- Throws:
SQLException
-
getLastOID
- Specified by:
getLastOIDin interfaceorg.postgresql.PGStatement- Throws:
SQLException
-
setUseServerPrepare
- Specified by:
setUseServerPreparein interfaceorg.postgresql.PGStatement- Throws:
SQLException
-
isUseServerPrepare
public boolean isUseServerPrepare()- Specified by:
isUseServerPreparein interfaceorg.postgresql.PGStatement
-
setPrepareThreshold
- Specified by:
setPrepareThresholdin interfaceorg.postgresql.PGStatement- Throws:
SQLException
-
getPrepareThreshold
public int getPrepareThreshold()- Specified by:
getPrepareThresholdin interfaceorg.postgresql.PGStatement
-