Uses of Class
com.github.collinalpert.java2db.entities.BaseEntity
-
-
-
Uses of BaseEntity in com.github.collinalpert.java2db.entities
Subclasses of BaseEntity in com.github.collinalpert.java2db.entities Modifier and Type Class Description classBaseCodeAndDescriptionDeletableEntityDescribes an entity that has an id, an isDeleted flag, a code and a description.classBaseCodeAndDescriptionEntityDescribes an entity that has an id, a code and a description.classBaseDeletableEntityDescribes an entity that has an id and an isDeleted flag. -
Uses of BaseEntity in com.github.collinalpert.java2db.mappers
Classes in com.github.collinalpert.java2db.mappers with type parameters of type BaseEntity Modifier and Type Class Description classBaseMapper<E extends BaseEntity>Default mapper for converting aResultSetto the respective Java entity.interfaceMappable<T extends BaseEntity>Methods in com.github.collinalpert.java2db.mappers that return BaseEntity Modifier and Type Method Description E[]BaseMapper. mapToArray(java.sql.ResultSet set, java.util.Map<java.lang.String,java.lang.String> aliases)Maps aResultSetwith multiple rows to an array of Java entities.T[]Mappable. mapToArray(java.sql.ResultSet set, java.util.Map<java.lang.String,java.lang.String> aliases)Maps aResultSetto an array. -
Uses of BaseEntity in com.github.collinalpert.java2db.modules
Method parameters in com.github.collinalpert.java2db.modules with type arguments of type BaseEntity Modifier and Type Method Description java.util.List<TableColumnReference>FieldModule. getAllFields(java.lang.Class<? extends BaseEntity> instanceClass)Gets all the fields and the fields of foreign key objects in this entity.java.util.List<java.lang.reflect.Field>FieldModule. getEntityFields(java.lang.Class<? extends BaseEntity> instanceClass)java.util.List<java.lang.reflect.Field>FieldModule. getEntityFields(java.lang.Class<? extends BaseEntity> instanceClass, boolean includeForeignKeys)java.util.List<java.lang.reflect.Field>FieldModule. getEntityFields(java.lang.Class<? extends BaseEntity> instanceClass, java.lang.Class<?> delimiter) -
Uses of BaseEntity in com.github.collinalpert.java2db.pagination
Classes in com.github.collinalpert.java2db.pagination with type parameters of type BaseEntity Modifier and Type Class Description classCacheablePaginationResult<T extends BaseEntity>Extended class that adds caching functionality to the pagination implementation.classPaginationResult<T extends BaseEntity>Class for a simple pagination implementation.Methods in com.github.collinalpert.java2db.pagination that return BaseEntity Modifier and Type Method Description T[]CacheablePaginationResult. getPageAsArray(int number)Gets a page by its identifier, or rather its number, an returns it as an array.T[]PaginationResult. getPageAsArray(int number)Retrieves a specific page represented by an array. -
Uses of BaseEntity in com.github.collinalpert.java2db.queries
Classes in com.github.collinalpert.java2db.queries with type parameters of type BaseEntity Modifier and Type Class Description classEntityProjectionQuery<E extends BaseEntity,R>A query which represents a projection from anEntityQueryto a single column on the database.classEntityQuery<E extends BaseEntity>A class representing a DQL statement with different options, including where clauses, order by clauses and limits.classSingleEntityProjectionQuery<E extends BaseEntity,R>classSingleEntityQuery<E extends BaseEntity>Methods in com.github.collinalpert.java2db.queries with type parameters of type BaseEntity Modifier and Type Method Description static <E extends BaseEntity>
voidQueryConstraints. addConstraint(java.lang.Class<E> clazz, com.github.collinalpert.lambda2sql.functions.SqlPredicate<E> predicate)Adds a query constraint to a query made with a certain entity.static <E extends BaseEntity>
com.github.collinalpert.lambda2sql.functions.SqlPredicate<E>QueryConstraints. getConstraints(java.lang.Class<E> clazz)Retrieves a compositionSqlPredicatefor all constraints that have been added for a class or any superclass of it.Methods in com.github.collinalpert.java2db.queries that return BaseEntity Modifier and Type Method Description E[]EntityQuery. toArray()Executes a new query and returns the result as an array.Method parameters in com.github.collinalpert.java2db.queries with type arguments of type BaseEntity Modifier and Type Method Description static voidQueryConstraints. removeConstraints(java.lang.Class<? extends BaseEntity> clazz)Removes all query constraints which were set for a specific entity. -
Uses of BaseEntity in com.github.collinalpert.java2db.queries.async
Classes in com.github.collinalpert.java2db.queries.async with type parameters of type BaseEntity Modifier and Type Class Description classAsyncEntityProjectionQuery<E extends BaseEntity,R>classAsyncEntityQuery<E extends BaseEntity>classAsyncSingleEntityProjectionQuery<E extends BaseEntity,R>classAsyncSingleEntityQuery<E extends BaseEntity> -
Uses of BaseEntity in com.github.collinalpert.java2db.services
Classes in com.github.collinalpert.java2db.services with type parameters of type BaseEntity Modifier and Type Class Description classAsyncBaseService<T extends BaseEntity>This class extends the functionality of a service class by adding support for asynchronous CRUD operations.classBaseService<T extends BaseEntity>Class that provides base functionality for all service classes.Methods in com.github.collinalpert.java2db.services with parameters of type BaseEntity Modifier and Type Method Description voidBaseService. create(T... instances)Creates a variable amount of entities on the database.java.util.concurrent.CompletableFuture<java.lang.Void>AsyncBaseService. createAsync(java.util.function.Consumer<java.sql.SQLException> exceptionHandling, T... instances)The asynchronous version of theBaseService.create(BaseEntity[])method.java.util.concurrent.CompletableFuture<java.lang.Void>AsyncBaseService. createAsync(T... instances)The asynchronous version of theBaseService.create(BaseEntity[])method without custom exception handling.voidBaseService. delete(T... entities)Deletes multiple entities at once.java.util.concurrent.CompletableFuture<java.lang.Void>AsyncBaseService. deleteAsync(java.util.function.Consumer<java.sql.SQLException> exceptionHandling, T... entities)The asynchronous version of theBaseService.delete(BaseEntity[])method.java.util.concurrent.CompletableFuture<java.lang.Void>AsyncBaseService. deleteAsync(T... entities)The asynchronous version of theBaseService.delete(BaseEntity[])method without custom exception handling.voidBaseService. update(T... instances)Variable argument version which behaves the same as theBaseService.update(List)method.java.util.concurrent.CompletableFuture<java.lang.Void>AsyncBaseService. updateAsync(java.util.function.Consumer<java.sql.SQLException> exceptionHandling, T... instances)The asynchronous version of theBaseService.update(BaseEntity[]).java.util.concurrent.CompletableFuture<java.lang.Void>AsyncBaseService. updateAsync(T... instances)The asynchronous version of theBaseService.update(BaseEntity[])without custom exception handling. -
Uses of BaseEntity in com.github.collinalpert.java2db.utilities
Methods in com.github.collinalpert.java2db.utilities with type parameters of type BaseEntity Modifier and Type Method Description static <E extends BaseEntity>
booleanIoC. isMapperRegistered(java.lang.Class<E> clazz)Checks if a mapper has already been registered.static <E extends BaseEntity>
booleanIoC. isServiceRegistered(java.lang.Class<E> clazz)Checks if a service has already been registered.static <E extends BaseEntity,M extends Mappable<E>>
voidIoC. registerMapper(java.lang.Class<E> clazz, M mapper)Registers an instance of a mapper class.static <E extends BaseEntity,S extends BaseService<E>>
voidIoC. registerService(java.lang.Class<E> clazz, S service)Registers an instance of a service class.static <E extends BaseEntity>
Mappable<E>IoC. resolveMapper(java.lang.Class<E> clazz)Resolves a mapper class.static <E extends BaseEntity>
Mappable<E>IoC. resolveMapper(java.lang.Class<E> clazz, Mappable<E> defaultMapper)Resolves a mapper class.static <E extends BaseEntity,S extends BaseService<E>>
SIoC. resolveServiceByEntity(java.lang.Class<E> clazz)Resolves a service class by the entity it was registered with.static <E extends BaseEntity,S extends BaseService<E>>
SIoC. resolveServiceByEntity(java.lang.Class<E> clazz, S defaultService)Resolves a service class by the entity it was registered with.
-