Package org.apache.ignite.table
Interface RecordView<R>
- Type Parameters:
R- Mapped record type.
- All Superinterfaces:
AutoCloseable,ContinuousQuerySource<R>,CriteriaQuerySource<R>,DataStreamerTarget<R>
public interface RecordView<R>
extends DataStreamerTarget<R>, CriteriaQuerySource<R>, ContinuousQuerySource<R>, AutoCloseable
Table view interface provides methods to access table records.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(@Nullable Transaction tx, R keyRec) Determines whether a table contains an entry for the specified key.default booleanDetermines whether a table contains an entry for the specified key.booleancontainsAll(@Nullable Transaction tx, Collection<R> keys) Determines whether a table contains entries for all given keys.default booleancontainsAll(Collection<R> keys) Determines whether a table contains entries for all given keys.containsAllAsync(@Nullable Transaction tx, Collection<R> keys) Determines whether a table contains entries for all given keys.default CompletableFuture<Boolean>containsAllAsync(Collection<R> keys) Determines whether a table contains entries for all given keys.containsAsync(@Nullable Transaction tx, R keyRec) Determines whether a table contains an entry for the specified key.default CompletableFuture<Boolean>containsAsync(R keyRec) Determines whether a table contains an entry for the specified key.booleandelete(@Nullable Transaction tx, R keyRec) Deletes a record with the same key column values as the given one from a table.default booleanDeletes a record with the same key column values as the given one from a table.default voidRemoves all entries from a table records.voiddeleteAll(@Nullable Transaction tx) Removes all entries from a table records.deleteAll(@Nullable Transaction tx, Collection<R> keyRecs) Removes from a table records with the same key column values as the given one.default CompletableFuture<Void>Asynchronously removes all entries from a table records.deleteAllAsync(@Nullable Transaction tx) Asynchronously removes all entries from a table records.deleteAllAsync(@Nullable Transaction tx, Collection<R> keyRecs) Asynchronously removes from a table records with the same key column values as the given one.deleteAllExact(@Nullable Transaction tx, Collection<R> recs) Remove the given records from a table.deleteAllExact(Collection<R> recs) Remove the given records from a table.deleteAllExactAsync(@Nullable Transaction tx, Collection<R> recs) Asynchronously removes the given records from a table.default CompletableFuture<List<R>>deleteAllExactAsync(Collection<R> recs) Asynchronously removes the given records from a table.deleteAsync(@Nullable Transaction tx, R keyRec) Asynchronously deletes a record with the same key column values as the given one from a table.default CompletableFuture<Boolean>deleteAsync(R keyRec) Asynchronously deletes a record with the same key column values as the given one from a table.booleandeleteExact(@Nullable Transaction tx, R rec) Deletes the given record from a table.default booleandeleteExact(R rec) Deletes the given record from a table.deleteExactAsync(@Nullable Transaction tx, R rec) Asynchronously deletes the given record from a table.default CompletableFuture<Boolean>deleteExactAsync(R rec) Asynchronously deletes the given record from a table.get(@Nullable Transaction tx, R keyRec) Gets a record with the same key column values as the given one from a table.default RGets a record with the same key column values as the given one from a table.getAll(@Nullable Transaction tx, Collection<R> keyRecs) Gets records from a table.getAll(Collection<R> keyRecs) Gets records from a table.getAllAsync(@Nullable Transaction tx, Collection<R> keyRecs) Asynchronously gets records from a table.default CompletableFuture<List<R>>getAllAsync(Collection<R> keyRecs) Asynchronously gets records from a table.getAndDelete(@Nullable Transaction tx, R keyRec) Gets and deletes from a table a record with the same key column values as the given one.default RgetAndDelete(R keyRec) Gets and deletes from a table a record with the same key column values as the given one.getAndDeleteAsync(@Nullable Transaction tx, R keyRec) Asynchronously gets and deletes from a table a record with the same key columns values as the given one.default CompletableFuture<R>getAndDeleteAsync(R keyRec) Asynchronously gets and deletes from a table a record with the same key columns values as the given one.getAndReplace(@Nullable Transaction tx, R rec) Gets an existing record associated with the same key columns values as the given one, then replaces it with the given one.default RgetAndReplace(R rec) Gets an existing record associated with the same key columns values as the given one, then replaces it with the given one.getAndReplaceAsync(@Nullable Transaction tx, R rec) Asynchronously gets an existing record associated with the same key column values as the given one, then replaces it with the given one.default CompletableFuture<R>getAndReplaceAsync(R rec) Asynchronously gets an existing record associated with the same key column values as the given one, then replaces it with the given one.getAndUpsert(@Nullable Transaction tx, R rec) Inserts a record into a table, or replaces an existing record and returns the replaced record.default RgetAndUpsert(R rec) Inserts a record into a table, or replaces an existing record and returns the replaced record.getAndUpsertAsync(@Nullable Transaction tx, R rec) Asynchronously inserts a record into a table, or replaces an existing record and returns the replaced record.default CompletableFuture<R>getAndUpsertAsync(R rec) Asynchronously inserts a record into a table, or replaces an existing record and returns the replaced record.getAsync(@Nullable Transaction tx, R keyRec) Asynchronously gets a record with the same key column values as the given one from a table.default CompletableFuture<R>Asynchronously gets a record with the same key column values as the given one from a table.booleaninsert(@Nullable Transaction tx, R rec) Inserts a record into a table if it does not exists.default booleanInserts a record into a table if it does not exists.insertAll(@Nullable Transaction tx, Collection<R> recs) Inserts into a table records that do not exist, skips those that exist.insertAll(Collection<R> recs) Inserts into a table records that do not exist, skips those that exist.insertAllAsync(@Nullable Transaction tx, Collection<R> recs) Asynchronously inserts into a table records that do not exist, skips those that exist.default CompletableFuture<List<R>>insertAllAsync(Collection<R> recs) Asynchronously inserts into a table records that do not exist, skips those that exist.insertAsync(@Nullable Transaction tx, R rec) Asynchronously inserts a record into a table if it does not exists.default CompletableFuture<Boolean>insertAsync(R rec) Asynchronously inserts a record into a table if it does not exists.booleanreplace(@Nullable Transaction tx, R rec) Replaces an existing record associated with the same key column values as the given record.default booleanreplace(@Nullable Transaction tx, R oldRec, R newRec) Deprecated, for removal: This API element is subject to removal in a future version.default booleanReplaces an existing record associated with the same key column values as the given record.replaceAsync(@Nullable Transaction tx, R rec) Asynchronously replaces an existing record associated with the same key columns values as the given record.default CompletableFuture<Boolean>replaceAsync(@Nullable Transaction tx, R oldRec, R newRec) Deprecated, for removal: This API element is subject to removal in a future version.default CompletableFuture<Boolean>replaceAsync(R rec) Asynchronously replaces an existing record associated with the same key columns values as the given record.booleanreplaceExact(@Nullable Transaction tx, R oldRec, R newRec) Replaces an expected record in the table with the given new one.default booleanreplaceExact(R oldRec, R newRec) Replaces an expected record in the table with the given new one.replaceExactAsync(@Nullable Transaction tx, R oldRec, R newRec) Asynchronously replaces an existing record in the table with the given new one.default CompletableFuture<Boolean>replaceExactAsync(R oldRec, R newRec) Asynchronously replaces an existing record in the table with the given new one.voidupsert(@Nullable Transaction tx, R rec) Inserts a record into a table, if it does not exist, or replaces an existing one.default voidInserts a record into a table, if it does not exist, or replaces an existing one.voidupsertAll(@Nullable Transaction tx, Collection<R> recs) Inserts records into a table, if they do not exist, or replaces the existing ones.default voidupsertAll(Collection<R> recs) Inserts records into a table, if they do not exist, or replaces the existing ones.upsertAllAsync(@Nullable Transaction tx, Collection<R> recs) Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.default CompletableFuture<Void>upsertAllAsync(Collection<R> recs) Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.upsertAsync(@Nullable Transaction tx, R rec) Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.default CompletableFuture<Void>upsertAsync(R rec) Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.apache.ignite.table.ContinuousQuerySource
queryContinuously, queryContinuouslyMethods inherited from interface org.apache.ignite.table.criteria.CriteriaQuerySource
query, query, query, queryAsync, queryAsync, queryAsyncMethods inherited from interface org.apache.ignite.table.DataStreamerTarget
streamData, streamData, streamData
-
Method Details
-
get
Gets a record with the same key column values as the given one from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Record with all columns filled from the table.
-
get
Gets a record with the same key column values as the given one from a table.- Parameters:
keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Record with all columns filled from the table.
-
getAsync
Asynchronously gets a record with the same key column values as the given one from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAsync
Asynchronously gets a record with the same key column values as the given one from a table.- Parameters:
keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAll
Gets records from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRecs- Records with key columns set. The records cannot benull.- Returns:
- Records with all columns filled from the table. The order of collection elements is
guaranteed to be the same as the order of
keyRecs. If a record does not exist, the element at the corresponding index of the resulting collection isnull.
-
getAll
Gets records from a table.- Parameters:
keyRecs- Records with key columns set. The records cannot benull.- Returns:
- Records with all columns filled from the table. The order of collection elements is
guaranteed to be the same as the order of
keyRecs. If a record does not exist, the element at the corresponding index of the resulting collection isnull.
-
getAllAsync
Asynchronously gets records from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRecs- Records with the key columns set. The records cannot benull.- Returns:
- Future that will return records with all columns filled from the table. The order of collection elements is
guaranteed to be the same as the order of
keyRecs. If a record does not exist, the element at the corresponding index of the resulting collection isnull.
-
getAllAsync
Asynchronously gets records from a table.- Parameters:
keyRecs- Records with the key columns set. The records cannot benull.- Returns:
- Future that will return records with all columns filled from the table. The order of collection elements is
guaranteed to be the same as the order of
keyRecs. If a record does not exist, the element at the corresponding index of the resulting collection isnull.
-
contains
Determines whether a table contains an entry for the specified key.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- A record with key columns set. The key cannot benull.- Returns:
Trueif a value exists for every specified key,falseotherwise.- Throws:
MarshallerException- if the key doesn't match the schema.
-
contains
Determines whether a table contains an entry for the specified key.- Parameters:
keyRec- A record with key columns set. The key cannot benull.- Returns:
Trueif a value exists for every specified key,falseotherwise.- Throws:
MarshallerException- if the key doesn't match the schema.
-
containsAsync
Determines whether a table contains an entry for the specified key.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- A record with key columns set. The key cannot benull.- Returns:
- Future that represents the pending completion of the operation.
- Throws:
MarshallerException- if the key doesn't match the schema.
-
containsAsync
Determines whether a table contains an entry for the specified key.- Parameters:
keyRec- A record with key columns set. The key cannot benull.- Returns:
- Future that represents the pending completion of the operation.
- Throws:
MarshallerException- if the key doesn't match the schema.
-
containsAll
Determines whether a table contains entries for all given keys.- Parameters:
tx- Transaction ornullfor implicit transaction.keys- Keys whose presence is to be verified. The collection and it's values cannot benull.- Returns:
Trueif a value exists for every specified key,falseotherwise.- Throws:
MarshallerException- if the key doesn't match the schema.
-
containsAll
Determines whether a table contains entries for all given keys.- Parameters:
keys- Keys whose presence is to be verified. The collection and it's values cannot benull.- Returns:
Trueif a value exists for every specified key,falseotherwise.- Throws:
MarshallerException- if the key doesn't match the schema.
-
containsAllAsync
Determines whether a table contains entries for all given keys.- Parameters:
tx- Transaction ornullfor implicit transaction.keys- Keys whose presence is to be verified. The collection and it's values cannot benull.- Returns:
- Future that represents the pending completion of the operation. The result of the future will be
trueif a value exists for every specified key,falseotherwise. - Throws:
MarshallerException- if the key doesn't match the schema.
-
containsAllAsync
Determines whether a table contains entries for all given keys.- Parameters:
keys- Keys whose presence is to be verified. The collection and it's values cannot benull.- Returns:
- Future that represents the pending completion of the operation. The result of the future will be
trueif a value exists for every specified key,falseotherwise. - Throws:
MarshallerException- if the key doesn't match the schema.
-
upsert
Inserts a record into a table, if it does not exist, or replaces an existing one.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to insert into the table. The record cannot benull.
-
upsert
Inserts a record into a table, if it does not exist, or replaces an existing one.- Parameters:
rec- Record to insert into the table. The record cannot benull.
-
upsertAsync
Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to insert into the table. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
upsertAsync
Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.- Parameters:
rec- Record to insert into the table. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
upsertAll
Inserts records into a table, if they do not exist, or replaces the existing ones.- Parameters:
tx- Transaction ornullfor implicit transaction.recs- Records to insert into the table. The records cannot benull.
-
upsertAll
Inserts records into a table, if they do not exist, or replaces the existing ones.- Parameters:
recs- Records to insert into the table. The records cannot benull.
-
upsertAllAsync
Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.- Parameters:
tx- Transaction ornullfor implicit transaction.recs- Records to insert into the table. The records cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
upsertAllAsync
Asynchronously inserts a record into a table, if it does not exist, or replaces the existing one.- Parameters:
recs- Records to insert into the table. The records cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAndUpsert
Inserts a record into a table, or replaces an existing record and returns the replaced record.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- A record to insert into the table. The record cannot benull.- Returns:
- Replaced record or
nullif it did not exist.
-
getAndUpsert
Inserts a record into a table, or replaces an existing record and returns the replaced record.- Parameters:
rec- A record to insert into the table. The record cannot benull.- Returns:
- Replaced record or
nullif it did not exist.
-
getAndUpsertAsync
Asynchronously inserts a record into a table, or replaces an existing record and returns the replaced record.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to insert into the table. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAndUpsertAsync
Asynchronously inserts a record into a table, or replaces an existing record and returns the replaced record.- Parameters:
rec- Record to insert into the table. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
insert
Inserts a record into a table if it does not exists.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to insert into the table. The record cannot benull.- Returns:
Trueif successful,falseotherwise.
-
insert
Inserts a record into a table if it does not exists.- Parameters:
rec- Record to insert into the table. The record cannot benull.- Returns:
Trueif successful,falseotherwise.
-
insertAsync
Asynchronously inserts a record into a table if it does not exists.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to insert into the table. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
insertAsync
Asynchronously inserts a record into a table if it does not exists.- Parameters:
rec- Record to insert into the table. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
insertAll
Inserts into a table records that do not exist, skips those that exist.- Parameters:
tx- Transaction ornullfor implicit transaction.recs- Records to insert into the table. The records cannot benull.- Returns:
- Skipped records. If a record is inserted, the element will be excluded from the collection result.
-
insertAll
Inserts into a table records that do not exist, skips those that exist.- Parameters:
recs- Records to insert into the table. The records cannot benull.- Returns:
- Skipped records. The order of collection elements is guaranteed to be the same as the order of
recs. If a record is inserted, the element will be excluded from the collection result.
-
insertAllAsync
Asynchronously inserts into a table records that do not exist, skips those that exist.- Parameters:
tx- Transaction ornullfor implicit transaction.recs- Records to insert into the table. The records cannot benull.- Returns:
- Future representing pending completion of the operation, with rejected rows for insertion in the result. If a record is inserted, the element will be excluded from the collection result.
-
insertAllAsync
Asynchronously inserts into a table records that do not exist, skips those that exist.- Parameters:
recs- Records to insert into the table. The records cannot benull.- Returns:
- Future representing pending completion of the operation, with rejected rows for insertion in the result. The order of
collection elements is guaranteed to be the same as the order of
recs. If a record is inserted, the element will be excluded from the collection result.
-
replace
Replaces an existing record associated with the same key column values as the given record.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to replace with. The record cannot benull.- Returns:
Trueif a record was found and replaced successfully,falseotherwise.
-
replace
Replaces an existing record associated with the same key column values as the given record.- Parameters:
rec- Record to replace with. The record cannot benull.- Returns:
Trueif a record was found and replaced successfully,falseotherwise.
-
replace
@Deprecated(forRemoval=true) default boolean replace(@Nullable @Nullable Transaction tx, R oldRec, R newRec) Deprecated, for removal: This API element is subject to removal in a future version.Replaces an expected record in the table with the given new one. Deprecated: usereplaceExact(Transaction, Object, Object)instead.- Parameters:
tx- Transaction ornullfor implicit transaction.oldRec- Record to replace. The record cannot benull.newRec- Record to replace with. The record cannot benull.- Returns:
Trueif a record was replaced successfully,falseotherwise.
-
replaceExact
Replaces an expected record in the table with the given new one.- Parameters:
oldRec- Record to replace. The record cannot benull.newRec- Record to replace with. The record cannot benull.- Returns:
Trueif a record was replaced successfully,falseotherwise.
-
replaceExact
Replaces an expected record in the table with the given new one.- Parameters:
oldRec- Record to replace. The record cannot benull.newRec- Record to replace with. The record cannot benull.- Returns:
Trueif a record was replaced successfully,falseotherwise.
-
replaceAsync
Asynchronously replaces an existing record associated with the same key columns values as the given record.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
replaceAsync
Asynchronously replaces an existing record associated with the same key columns values as the given record.- Parameters:
rec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
replaceAsync
@Deprecated(forRemoval=true) default CompletableFuture<Boolean> replaceAsync(@Nullable @Nullable Transaction tx, R oldRec, R newRec) Deprecated, for removal: This API element is subject to removal in a future version.Asynchronously replaces an existing record in the table with the given new one. Deprecated: usereplaceExactAsync(Transaction, Object, Object)instead.- Parameters:
tx- Transaction ornullfor implicit transaction.oldRec- Record to replace. The record cannot benull.newRec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
replaceExactAsync
CompletableFuture<Boolean> replaceExactAsync(@Nullable @Nullable Transaction tx, R oldRec, R newRec) Asynchronously replaces an existing record in the table with the given new one.- Parameters:
oldRec- Record to replace. The record cannot benull.newRec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
replaceExactAsync
Asynchronously replaces an existing record in the table with the given new one.- Parameters:
oldRec- Record to replace. The record cannot benull.newRec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAndReplace
Gets an existing record associated with the same key columns values as the given one, then replaces it with the given one.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to replace with. The record cannot benull.- Returns:
- Replaced record or
nullif it did not exist.
-
getAndReplace
Gets an existing record associated with the same key columns values as the given one, then replaces it with the given one.- Parameters:
rec- Record to replace with. The record cannot benull.- Returns:
- Replaced record or
nullif it did not exist.
-
getAndReplaceAsync
Asynchronously gets an existing record associated with the same key column values as the given one, then replaces it with the given one.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAndReplaceAsync
Asynchronously gets an existing record associated with the same key column values as the given one, then replaces it with the given one.- Parameters:
rec- Record to replace with. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
delete
Deletes a record with the same key column values as the given one from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- Record with the key columns set. The record cannot benull.- Returns:
Trueif removed successfully,falseotherwise.
-
delete
Deletes a record with the same key column values as the given one from a table.- Parameters:
keyRec- Record with the key columns set. The record cannot benull.- Returns:
Trueif removed successfully,falseotherwise.
-
deleteAsync
Asynchronously deletes a record with the same key column values as the given one from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
deleteAsync
Asynchronously deletes a record with the same key column values as the given one from a table.- Parameters:
keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
deleteExact
Deletes the given record from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to delete. The record cannot benull.- Returns:
Trueif removed successfully,falseotherwise.
-
deleteExact
Deletes the given record from a table.- Parameters:
rec- Record to delete. The record cannot benull.- Returns:
Trueif removed successfully,falseotherwise.
-
deleteExactAsync
Asynchronously deletes the given record from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.rec- Record to delete. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
deleteExactAsync
Asynchronously deletes the given record from a table.- Parameters:
rec- Record to delete. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAndDelete
Gets and deletes from a table a record with the same key column values as the given one.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Removed record or
nullif it did not exist.
-
getAndDelete
Gets and deletes from a table a record with the same key column values as the given one.- Parameters:
keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Removed record or
nullif it did not exist.
-
getAndDeleteAsync
Asynchronously gets and deletes from a table a record with the same key columns values as the given one.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
getAndDeleteAsync
Asynchronously gets and deletes from a table a record with the same key columns values as the given one.- Parameters:
keyRec- Record with the key columns set. The record cannot benull.- Returns:
- Future that represents the pending completion of the operation.
-
deleteAll
Removes from a table records with the same key column values as the given one.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRecs- Records with the key columns set. The records cannot benull.- Returns:
- Records with the key columns set that did not exist. If a record is removed, the element will be excluded from the collection result.
-
deleteAll
Removes all entries from a table records.- Parameters:
tx- Transaction ornullfor implicit transaction.
-
deleteAll
default void deleteAll()Removes all entries from a table records. -
deleteAllAsync
CompletableFuture<List<R>> deleteAllAsync(@Nullable @Nullable Transaction tx, Collection<R> keyRecs) Asynchronously removes from a table records with the same key column values as the given one.- Parameters:
tx- Transaction ornullfor implicit transaction.keyRecs- Records with the key columns set. The records cannot benull.- Returns:
- Future represents the pending completion of the operation, with rejected rows for deletion in the result. If a record is removed, the element will be excluded from the collection result.
-
deleteAllAsync
Asynchronously removes all entries from a table records.- Parameters:
tx- Transaction ornullfor implicit transaction.- Returns:
- Future represents the pending completion of the operation.
-
deleteAllAsync
Asynchronously removes all entries from a table records.- Returns:
- Future represents the pending completion of the operation.
-
deleteAllExact
Remove the given records from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.recs- Records to delete. The records cannot benull.- Returns:
- Records that were not deleted. If a record is removed, the element will be excluded from the collection result.
-
deleteAllExact
Remove the given records from a table.- Parameters:
recs- Records to delete. The records cannot benull.- Returns:
- Records that were not deleted. The order of collection elements is guaranteed to be the same as the order of
recs. If a record is removed, the element will be excluded from the collection result.
-
deleteAllExactAsync
CompletableFuture<List<R>> deleteAllExactAsync(@Nullable @Nullable Transaction tx, Collection<R> recs) Asynchronously removes the given records from a table.- Parameters:
tx- Transaction ornullfor implicit transaction.recs- Records to delete. The records cannot benull.- Returns:
- Future represents the pending completion of the operation, with rejected rows for deletion in the result. If a record is removed, the element will be excluded from the collection result.
-
deleteAllExactAsync
Asynchronously removes the given records from a table.- Parameters:
recs- Records to delete. The records cannot benull.- Returns:
- Future represents the pending completion of the operation, with rejected rows for deletion in the result. The order of
collection elements is guaranteed to be the same as the order of
recs. If a record is removed, the element will be excluded from the collection result.
-