DAO.
Unlike many other elements in the jOOQ API, DAO may be used in
the context of Spring, CDI, or EJB lifecycle management. This means that no
methods in the DAO type hierarchy must be made final. See also
https://github.com/jOOQ/
jOOQ/issues/4696 for more details.
| Modifier and Type | Field and Description |
|---|---|
| private Configuration | |
| private RecordMapper | |
| private final Table | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected T | |
| public Configuration | configuration()
Implements org. DAO is
operating.
|
| public long | |
| public DSLContext | |
| public void | delete(P
The POJO to be deleted object)Implements org. DELETE statement for a POJO
|
| public void | delete(P...
The POJOs to be deleted objects)Implements org. DELETE statement for a given set of POJOs.
|
| public void | delete(Collection<P>
The POJOs to be deleted objects)Implements org. DELETE statement for a given set of POJOs.
|
| public void | deleteById(T
The IDs to be deleted ids)Implements org. DELETE statement for a given set of IDs.
|
| public void | deleteById(T...
The IDs to be deleted ids)Implements org. DELETE statement for a given set of IDs.
|
| public void | deleteById(Collection<T>
The IDs to be deleted ids)Implements org. DELETE statement for a given set of IDs.
|
| public SQLDialect | |
| private Condition | |
| private Condition | equal(Field<?>[] pk, Collection<T> ids)
|
| public boolean | exists(P
The POJO whose existence is checked object)Implements org. |
| public boolean | existsById(T
The ID whose existence is checked id)Implements org. |
| public SQLDialect | |
| public <Z> List | fetch(Field<Z>
The field to compare values against field, Z... The accepted values values)Implements org.
Deprecated
as a consequence of
Find records by a given field and a set of values.
Field being deprecated.
|
| public <Z> List | fetch(Field<Z>
The field to compare values against field, Collection<? extends Z> The accepted values values)Implements org.
Deprecated
as a consequence of
Find records by a given field and a set of values.
Field being deprecated.
|
| public <Z> P | fetchOne(Field<Z>
The field to compare value against field, Z The accepted value value)Implements org.
Deprecated
as a consequence of
Find a unique record by a given field and a value.
Field being deprecated.
|
| public <Z> Optional | fetchOptional(Field<Z>
The field to compare value against field, Z The accepted value value)Implements org.
Deprecated
as a consequence of
Find a unique record by a given field and a value.
Field being deprecated.
|
| public <Z> List | fetchRange(Field<Z>
The 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.Implements org.
Deprecated
as a consequence of
Find records by a given field and a range of values.
Field being deprecated.
|
| public List | |
| public P | findById(T
The ID of a record in the underlying table id)Implements org. |
| public Optional | findOptionalById(T
The ID of a record in the underlying table id)Implements org. |
| public Table | |
| public Class | |
| public void | insert(P
The POJO to be inserted object)Implements org. INSERT statement for a given POJO.
|
| public void | insert(P...
The POJOs to be inserted objects)Implements org. INSERT statement for a given set of POJOs.
|
| public void | insert(Collection<P>
The POJOs to be inserted objects)Implements org. INSERT statement for a given set of POJOs.
|
| public RecordMapper | mapper()
Implements org. RecordMapper that is used internally by this
DAO to map from records of type R to POJOs of
type P.
|
| public void | merge(P
The POJO to be merged object)Implements org. MERGE statement for a given POJO.
|
| public void | merge(P...
The POJOs to be merged objects)Implements org. MERGE statement for a given set of POJOs.
|
| public void | merge(Collection<P>
The POJOs to be merged objects)Implements org. MERGE statement for a given set of POJOs.
|
| private Field | |
| private RecordListenerProvider[] | |
| private List | |
| private final boolean | |
| public void | |
| public Settings | |
| public void | update(P
The POJO to be updated object)Implements org. UPDATE statement for a given POJO.
|
| public void | update(P...
The POJOs to be updated objects)Implements org. UPDATE statement for a given set of POJOs.
|
| public void | update(Collection<P>
The POJOs to be updated objects)Implements org. UPDATE statement for a given set of POJOs.
|
| configuration | back to summary |
|---|---|
| private Configuration configuration | |
| mapper | back to summary |
|---|---|
| private RecordMapper<R, P> mapper | |
| table | back to summary |
|---|---|
| private final Table<R> table | |
| type | back to summary |
|---|---|
| private final Class<P> type | |
| DAOImpl | back to summary |
|---|---|
| protected DAOImpl(Table<R> table, Class<P> type) | |
| DAOImpl | back to summary |
|---|---|
| protected DAOImpl(Table<R> table, Class<P> type, Configuration configuration) | |
| compositeKeyRecord | back to summary |
|---|---|
protected T compositeKeyRecord(Object... values)
| |
| configuration | back to summary |
|---|---|
| public Configuration configuration() Implements org. Doc from org. Expose the configuration in whose context this
| |
| count | back to summary |
|---|---|
| public long count() Implements org. Doc from org. Count all records of the underlying table.
| |
| ctx | back to summary |
|---|---|
| public DSLContext ctx() | |
| delete | back to summary |
|---|---|
| public void delete(P object) Implements org. Doc from org. Performs a
| |
| delete | back to summary |
|---|---|
| public void delete(P... objects) Implements org. Doc from org. Performs a
| |
| delete | back to summary |
|---|---|
| public void delete(Collection<P> objects) Implements org. Doc from org. Performs a
| |
| deleteById | back to summary |
|---|---|
| public void deleteById(T ids) Implements org. Doc from org. Performs a
| |
| deleteById | back to summary |
|---|---|
| public void deleteById(T... ids) Implements org. Doc from org. Performs a
| |
| deleteById | back to summary |
|---|---|
| public void deleteById(Collection<T> ids) Implements org. Doc from org. Performs a
| |
| dialect | back to summary |
|---|---|
| public SQLDialect dialect() Implements org. Doc from org. The
This method is a convenient way of accessing
| |
| equal | back to summary |
|---|---|
| private Condition equal(Field<?>[] pk, T id)
Deprecated as a consequence of
| |
| equal | back to summary |
|---|---|
| private Condition equal(Field<?>[] pk, Collection<T> ids)
Deprecated as a consequence of
| |
| exists | back to summary |
|---|---|
| public boolean exists(P object) Implements org. Doc from org. Checks if a given POJO exists.
| |
| existsById | back to summary |
|---|---|
| public boolean existsById(T id) Implements org. Doc from org. Checks if a given ID exists.
| |
| family | back to summary |
|---|---|
| public SQLDialect family() Implements org. Doc from org. The
This method is a convenient way of accessing
| |
| fetch | back to summary |
|---|---|
| public <Z> List Implements org. Doc from org. Deprecated as a consequence of Find records by a given field and a set of values.
| |
| fetch | back to summary |
|---|---|
| public <Z> List Implements org. Doc from org. 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) Implements org. Doc from org. Deprecated as a consequence of Find a unique record by a given field and a value. | |
| fetchOptional | back to summary |
|---|---|
| public <Z> Optional Implements org. Doc from org. Deprecated as a consequence of Find a unique record by a given field and a value. | |
| fetchRange | back to summary |
|---|---|
| public <Z> List Implements org. Doc from org. Deprecated as a consequence of Find records by a given field and a range of values.
| |
| findAll | back to summary |
|---|---|
| public List Implements org. Doc from org. Find all records of the underlying table. | |
| findById | back to summary |
|---|---|
| public P findById(T id) Implements org. Doc from org. Find a record of the underlying table by ID.
| |
| findOptionalById | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Find a record of the underlying table by ID. | |
| getTable | back to summary |
|---|---|
| public Table Implements org. Doc from org. Get the underlying table.
| |
| getType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Get the underlying POJO type.
| |
| insert | back to summary |
|---|---|
| public void insert(P object) Implements org. Doc from org. Performs an
Depending on various settings, like
| |
| insert | back to summary |
|---|---|
| public void insert(P... objects) Implements org. Doc from org. Performs a batch
Depending on various settings, like
| |
| insert | back to summary |
|---|---|
| public void insert(Collection<P> objects) Implements org. Doc from org. Performs a batch
Depending on various settings, like
| |
| mapper | back to summary |
|---|---|
| public RecordMapper Implements org. Doc from org. Expose the Subclasses may override this method to provide custom implementations.
| |
| merge | back to summary |
|---|---|
| public void merge(P object) Implements org. Doc from org. Performs an
| |
| merge | back to summary |
|---|---|
| public void merge(P... objects) Implements org. Doc from org. Performs a batch
| |
| merge | back to summary |
|---|---|
| public void merge(Collection<P> objects) Implements org. Doc from org. Performs a batch
| |
| pk | back to summary |
|---|---|
| private Field Deprecated as a consequence of | |
| providers | back to summary |
|---|---|
| private RecordListenerProvider[] providers(final RecordListenerProvider[] providers, final IdentityHashMap<R, Object> mapping) | |
| records | back to summary |
|---|---|
| private List | |
| returnAnyOnUpdatableRecord | back to summary |
|---|---|
| private final boolean returnAnyOnUpdatableRecord() | |
| setConfiguration | back to summary |
|---|---|
| public void setConfiguration(Configuration configuration) Inject a configuration.
This method is maintained to be able to configure a | |
| settings | back to summary |
|---|---|
| public Settings settings() Implements org. Doc from org. The settings wrapped by this context.
This method is a convenient way of accessing
| |
| update | back to summary |
|---|---|
| public void update(P object) Implements org. Doc from org. Performs an
Depending on various settings, like
| |
| update | back to summary |
|---|---|
| public void update(P... objects) Implements org. Doc from org. Performs a batch
Depending on various settings, like
| |
| update | back to summary |
|---|---|
| public void update(Collection<P> objects) Implements org. Doc from org. Performs a batch
Depending on various settings, like
| |