Class EmbeddedRelationalStatement
java.lang.Object
com.apple.foundationdb.relational.recordlayer.AbstractEmbeddedStatement
com.apple.foundationdb.relational.recordlayer.EmbeddedRelationalStatement
- All Implemented Interfaces:
com.apple.foundationdb.relational.api.RelationalDirectAccessStatement
,com.apple.foundationdb.relational.api.RelationalStatement
,AutoCloseable
,Statement
,Wrapper
@API(EXPERIMENTAL)
public class EmbeddedRelationalStatement
extends AbstractEmbeddedStatement
implements com.apple.foundationdb.relational.api.RelationalStatement
-
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
executeDelete
(String tableName, Iterator<com.apple.foundationdb.relational.api.KeySet> keys, com.apple.foundationdb.relational.api.Options options) void
executeDeleteRange
(String tableName, com.apple.foundationdb.relational.api.KeySet prefix, com.apple.foundationdb.relational.api.Options options) com.apple.foundationdb.relational.api.RelationalResultSet
executeGet
(String tableName, com.apple.foundationdb.relational.api.KeySet key, com.apple.foundationdb.relational.api.Options options) int
executeInsert
(String tableName, List<com.apple.foundationdb.relational.api.RelationalStruct> data, com.apple.foundationdb.relational.api.Options options) com.apple.foundationdb.relational.api.RelationalResultSet
executeQuery
(String sql) com.apple.foundationdb.relational.api.RelationalResultSet
executeScan
(String tableName, com.apple.foundationdb.relational.api.KeySet prefix, com.apple.foundationdb.relational.api.Options options) int
executeUpdate
(String sql) int
Methods inherited from class com.apple.foundationdb.relational.recordlayer.AbstractEmbeddedStatement
close, executeInternal, getConnection, getMaxRows, getResultSet, isClosed, setMaxRows
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.apple.foundationdb.relational.api.RelationalDirectAccessStatement
close, executeDelete, executeDelete, executeDelete, executeInsert, executeInsert, executeInsert
Methods inherited from interface com.apple.foundationdb.relational.api.RelationalStatement
addBatch, cancel, clearBatch, clearWarnings, closeOnCompletion, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setPoolable, setQueryTimeout, unwrap
Methods inherited from interface java.sql.Statement
close, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getConnection, getLargeMaxRows, getLargeUpdateCount, getMaxRows, isClosed, isSimpleIdentifier, setLargeMaxRows, setMaxRows
-
Constructor Details
-
EmbeddedRelationalStatement
- Throws:
SQLException
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceStatement
- Throws:
SQLException
-
executeQuery
public com.apple.foundationdb.relational.api.RelationalResultSet executeQuery(String sql) throws SQLException - Specified by:
executeQuery
in interfacecom.apple.foundationdb.relational.api.RelationalStatement
- Specified by:
executeQuery
in interfaceStatement
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdate
in interfaceStatement
- Throws:
SQLException
-
getUpdateCount
- Specified by:
getUpdateCount
in interfacecom.apple.foundationdb.relational.api.RelationalStatement
- Specified by:
getUpdateCount
in interfaceStatement
- Overrides:
getUpdateCount
in classAbstractEmbeddedStatement
- Throws:
SQLException
-
executeScan
@Nonnull public com.apple.foundationdb.relational.api.RelationalResultSet executeScan(@Nonnull String tableName, @Nonnull com.apple.foundationdb.relational.api.KeySet prefix, @Nonnull com.apple.foundationdb.relational.api.Options options) throws SQLException - Specified by:
executeScan
in interfacecom.apple.foundationdb.relational.api.RelationalDirectAccessStatement
- Throws:
SQLException
-
executeGet
@Nonnull public com.apple.foundationdb.relational.api.RelationalResultSet executeGet(@Nonnull String tableName, @Nonnull com.apple.foundationdb.relational.api.KeySet key, @Nonnull com.apple.foundationdb.relational.api.Options options) throws SQLException - Specified by:
executeGet
in interfacecom.apple.foundationdb.relational.api.RelationalDirectAccessStatement
- Throws:
SQLException
-
executeInsert
public int executeInsert(@Nonnull String tableName, @Nonnull List<com.apple.foundationdb.relational.api.RelationalStruct> data, @Nonnull com.apple.foundationdb.relational.api.Options options) throws SQLException - Specified by:
executeInsert
in interfacecom.apple.foundationdb.relational.api.RelationalDirectAccessStatement
- Throws:
SQLException
-
executeDelete
public int executeDelete(@Nonnull String tableName, @Nonnull Iterator<com.apple.foundationdb.relational.api.KeySet> keys, @Nonnull com.apple.foundationdb.relational.api.Options options) throws SQLException - Specified by:
executeDelete
in interfacecom.apple.foundationdb.relational.api.RelationalDirectAccessStatement
- Throws:
SQLException
-
executeDeleteRange
public void executeDeleteRange(@Nonnull String tableName, @Nonnull com.apple.foundationdb.relational.api.KeySet prefix, @Nonnull com.apple.foundationdb.relational.api.Options options) throws SQLException - Specified by:
executeDeleteRange
in interfacecom.apple.foundationdb.relational.api.RelationalDirectAccessStatement
- Throws:
SQLException
-