public interface PojoDao<P>
Modifier and Type | Method and Description |
---|---|
void |
delete(P pojo)
Deletes a POJO.
|
void |
delete(com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo)
Deletes a POJO using the supplied
StatementOptions . |
void |
delete(com.savoirtech.hecate.core.update.UpdateGroup group,
P pojo)
Deletes a POJO using the supplied
UpdateGroup . |
void |
delete(com.savoirtech.hecate.core.update.UpdateGroup group,
com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo)
Deletes a POJO using the supplied
StatementOptions within the supplied UpdateGroup . |
CompletableFuture<Void> |
deleteAsync(P pojo)
Asynchronously deletes a POJO.
|
CompletableFuture<Void> |
deleteAsync(com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo)
Asynchronously deletes a POJO using the supplied
StatementOptions . |
void |
deleteByKey(Object... components)
Deletes a POJO by its primary key.
|
void |
deleteByKey(com.savoirtech.hecate.core.statement.StatementOptions options,
Object... components)
Deletes a POJO by its primary key using the supplied
StatementOptions . |
void |
deleteByKey(com.savoirtech.hecate.core.update.UpdateGroup group,
com.savoirtech.hecate.core.statement.StatementOptions options,
Object... components)
Deletes a POJO by its primary key using the supplied (@link StatmentOptions} and within the supplied
UpdateGroup . |
CompletableFuture<Void> |
deleteByKeyAsync(Object... components)
Asynchronously deletes a POJO by its primary key.
|
CompletableFuture<Void> |
deleteByKeyAsync(com.savoirtech.hecate.core.statement.StatementOptions options,
Object... components)
Asynchronously deletes a POJO by its primary key using the supplied
StatementOptions . |
PojoQueryBuilder<P> |
find()
Returns a
PojoQueryBuilder which can be used to build a query to find P objects. |
PojoQuery<P> |
find(Function<com.datastax.oss.driver.api.querybuilder.select.Select,com.datastax.oss.driver.api.querybuilder.select.Select> builder)
Returns a
PojoQuery which uses a custom where clause to find P objects. |
P |
findByKey(Object... components)
Finds an POJO by its primary key.
|
P |
findByKey(com.savoirtech.hecate.core.statement.StatementOptions options,
Object... components)
Finds an POJO by its primary key, using the provided
StatementOptions . |
PojoMultiQuery<P> |
findByKeys()
Returns a
PojoMultiQuery which can be used to search for multiple entities by their primary keys. |
PojoMultiQuery<P> |
findByKeys(com.savoirtech.hecate.core.statement.StatementOptions options)
Returns a
PojoMultiQuery which can be used to search for multiple entities by their primary keys, using
the provided StatementOptions for each query. |
void |
save(P pojo)
Saves a POJO.
|
void |
save(P pojo,
int ttl)
Saves a POJO using the supplied TTL value.
|
void |
save(com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo)
Saves a POJO using the supplied
StatementOptions . |
void |
save(com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo,
int ttl)
Saves a POJO using the supplied
StatementOptions and TTL value. |
void |
save(com.savoirtech.hecate.core.update.UpdateGroup group,
P pojo)
Saves a POJO within the supplied
UpdateGroup . |
void |
save(com.savoirtech.hecate.core.update.UpdateGroup group,
P pojo,
int ttl)
Saves a POJO within the supplied
UpdateGroup with the supplied TTL value. |
void |
save(com.savoirtech.hecate.core.update.UpdateGroup group,
com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo)
Saves a POJO using the supplied
StatementOptions and within the supplied UpdateGroup . |
void |
save(com.savoirtech.hecate.core.update.UpdateGroup group,
com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo,
int ttl)
Saves a POJO using the supplied
StatementOptions , within the supplied UpdateGroup , and using
the supplied TTL value. |
CompletableFuture<Void> |
saveAsync(P pojo)
Asynchronously saves a POJO.
|
CompletableFuture<Void> |
saveAsync(P pojo,
int ttl)
Asynchronously saves a POJO using the supplied TTL value.
|
CompletableFuture<Void> |
saveAsync(com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo)
Asynchronously saves a POJO using the supplied
StatementOptions . |
CompletableFuture<Void> |
saveAsync(com.savoirtech.hecate.core.statement.StatementOptions options,
P pojo,
int ttl)
Asynchronously saves a POJO using the supplied
StatementOptions and TTL value. |
void delete(P pojo)
pojo
- the POJOvoid delete(com.savoirtech.hecate.core.statement.StatementOptions options, P pojo)
StatementOptions
.options
- the statement optionspojo
- the POJOvoid delete(com.savoirtech.hecate.core.update.UpdateGroup group, P pojo)
UpdateGroup
.group
- the update grouppojo
- the POJOvoid delete(com.savoirtech.hecate.core.update.UpdateGroup group, com.savoirtech.hecate.core.statement.StatementOptions options, P pojo)
StatementOptions
within the supplied UpdateGroup
.group
- the update groupoptions
- the statement optionspojo
- the POJOCompletableFuture<Void> deleteAsync(P pojo)
pojo
- the POJOCompletableFuture<Void> deleteAsync(com.savoirtech.hecate.core.statement.StatementOptions options, P pojo)
StatementOptions
.options
- the statement optionspojo
- the POJOvoid deleteByKey(Object... components)
components
- the components of the primary keyvoid deleteByKey(com.savoirtech.hecate.core.statement.StatementOptions options, Object... components)
StatementOptions
.options
- the statement optionscomponents
- the components of the primary keyvoid deleteByKey(com.savoirtech.hecate.core.update.UpdateGroup group, com.savoirtech.hecate.core.statement.StatementOptions options, Object... components)
UpdateGroup
.group
- the update groupoptions
- the statement optionscomponents
- the components of the primary keyCompletableFuture<Void> deleteByKeyAsync(Object... components)
components
- the components of the primary keyCompletableFuture<Void> deleteByKeyAsync(com.savoirtech.hecate.core.statement.StatementOptions options, Object... components)
StatementOptions
.options
- the statement optionscomponents
- the components of the primary keyPojoQueryBuilder<P> find()
PojoQueryBuilder
which can be used to build a query to find P
objects.PojoQuery<P> find(Function<com.datastax.oss.driver.api.querybuilder.select.Select,com.datastax.oss.driver.api.querybuilder.select.Select> builder)
PojoQuery
which uses a custom where clause to find P
objects.builder
- a function which builds a custom where clauseP findByKey(Object... components)
components
- the components of the primary keyP findByKey(com.savoirtech.hecate.core.statement.StatementOptions options, Object... components)
StatementOptions
.options
- the statement optionscomponents
- the components of the primary keyPojoMultiQuery<P> findByKeys()
PojoMultiQuery
which can be used to search for multiple entities by their primary keys.PojoMultiQuery<P> findByKeys(com.savoirtech.hecate.core.statement.StatementOptions options)
PojoMultiQuery
which can be used to search for multiple entities by their primary keys, using
the provided StatementOptions
for each query.options
- the statement optionsvoid save(P pojo)
pojo
- the POJOvoid save(P pojo, int ttl)
pojo
- the POJOttl
- the TTLvoid save(com.savoirtech.hecate.core.statement.StatementOptions options, P pojo)
StatementOptions
.options
- the statement optionspojo
- the POJOvoid save(com.savoirtech.hecate.core.update.UpdateGroup group, P pojo)
UpdateGroup
.group
- the update grouppojo
- the POJOvoid save(com.savoirtech.hecate.core.statement.StatementOptions options, P pojo, int ttl)
StatementOptions
and TTL value.options
- the statement optionspojo
- the POJOttl
- the TTLvoid save(com.savoirtech.hecate.core.update.UpdateGroup group, P pojo, int ttl)
UpdateGroup
with the supplied TTL value.group
- the update grouppojo
- the POJOttl
- the TTLvoid save(com.savoirtech.hecate.core.update.UpdateGroup group, com.savoirtech.hecate.core.statement.StatementOptions options, P pojo)
StatementOptions
and within the supplied UpdateGroup
.group
- the update groupoptions
- the statement optionspojo
- the POJOvoid save(com.savoirtech.hecate.core.update.UpdateGroup group, com.savoirtech.hecate.core.statement.StatementOptions options, P pojo, int ttl)
StatementOptions
, within the supplied UpdateGroup
, and using
the supplied TTL value.group
- the update groupoptions
- the statement optionspojo
- the POJOttl
- the TTLCompletableFuture<Void> saveAsync(P pojo)
pojo
- the POJOCompletableFuture<Void> saveAsync(P pojo, int ttl)
pojo
- the POJOttl
- the TTLCompletableFuture<Void> saveAsync(com.savoirtech.hecate.core.statement.StatementOptions options, P pojo)
StatementOptions
.options
- the statement optionspojo
- the POJOCompletableFuture<Void> saveAsync(com.savoirtech.hecate.core.statement.StatementOptions options, P pojo, int ttl)
StatementOptions
and TTL value.options
- the statement optionspojo
- the POJOttl
- the TTLCopyright © 2012–2020 Savoir Technologies, Inc.. All rights reserved.