Index
All Classes and Interfaces|All Packages|Serialized Form
C
- capitalize(String) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Commons
-
Capitalizes the first character of the provided string.
- cast(Object) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Commons
-
Convenience method to cast with a generic type.
- columnNameOf(Field) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the column name representation of a field.
- columnNameOrNull(Field) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the column name representation of a field or null if the persistent property does not exist.
- Commons - Class in io.github.joselion.springr2dbcrelationships.helpers
-
Common helpers.
- context() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Returns the value of the
context
record component. - context() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Returns the value of the
context
record component. - context() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Returns the value of the
context
record component. - context() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Returns the value of the
context
record component. - context() - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the Spring application context.
- context() - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
-
Returns the value of the
context
record component. - createdColumnOf(Class<?>) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns an
Optional
containing the auditable column used to mark the date of creation or empty. - createdColumnOf(S) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns an
Optional
containing the auditable column used to mark the date of creation or empty.
D
- deleteOrphans() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Whether "orphan" entities are deleted or not.
- domainFor(Class<S>) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the actual domain of an entity which may or may not be projected by another type.
E
- entity() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Returns the value of the
entity
record component. - entity() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Returns the value of the
entity
record component. - entity() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Returns the value of the
entity
record component. - entity() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Returns the value of the
entity
record component. - entity() - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the entity where the annotated field is being processed.
- equals(Object) - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
-
Indicates whether some other object is "equal to" this one.
F
- foreignKey() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToOne
-
Specifies the name of the "foreign key" column in the current entity's table.
G
- getter(Object, Field) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Finds and invokes the getter of a field in the provided target.
- getter(Object, Method) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Finds and invokes the getter of a field in the provided target.
- getter(Object, String) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Finds and invokes the getter of a field in the provided target.
- getter(Field) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Curried version of
Reflect.getter(Object, Field)
overload. - getter(String) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Curried version of
Reflect.getter(Object, String)
overload.
H
- hashCode() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
-
Returns a hash code value for this object.
I
- idColumnOf(Class<?>) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the primary key column name of an entity type.
- idValueOf(Object) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the primary key value of an entity if exists, otherwise
null
. - inferForeignField(String) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Tries to infer the foreign key field in the current entity type.
- inferForeignField(String, Class<?>) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Tries to infer the foreign key field in the specified entity type.
- innerTypeOf(Field) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Returns the first inner type of a field's type.
- io.github.joselion.springr2dbcrelationships - package io.github.joselion.springr2dbcrelationships
-
This package is checked for
null
by the following annotations: org.eclipse.jdt.annotation.NonNullByDefault - io.github.joselion.springr2dbcrelationships.annotations - package io.github.joselion.springr2dbcrelationships.annotations
-
This package is checked for
null
by the following annotations: org.eclipse.jdt.annotation.NonNullByDefault - io.github.joselion.springr2dbcrelationships.exceptions - package io.github.joselion.springr2dbcrelationships.exceptions
-
This package is checked for
null
by the following annotations: org.eclipse.jdt.annotation.NonNullByDefault - io.github.joselion.springr2dbcrelationships.helpers - package io.github.joselion.springr2dbcrelationships.helpers
-
This package is checked for
null
by the following annotations: org.eclipse.jdt.annotation.NonNullByDefault - io.github.joselion.springr2dbcrelationships.processors - package io.github.joselion.springr2dbcrelationships.processors
-
This package is checked for
null
by the following annotations: org.eclipse.jdt.annotation.NonNullByDefault - isBackReference(OneToOne, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Whether the annotated field is in the backreference side of the relationship or not.
- isBackReference(Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Curried version of
OneToOneProcessor.isBackReference(OneToOne, Field)
method. - isNew(Object) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns
true
if the entity is considered to be new,false
otherwise.
J
- joinTable() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Specifies the name of the join table responsible for the many-to-many relationship between two tables.
K
- keepOrphan() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToOne
-
Whether the orphan entity is preserved or not.
- keepOrphans() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToMany
-
Whether orphan entities are preserved or not.
L
- linkedBy() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Specifies the name of the "foreign key" column that maps the join table with the linked table.
- linkOnly() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Whether the associated entities are only linked to the join table or not.
- linkOnly() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToMany
-
Whether children entities are only linked to the parent or not.
M
- ManyToMany - Annotation Interface in io.github.joselion.springr2dbcrelationships.annotations
-
Marks a field to have a many-to-many relationship.
- ManyToManyProcessor - Record Class in io.github.joselion.springr2dbcrelationships.processors
-
The
OneToMany
annotation processor. - ManyToManyProcessor(R2dbcEntityTemplate, Object, SqlIdentifier, ApplicationContext) - Constructor for record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Creates an instance of a
ManyToManyProcessor
record class. - ManyToOne - Annotation Interface in io.github.joselion.springr2dbcrelationships.annotations
-
Marks a field to have a many-to-one relationship.
- ManyToOneProcessor - Record Class in io.github.joselion.springr2dbcrelationships.processors
-
The
ManyToOne
annotation processor. - ManyToOneProcessor(R2dbcEntityTemplate, Object, SqlIdentifier, ApplicationContext) - Constructor for record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Creates an instance of a
ManyToOneProcessor
record class. - mappedBy() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Specifies the name of the "foreign key" column that maps the annotated field's entity with the join table.
- mappedBy() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToMany
-
Specifies the name of the "foreign key" column on the child table.
- mappedBy() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToOne
-
Specifies the name of the "foreign key" column in the associated table.
O
- of(String) - Static method in exception class io.github.joselion.springr2dbcrelationships.exceptions.ReflectException
-
Creates a reflect exception with a detail message.
- of(String) - Static method in exception class io.github.joselion.springr2dbcrelationships.exceptions.RelationshipException
-
Creates a new relationship exception with a detail message.
- of(Throwable) - Static method in exception class io.github.joselion.springr2dbcrelationships.exceptions.ReflectException
-
Creates a reflect exception with the specified cause.
- of(Throwable) - Static method in exception class io.github.joselion.springr2dbcrelationships.exceptions.RelationshipException
-
Creates a new relationship exception with the specified cause.
- onAfterConvert(T, SqlIdentifier) - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
- onAfterSave(T, OutboundRow, SqlIdentifier) - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
- onBeforeConvert(T, SqlIdentifier) - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
- OneToMany - Annotation Interface in io.github.joselion.springr2dbcrelationships.annotations
-
Marks a field to have a one-to-many relationship.
- OneToManyProcessor - Record Class in io.github.joselion.springr2dbcrelationships.processors
-
The
OneToMany
annotation processor. - OneToManyProcessor(R2dbcEntityTemplate, Object, SqlIdentifier, ApplicationContext) - Constructor for record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Creates an instance of a
OneToManyProcessor
record class. - OneToOne - Annotation Interface in io.github.joselion.springr2dbcrelationships.annotations
-
Marks a field to have a one-to-one relationship.
- OneToOneProcessor - Record Class in io.github.joselion.springr2dbcrelationships.processors
-
The
OneToOne
annotation processor. - OneToOneProcessor(R2dbcEntityTemplate, Object, SqlIdentifier, ApplicationContext) - Constructor for record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Creates an instance of a
OneToOneProcessor
record class.
P
- persist() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToOne
-
Whether the associated entity persists or not.
- persist(ManyToMany, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
- persist(ManyToOne, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
- persist(OneToMany, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
- persist(OneToOne, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
- persist(Field) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Curried version of
Processable.persist(Annotation, Field)
method. - persist(T, Field) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Persists the value of a field annotated with a relationship annotation.
- populate(ManyToMany, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
- populate(ManyToOne, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
- populate(OneToMany, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
- populate(OneToOne, Field) - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
- populate(Field) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Curried version of
Processable.populate(Annotation, Field)
method. - populate(T, Field) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns a
Mono
containing the value used to populate a field annotated with a relationship annotation. - Processable<T,
U> - Interface in io.github.joselion.springr2dbcrelationships.processors -
Describes how a relationship annotation is processed.
- ProjectionOf - Annotation Interface in io.github.joselion.springr2dbcrelationships.annotations
-
Marks a type as a projection of an entity.
R
- R2dbcRelationshipsAutoConfiguration - Class in io.github.joselion.springr2dbcrelationships
-
R2DBC Relationships auto-configuration.
- R2dbcRelationshipsAutoConfiguration() - Constructor for class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsAutoConfiguration
-
Default configuration constructor.
- R2dbcRelationshipsCallbacks<T> - Record Class in io.github.joselion.springr2dbcrelationships
-
Implementation of all the callback that process the R2DBC Relationship annotations.
- R2dbcRelationshipsCallbacks(R2dbcEntityTemplate, ApplicationContext) - Constructor for record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
-
Creates an instance of a
R2dbcRelationshipsCallbacks
record class. - readonly() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Whether the associated entities are read-only or not, meaning they are never persisted or linked.
- readonly() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToMany
-
Whether the children entities are read-only or not, meaning they are never persisted or linked to the parent.
- readonly() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToOne
-
Whether the associated entity are read-only or not, meaning it's never persisted or linked.
- Reflect - Class in io.github.joselion.springr2dbcrelationships.helpers
-
Reflection helpers.
- ReflectException - Exception Class in io.github.joselion.springr2dbcrelationships.exceptions
-
Runtime exception thrown when something goes wrong with a
Reflect
helper process. - RelationshipException - Exception Class in io.github.joselion.springr2dbcrelationships.exceptions
-
Runtime exception thrown when something goes wrong on a relationship process.
- relationshipsCallbacks(R2dbcEntityTemplate, ApplicationContext) - Method in class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsAutoConfiguration
-
Creates the
R2dbcRelationshipsCallbacks
bean.
S
- save(S) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Inserts an entity when it's new or update it otherwise.
- sortBy() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Specifies the column used to sort the populated associated entities.
- sortBy() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToMany
-
Specifies the column used to sort the populated children entities.
- sortIn() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ManyToMany
-
Specifies in which direction the populated children entities are sorted.
- sortIn() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.OneToMany
-
Specifies in which direction the populated children entities are sorted.
T
- table() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Returns the value of the
table
record component. - table() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Returns the value of the
table
record component. - table() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Returns the value of the
table
record component. - table() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Returns the value of the
table
record component. - table() - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the SQL identifier of the table associated with the entity where the annotated field is being processed.
- tableIdentifierOf(Class<?>) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the table
SqlIdentifier
of an entity type. - tableNameOf(Class<?>) - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the table name of an entity type.
- template() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Returns the value of the
template
record component. - template() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Returns the value of the
template
record component. - template() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Returns the value of the
template
record component. - template() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Returns the value of the
template
record component. - template() - Method in interface io.github.joselion.springr2dbcrelationships.processors.Processable
-
Returns the r2dbc entity template injected to the processor.
- template() - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
-
Returns the value of the
template
record component. - toCamelCase(String) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Commons
-
Transforms a string to camel-case format.
- toSnakeCase(String) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Commons
-
Transforms a string to snake-case format.
- toString() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToManyProcessor
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.joselion.springr2dbcrelationships.processors.ManyToOneProcessor
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToManyProcessor
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.joselion.springr2dbcrelationships.processors.OneToOneProcessor
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.joselion.springr2dbcrelationships.R2dbcRelationshipsCallbacks
-
Returns a string representation of this record class.
U
- uncapitalize(String) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Commons
-
Uncapitalizes the first character of the provided string.
- update(Field, Object) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Curried version of
Reflect.update(Object, Field, Object)
overload. - update(String, Object) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Curried version of
Reflect.update(Object, String, Object)
overload. - update(T, Field, Object) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Updates a field using either a wither or a setter method.
- update(T, String, Object) - Static method in class io.github.joselion.springr2dbcrelationships.helpers.Reflect
-
Updates a field using either a wither or a setter method.
V
- value() - Element in annotation interface io.github.joselion.springr2dbcrelationships.annotations.ProjectionOf
-
The the entity type of the projection.
All Classes and Interfaces|All Packages|Serialized Form