<T> type for single-column keys, or a
Record subtype for composite keys.
This type is implemented by generated DAO classes to provide a common API for common actions on POJOs
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull Configuration | Returns: theDAO's underlying ConfigurationExpose the configuration in whose context this |
| public long | Returns: The number of records of the underlying tableCount all records of the underlying table. |
| public void | |
| public void | |
| public void | delete(Collection<P>
The POJOs to be deleted objects)Performs a |
| public void | |
| public void | |
| public void | deleteById(Collection<T>
The IDs to be deleted ids)Performs a |
| public @NotNull SQLDialect | |
| public boolean | Returns: Whether the POJO already existsThe POJO whose existence is checked object)Checks if a given POJO exists. |
| public boolean | Returns: Whether the ID already existsThe ID whose existence is checked id)Checks if a given ID exists. |
| public @NotNull SQLDialect | |
| public <Z> @NotNull List | |
| public <Z> @NotNull List | Returns: A list of records fulfillingfield IN (values)The field to compare values against field, Collection<? extends Z> The accepted values values)
Deprecated
as a consequence of
Find records by a given field and a set of values.
Field being deprecated.
|
| public <Z> P | |
| public <Z> @NotNull Optional | Returns: A record fulfillingfield = valueThe field to compare value against field, Z The accepted value value)
Deprecated
as a consequence of
Find a unique record by a given field and a value.
Field being deprecated.
|
| public <Z> @NotNull List | Returns: A list of records fulfillingfield BETWEEN lowerInclusive AND upperInclusiveThe field to compare values against field, Z The range's lower bound (inclusive), or unbounded
if lowerInclusive, Z null.The range's upper bound (inclusive), or unbounded
if upperInclusive)null.
Deprecated
as a consequence of
Find records by a given field and a range of values.
Field being deprecated.
|
| public @NotNull List | |
| public P | Returns: A record of the underlying table given its ID, ornull if no record was found.The ID of a record in the underlying table id)Find a record of the underlying table by ID. |
| public @NotNull Optional | Returns: A record of the underlying table given its ID.The ID of a record in the underlying table id)Find a record of the underlying table by ID. |
| public T | |
| public @NotNull Table | |
| public @NotNull Class | |
| public void | |
| public void | insert(P...
The POJOs to be inserted objects)Performs a batch |
| public void | insert(Collection<P>
The POJOs to be inserted objects)Performs a batch |
| public @NotNull RecordMapper | Returns: theDAO's underlying RecordMapperExpose the |
| public void | |
| public void | |
| public void | merge(Collection<P>
The POJOs to be merged objects)Performs a batch |
| public @NotNull Settings | |
| public void | |
| public void | update(P...
The POJOs to be updated objects)Performs a batch |
| public void | update(Collection<P>
The POJOs to be updated objects)Performs a batch |
| configuration | back to summary |
|---|---|
| public @NotNull Configuration configuration() Expose the configuration in whose context this
| |
| count | back to summary |
|---|---|
| public long count() throws DataAccessException Count all records of the underlying table.
| |
| delete | back to summary |
|---|---|
| public void delete(P object) throws DataAccessException Performs a
| |
| delete | back to summary |
|---|---|
| public void delete(P... objects) throws DataAccessException Performs a
| |
| delete | back to summary |
|---|---|
| public void delete(Collection<P> objects) throws DataAccessException Performs a
| |
| deleteById | back to summary |
|---|---|
| public void deleteById(T id) throws DataAccessException Performs a
| |
| deleteById | back to summary |
|---|---|
| public void deleteById(T... ids) throws DataAccessException Performs a
| |
| deleteById | back to summary |
|---|---|
| public void deleteById(Collection<T> ids) throws DataAccessException Performs a
| |
| dialect | back to summary |
|---|---|
| public @NotNull SQLDialect dialect() The
This method is a convenient way of accessing
| |
| exists | back to summary |
|---|---|
| public boolean exists(P object) throws DataAccessException Checks if a given POJO exists.
| |
| existsById | back to summary |
|---|---|
| public boolean existsById(T id) throws DataAccessException Checks if a given ID exists.
| |
| family | back to summary |
|---|---|
| public @NotNull SQLDialect family() The
This method is a convenient way of accessing
| |
| fetch | back to summary |
|---|---|
| public <Z> @NotNull List Deprecated as a consequence of Find records by a given field and a set of values. | |
| fetch | back to summary |
|---|---|
| public <Z> @NotNull List Deprecated as a consequence of Find records by a given field and a set of values.
| |
| fetchOne | back to summary |
|---|---|
| public <Z> P fetchOne(Field<Z> field, Z value) throws DataAccessException
Deprecated as a consequence of Find a unique record by a given field and a value.
| |
| fetchOptional | back to summary |
|---|---|
| public <Z> @NotNull Optional Deprecated as a consequence of Find a unique record by a given field and a value.
| |
| fetchRange | back to summary |
|---|---|
| public <Z> @NotNull List Deprecated as a consequence of Find records by a given field and a range of values.
| |
| findAll | back to summary |
|---|---|
| public @NotNull List Find all records of the underlying table. | |
| findById | back to summary |
|---|---|
| public P findById(T id) throws DataAccessException Find a record of the underlying table by ID.
| |
| findOptionalById | back to summary |
|---|---|
| public @NotNull Optional Find a record of the underlying table by ID. | |
| getId | back to summary |
|---|---|
| public T getId(P object) Extract the ID value from a POJO. | |
| getTable | back to summary |
|---|---|
| public @NotNull Table Get the underlying table.
| |
| getType | back to summary |
|---|---|
| public @NotNull Class Get the underlying POJO type.
| |
| insert | back to summary |
|---|---|
| public void insert(P object) throws DataAccessException Performs an
Depending on various settings, like
| |
| insert | back to summary |
|---|---|
| public void insert(P... objects) throws DataAccessException Performs a batch
Depending on various settings, like
| |
| insert | back to summary |
|---|---|
| public void insert(Collection<P> objects) throws DataAccessException Performs a batch
Depending on various settings, like
| |
| mapper | back to summary |
|---|---|
| public @NotNull RecordMapper Expose the
| |
| merge | back to summary |
|---|---|
| public void merge(P object) throws DataAccessException Performs an | |
| merge | back to summary |
|---|---|
| public void merge(P... objects) throws DataAccessException Performs a batch | |
| merge | back to summary |
|---|---|
| public void merge(Collection<P> objects) throws DataAccessException Performs a batch
| |
| settings | back to summary |
|---|---|
| public @NotNull Settings settings() The settings wrapped by this context.
This method is a convenient way of accessing
| |
| update | back to summary |
|---|---|
| public void update(P object) throws DataAccessException Performs an
Depending on various settings, like
| |
| update | back to summary |
|---|---|
| public void update(P... objects) throws DataAccessException Performs a batch
Depending on various settings, like
| |
| update | back to summary |
|---|---|
| public void update(Collection<P> objects) throws DataAccessException Performs a batch
Depending on various settings, like
| |