Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- additionalValues() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns the value of the
additionalValues
record component. - ALL_EXECUTION_POINTCUT - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a pointcut expression for all method executions.
- ANNOTATION_POINTCUT - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a pointcut expression for an annotation.
- AspectUtil - Interface in dev.daymor.sakuraboot.aop
-
The interface that all aspect class can use.
B
- BadRequestException - Exception Class in dev.daymor.sakuraboot.exceptions
-
Represents an exception indicating a bad request from the client.
- BadRequestException(String) - Constructor for exception class dev.daymor.sakuraboot.exceptions.BadRequestException
-
Constructs a new BadRequestException with the given message.
- BadRequestException(String, Throwable) - Constructor for exception class dev.daymor.sakuraboot.exceptions.BadRequestException
-
Constructs a new BadRequestException with the given message.
C
- CACHE_ORDER - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is used to specify the order in which the cache aspect should be executed in relation to other aspects.
- ClassInfo(Class<?>, String[], ReflectionUtils.ClassInfo[]) - Constructor for record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Creates an instance of a
ClassInfo
record class. - clazz() - Method in record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Returns the value of the
clazz
record component. - controllerPackage() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns the value of the
controllerPackage
record component.
D
- DataPresentation<I> - Interface in dev.daymor.sakuraboot
-
The basic interface for every data exposed to the presentation layer.
- DataPresentation.FullData - Interface in dev.daymor.sakuraboot
-
A marker interface that can be used to represent a full data object.
- DataPresentation.PartialData - Interface in dev.daymor.sakuraboot
-
A marker interface that can be used to represent a partial data object.
- description() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns the value of the
description
record component. - dev.daymor.sakuraboot - package dev.daymor.sakuraboot
-
The package for core class.
- dev.daymor.sakuraboot.aop - package dev.daymor.sakuraboot.aop
-
The package for aspect class.
- dev.daymor.sakuraboot.configuration - package dev.daymor.sakuraboot.configuration
-
The package for global configuration class.
- dev.daymor.sakuraboot.exceptions - package dev.daymor.sakuraboot.exceptions
-
The package for exception class.
- dev.daymor.sakuraboot.exceptions.configuration - package dev.daymor.sakuraboot.exceptions.configuration
-
The package for exception configuration class.
- dev.daymor.sakuraboot.util - package dev.daymor.sakuraboot.util
-
The package for util class.
- doWithIdRelationFields(Object, BiConsumer<Field, Object>, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to perform an action to all the ID of the relationship fields in an entity or a DTO object.
- doWithIdRelationFields(Object, BiConsumer<Field, Object>, BiConsumer<Field, Collection<?>>, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to perform an action to all the ID of the relationship fields in an entity or a DTO object.
- doWithRelationFields(Object, BiConsumer<Field, Object>, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to perform an action to all the relationship fields in an entity or a DTO object.
- doWithRelationFields(Object, BiConsumer<Field, Object>, BiConsumer<Field, Collection<?>>, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to perform an action to all the relationship fields in an entity or a DTO object.
- dtoPackage() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns the value of the
dtoPackage
record component.
E
- entityPackage() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns the value of the
entityPackage
record component. - equals(Object) - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.daymor.sakuraboot.exceptions.configuration.ExceptionConfiguration
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Indicates whether some other object is "equal to" this one.
- ErrorResponse - Record Class in dev.daymor.sakuraboot.exceptions
-
Represents an error response class.
- ErrorResponse(int, Instant, String, String, Map<String, Object>, String) - Constructor for record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Creates an instance of a
ErrorResponse
record class. - ExceptionConfiguration - Record Class in dev.daymor.sakuraboot.exceptions.configuration
-
Java class for exception configuration.
- ExceptionConfiguration(boolean) - Constructor for record class dev.daymor.sakuraboot.exceptions.configuration.ExceptionConfiguration
-
Creates an instance of a
ExceptionConfiguration
record class.
F
- findGenericTypeFromInterface(Class<?>, String) - Method in class dev.daymor.sakuraboot.util.ReflectionUtils
-
Find bean class from interface.
- findGenericTypeFromInterface(Class<?>, String, int) - Method in class dev.daymor.sakuraboot.util.ReflectionUtils
-
Find bean class from interface.
- FIRST_AND_SECOND_ARGS_POINTCUT - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a pointcut expression for the first and second arguments in a method execution.
- FIRST_ARG_POINTCUT - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a pointcut expression for the first argument in a method execution.
G
- getAdditionalValues(Exception, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Gets additional values to be included in the error response based on the provided exception and request.
- getAnnotationValue(Annotation, String) - Static method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
Retrieves the value of the specified annotation attribute.
- getClassInfo(Type, ReflectionUtils.ClassInfo) - Method in class dev.daymor.sakuraboot.util.ReflectionUtils
-
Get the actual class from the type.
- getEntityClass() - Method in interface dev.daymor.sakuraboot.SuperService
-
Retrieves the class of the DataPresentation associated with this service.
- getEntityFieldFromDto(Member, Class<?>, String, String) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to get the entity field from a DTO field.
- getField(Class<?>, String) - Method in class dev.daymor.sakuraboot.util.ReflectionUtils
-
Get a field from a class and make it accessible.
- getId() - Method in interface dev.daymor.sakuraboot.DataPresentation
-
The getter for the id that each DataPresentation need to have.
- getListFieldsForToString(Object, List<Pair<String, Object>>, Collection<String>) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
Helper method to get the list of fields for toString.
- getMappedByRelationClass(Class<?>) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to get the class of all the relationship fields in an entity with mappedBy attribute in the mapping annotation.
- getRelationalType(Field, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to get the class of a relationship field.
- getRelationClass(Class<?>) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to get the class of all the relationship fields in an entity.
- getRepository() - Method in interface dev.daymor.sakuraboot.SuperService
-
Give the repository use by the service.
- getService() - Method in interface dev.daymor.sakuraboot.SuperController
-
Returns the
SuperService
associated with thisSuperController
. - GlobalConfiguration - Class in dev.daymor.sakuraboot.configuration
-
The global configuration class for Sakura Boot.
- GlobalConfiguration() - Constructor for class dev.daymor.sakuraboot.configuration.GlobalConfiguration
- GlobalSpecification - Record Class in dev.daymor.sakuraboot.configuration
-
Java class for global configuration.
- GlobalSpecification(String, String, String, String, String) - Constructor for record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Creates an instance of a
GlobalSpecification
record class.
H
- handleConstraintViolation(RuntimeException, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles ConstraintViolationException, DataIntegrityViolationException and returns an appropriate error response.
- handleException(Exception, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles generic exceptions with the provided status code and message.
- handleException(Exception, HttpHeaders, HttpStatusCode, WebRequest, String) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles generic exceptions with the provided status code and message.
- handleException(Exception, HttpHeaders, HttpStatusCode, WebRequest, String, Map<String, Object>) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles generic exceptions with the provided status code and custom message.
- handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles HttpMediaTypeNotSupportedException and returns an appropriate error response.
- handleHttpMessageNotReadable(HttpMessageNotReadableException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles HttpMessageNotReadableException and returns an appropriate error response.
- handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles HttpRequestMethodNotSupportedException and returns an appropriate error response.
- handleMethodArgumentNotValid(MethodArgumentNotValidException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles MethodArgumentNotValidException and returns an appropriate error response.
- handleMissingPathVariable(MissingPathVariableException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles MissingPathVariableException and returns an appropriate error response.
- handleMultipartException(MultipartException, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles MultipartException and returns an appropriate error response.
- handleNoHandlerFoundException(NoHandlerFoundException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles NoHandlerFoundException and returns an appropriate error response.
- handleOtherException(Exception, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles generic Exception and returns an appropriate error response.
- handleSuperException(SuperException, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles SuperException and returns an appropriate error response.
- handleTypeMismatch(TypeMismatchException, HttpHeaders, HttpStatusCode, WebRequest) - Method in class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
-
Handles TypeMismatchException and returns an appropriate error response.
- hashCode() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.daymor.sakuraboot.exceptions.configuration.ExceptionConfiguration
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Returns a hash code value for this object.
- HYPERMEDIA_ORDER - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a constant variable `HYPERMEDIA_ORDER` with a value of 100.
I
- isAnyToManyRelationship(AnnotatedElement) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to check if a field is an any to many relationship in an entity.
- isAnyToOneRelationship(AnnotatedElement) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to check if a field is an any to one relationship in an entity.
- isFieldExists(Class<?>, String) - Method in class dev.daymor.sakuraboot.util.ReflectionUtils
-
Check if a field exists from a class.
- isNotRelationWithMappedBy(AnnotatedElement) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to check if a field is not a relation with mappedBy attribute in the mapping annotation.
- isRelationship(AnnotatedElement) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to check if a field is a relationship in an entity.
- isRelationshipExcludeMappedBy(AnnotatedElement) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to check if a field is a relationship in an entity.
L
- log(String, Logger, JoinPoint, Object, Annotation, Object[]) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
Helper function to log messages for an aspect method.
M
- mapperPackage() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns the value of the
mapperPackage
record component. - MAPPING_ORDER - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is used to specify the order in which the mapping aspect should be executed in relation to other aspects.
- message() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns the value of the
message
record component. - methodCallLog(Logger, JoinPoint, Object, Annotation) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
Helper function to log messages at the beginning of an aspect method.
- methodEndLog(Logger, JoinPoint, Object, Annotation) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
Helper function to log messages at the end of an aspect method.
N
- NotFoundException - Exception Class in dev.daymor.sakuraboot.exceptions
-
Represents an exception indicating that the requested object wasn't found.
- NotFoundException(Class<?>, Object) - Constructor for exception class dev.daymor.sakuraboot.exceptions.NotFoundException
-
Constructs a new NotFoundException with the given object class and expected ID.
- NotFoundException(String) - Constructor for exception class dev.daymor.sakuraboot.exceptions.NotFoundException
-
Constructs a new NotFoundException with the given object name.
- NotFoundException(String, Object) - Constructor for exception class dev.daymor.sakuraboot.exceptions.NotFoundException
-
Constructs a new NotFoundException with the given object name and expected ID.
O
- objectToString(Object) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
Method to print the toString of an object, including container.
- objectToString(Object, int) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
Method to print the toString of an object, including container.
P
- parametersType() - Method in record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Returns the value of the
parametersType
record component. - parametersTypeName() - Method in record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Returns the value of the
parametersTypeName
record component. - parseSpelExpression(String[], Object[], String) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The function parses a SpEL expression using the given parameter names, arguments, and expression string, then returns the result as an Object.
- parseSpelExpression(String[], Object[], String, Class<T>) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
This function parses a SpEL expression using the given parameter names, arguments, and expression string, then returns the result of the expression as the specified return type.
- parseSpelExpressionForCollection(String[], Object[], String, int) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The function parses a SpEL expression using the given parameter names, arguments, and expression string, then returns the result at the specified index as an Object.
- parseSpelExpressionForCollection(String[], Object[], String, int, Class<T>) - Method in interface dev.daymor.sakuraboot.aop.AspectUtil
-
This function parses a SpEL expression using the given parameter names, arguments, and expression string, then returns the result at the specified index as the specified return type.
R
- ReflectionUtils - Class in dev.daymor.sakuraboot.util
-
Utility class for reflection.
- ReflectionUtils() - Constructor for class dev.daymor.sakuraboot.util.ReflectionUtils
- ReflectionUtils.ClassInfo - Record Class in dev.daymor.sakuraboot.util
-
Class information with the actual class and parameters type.
- RELATIONSHIP_ORDER - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is used to specify the order in which the relationship aspect should be executed in relation to other aspects.
- RelationshipUtils - Class in dev.daymor.sakuraboot.util
-
Utility class for relationship in entity or DTO.
- RelationshipUtils() - Constructor for class dev.daymor.sakuraboot.util.RelationshipUtils
S
- SAVE_RELATIONSHIP_ORDER - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is used to specify the order in which the save relationship aspect should be executed in relation to other aspects.
- servicePackage() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns the value of the
servicePackage
record component. - showStackTrace() - Method in record class dev.daymor.sakuraboot.exceptions.configuration.ExceptionConfiguration
-
Returns the value of the
showStackTrace
record component. - stackTrace() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns the value of the
stackTrace
record component. - status() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns the value of the
status
record component. - SuperController<E,
I> - Interface in dev.daymor.sakuraboot -
The base controller interface.
- SuperControllerExceptionHandler - Class in dev.daymor.sakuraboot.exceptions
-
Global exception handler for the REST controller.
- SuperControllerExceptionHandler() - Constructor for class dev.daymor.sakuraboot.exceptions.SuperControllerExceptionHandler
- SuperException - Exception Class in dev.daymor.sakuraboot.exceptions
-
Represents a super exception class.
- SuperException(String, HttpStatusCode) - Constructor for exception class dev.daymor.sakuraboot.exceptions.SuperException
-
Constructs a new SuperException with the given message and HTTP status.
- SuperException(String, HttpStatusCode, Throwable) - Constructor for exception class dev.daymor.sakuraboot.exceptions.SuperException
-
Constructs a new SuperException with the given message and HTTP status.
- SuperRepository<E,
I> - Interface in dev.daymor.sakuraboot -
The base repository interface.
- SuperService<E,
I> - Interface in dev.daymor.sakuraboot -
The base service interface.
T
- TARGET_POINTCUT - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a pointcut expression for the target object in an aspect.
- timestamp() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns the value of the
timestamp
record component. - toString() - Method in record class dev.daymor.sakuraboot.configuration.GlobalSpecification
-
Returns a string representation of this record class.
- toString() - Method in record class dev.daymor.sakuraboot.exceptions.configuration.ExceptionConfiguration
-
Returns a string representation of this record class.
- toString() - Method in record class dev.daymor.sakuraboot.exceptions.ErrorResponse
-
Returns a string representation of this record class.
- toString() - Method in record class dev.daymor.sakuraboot.util.ReflectionUtils.ClassInfo
-
Returns a string representation of this record class.
- toString(String, Collection<Pair<String, Object>>) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
This method help print nice toString for an object and remove the null fields.
- toString(String, Collection<Pair<String, Object>>, int) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
This method help print nice toString for an object and remove the null fields.
- toStringPrintNullFields(String, Collection<Pair<String, Object>>) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
This method help print nice toString for an object and keep the null fields.
- toStringPrintNullFields(String, Collection<Pair<String, Object>>, int) - Method in class dev.daymor.sakuraboot.util.ToStringUtils
-
This method help print nice toString for an object and keep the null fields.
- ToStringUtils - Class in dev.daymor.sakuraboot.util
-
Util class for toString methods.
- ToStringUtils() - Constructor for class dev.daymor.sakuraboot.util.ToStringUtils
- TYPE_ANNOTATION_POINTCUT - Static variable in interface dev.daymor.sakuraboot.aop.AspectUtil
-
The value of this variable is defining a pointcut expression for a type annotation.
U
- updateRelationFields(Object, BiFunction<Field, Object, Object>, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to update the value to all the relationship fields in an entity or a DTO object.
- updateRelationFields(Object, BiFunction<Field, Object, Object>, BiFunction<Field, Collection<?>, Collection<?>>, GlobalSpecification) - Method in class dev.daymor.sakuraboot.util.RelationshipUtils
-
Util method to update the value to all the relationship fields in an entity or a DTO object.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form