Index

A B C D E F G H I L M O P Q R S T U V W 
All Classes All Packages

A

addConstraint(Class<E>, SqlPredicate<E>) - Static method in class com.github.collinalpert.java2db.queries.QueryConstraints
Adds a query constraint to a query made with a certain entity.
addElement(T) - Method in class com.github.collinalpert.java2db.modules.ArrayModule
Adds an element to the array.
aliases - Variable in class com.github.collinalpert.java2db.queries.SingleEntityQuery
 
alwaysFalse() - Static method in class com.github.collinalpert.java2db.utilities.FunctionUtils
 
alwaysTrue() - Static method in class com.github.collinalpert.java2db.utilities.FunctionUtils
 
AnnotationInfo() - Constructor for class com.github.collinalpert.java2db.modules.AnnotationModule.AnnotationInfo
 
AnnotationInfo(boolean, A) - Constructor for class com.github.collinalpert.java2db.modules.AnnotationModule.AnnotationInfo
 
AnnotationModule - Class in com.github.collinalpert.java2db.modules
A helper module which provides functionality for getting information from annotations.
AnnotationModule.AnnotationInfo<A extends java.lang.annotation.Annotation> - Class in com.github.collinalpert.java2db.modules
A helper class for determining information of an annotation above a field.
any() - Method in class com.github.collinalpert.java2db.services.BaseService
Checks if a table has at least one row.
any(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Checks if a value matching the condition exists in the table.
anyAsync(SqlPredicate<E>, Consumer<? super Boolean>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.any(SqlPredicate) method.
anyAsync(Consumer<? super Boolean>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.any() method.
ArrayModule<T> - Class in com.github.collinalpert.java2db.modules
A helper module to work with arrays and especially adding elements to them.
ArrayModule(Class<T>, int) - Constructor for class com.github.collinalpert.java2db.modules.ArrayModule
 
ASCENDING - com.github.collinalpert.java2db.queries.OrderTypes
 
AsyncBaseService<E extends BaseEntity> - Class in com.github.collinalpert.java2db.services
This class extends the functionality of a service class by adding support for asynchronous CRUD operations.
AsyncBaseService() - Constructor for class com.github.collinalpert.java2db.services.AsyncBaseService
 
AsyncEntityProjectionQuery<E extends BaseEntity,​R> - Class in com.github.collinalpert.java2db.queries.async
 
AsyncEntityProjectionQuery(SqlFunction<E, R>, EntityQuery<E>) - Constructor for class com.github.collinalpert.java2db.queries.async.AsyncEntityProjectionQuery
 
AsyncEntityQuery<E extends BaseEntity> - Class in com.github.collinalpert.java2db.queries.async
 
AsyncEntityQuery(Class<E>) - Constructor for class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Constructor for creating a DQL statement for a given entity.
AsynchronousOperationException - Exception in com.github.collinalpert.java2db.exceptions
This exception will be thrown when an exception occurs inside of an asynchronous operation and there was no exception handling supplied.
AsynchronousOperationException() - Constructor for exception com.github.collinalpert.java2db.exceptions.AsynchronousOperationException
 
AsynchronousOperationException(Throwable) - Constructor for exception com.github.collinalpert.java2db.exceptions.AsynchronousOperationException
 
AsyncQueryable<T> - Interface in com.github.collinalpert.java2db.queries.async
 
AsyncSingleEntityProjectionQuery<E extends BaseEntity,​R> - Class in com.github.collinalpert.java2db.queries.async
 
AsyncSingleEntityProjectionQuery(SqlFunction<E, R>, SingleEntityQuery<E>) - Constructor for class com.github.collinalpert.java2db.queries.async.AsyncSingleEntityProjectionQuery
 
AsyncSingleEntityQuery<E extends BaseEntity> - Class in com.github.collinalpert.java2db.queries.async
 
AsyncSingleEntityQuery(Class<E>) - Constructor for class com.github.collinalpert.java2db.queries.async.AsyncSingleEntityQuery
 
AsyncSingleQueryable<T> - Interface in com.github.collinalpert.java2db.queries.async
 

B

BaseCodeAndDescriptionDeletableEntity - Class in com.github.collinalpert.java2db.entities
Describes an entity that has an id, an isDeleted flag, a code and a description.
BaseCodeAndDescriptionDeletableEntity() - Constructor for class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionDeletableEntity
 
BaseCodeAndDescriptionDeletableService<T extends BaseCodeAndDescriptionDeletableEntity> - Class in com.github.collinalpert.java2db.services
Describes a service class for an entity which contains an id, an isDeleted flag, a code and a description.
BaseCodeAndDescriptionDeletableService() - Constructor for class com.github.collinalpert.java2db.services.BaseCodeAndDescriptionDeletableService
 
BaseCodeAndDescriptionEntity - Class in com.github.collinalpert.java2db.entities
Describes an entity that has an id, a code and a description.
BaseCodeAndDescriptionEntity() - Constructor for class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionEntity
 
BaseCodeAndDescriptionService<T extends BaseCodeAndDescriptionEntity> - Class in com.github.collinalpert.java2db.services
Describes a service class for an entity which contains an id, a code and a description.
BaseCodeAndDescriptionService() - Constructor for class com.github.collinalpert.java2db.services.BaseCodeAndDescriptionService
 
BaseDeletableEntity - Class in com.github.collinalpert.java2db.entities
Describes an entity that has an id and an isDeleted flag.
BaseDeletableEntity() - Constructor for class com.github.collinalpert.java2db.entities.BaseDeletableEntity
 
BaseDeletableService<T extends BaseDeletableEntity> - Class in com.github.collinalpert.java2db.services
Describes a service class for an entity which contains an id and an isDeleted flag.
BaseDeletableService() - Constructor for class com.github.collinalpert.java2db.services.BaseDeletableService
 
BaseEntity - Class in com.github.collinalpert.java2db.entities
Describes an entity that has an id.
BaseEntity() - Constructor for class com.github.collinalpert.java2db.entities.BaseEntity
 
BaseMapper<E extends BaseEntity> - Class in com.github.collinalpert.java2db.mappers
Default mapper for converting a ResultSet to the respective Java entity.
BaseMapper(Class<E>) - Constructor for class com.github.collinalpert.java2db.mappers.BaseMapper
 
BaseService<E extends BaseEntity> - Class in com.github.collinalpert.java2db.services
Class that provides base functionality for all service classes.
BaseService() - Constructor for class com.github.collinalpert.java2db.services.BaseService
Constructor for the base class of all services.
buildWhereClause(StringBuilder, String) - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Builds the WHERE clause in a select statement.

C

CacheablePaginationResult<T extends BaseEntity> - Class in com.github.collinalpert.java2db.pagination
Extended class that adds caching functionality to the pagination implementation.
CacheablePaginationResult(List<EntityQuery<T>>, Duration) - Constructor for class com.github.collinalpert.java2db.pagination.CacheablePaginationResult
Constructor that allows the creation of a cached pagination.
CachingModule<T> - Class in com.github.collinalpert.java2db.modules
A helper module which contains functionality for basic caching.
CachingModule() - Constructor for class com.github.collinalpert.java2db.modules.CachingModule
 
close() - Method in class com.github.collinalpert.java2db.database.DBConnection
Closes the connection to the database.
ColumnName - Annotation Type in com.github.collinalpert.java2db.annotations
Sets the name of a column in a table for a POJO field.
com.github.collinalpert.java2db.annotations - package com.github.collinalpert.java2db.annotations
 
com.github.collinalpert.java2db.contracts - package com.github.collinalpert.java2db.contracts
 
com.github.collinalpert.java2db.database - package com.github.collinalpert.java2db.database
 
com.github.collinalpert.java2db.entities - package com.github.collinalpert.java2db.entities
 
com.github.collinalpert.java2db.exceptions - package com.github.collinalpert.java2db.exceptions
 
com.github.collinalpert.java2db.mappers - package com.github.collinalpert.java2db.mappers
 
com.github.collinalpert.java2db.modules - package com.github.collinalpert.java2db.modules
 
com.github.collinalpert.java2db.pagination - package com.github.collinalpert.java2db.pagination
 
com.github.collinalpert.java2db.queries - package com.github.collinalpert.java2db.queries
 
com.github.collinalpert.java2db.queries.async - package com.github.collinalpert.java2db.queries.async
 
com.github.collinalpert.java2db.services - package com.github.collinalpert.java2db.services
 
com.github.collinalpert.java2db.utilities - package com.github.collinalpert.java2db.utilities
 
ConnectionFailedException - Exception in com.github.collinalpert.java2db.exceptions
 
ConnectionFailedException() - Constructor for exception com.github.collinalpert.java2db.exceptions.ConnectionFailedException
 
count() - Method in class com.github.collinalpert.java2db.services.BaseService
An overload of the BaseService.count(SqlPredicate) method.
count(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Counts the rows that have an id (which should usually be every row) and match a certain condition.
countAsync(SqlPredicate<E>, Consumer<? super Long>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.count(SqlPredicate) method.
countAsync(Consumer<? super Long>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.count() method.
create(E) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates this Java entity on the database and sets the newly created id for the entity.
create(E...) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates a variable amount of entities on the database.
create(List<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates multiple entities on the database.
createAsync(E) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity) method without custom exception handling and without a callback.
createAsync(E...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity[]) method without custom exception handling.
createAsync(E, Consumer<? super Long>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity) method without custom exception handling.
createAsync(E, Consumer<? super Long>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity) method.
createAsync(Consumer<SQLException>, E...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity[]) method.
createAsync(List<E>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(List) method without custom exception handling.
createAsync(List<E>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(List) method.
createAsyncQuery() - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
 
createAsyncSingleQuery() - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
 
createInstance(Class<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Creates an instance of any class with an empty constructor.
createPagination(int) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates a pagination structure that splits the entire table into multiple pages.
createPagination(int, Duration) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates a pagination structure that splits the entire table into multiple pages.
createPagination(SqlPredicate<E>, int) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates a pagination structure that splits the result of a query into multiple pages.
createPagination(SqlPredicate<E>, int, Duration) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates a cached pagination structure that splits the result of a query into multiple pages.
createQuery() - Method in class com.github.collinalpert.java2db.services.BaseService
 
createSingleQuery() - Method in class com.github.collinalpert.java2db.services.BaseService
 

D

DATABASE - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Specifies the name of the database to connect to.
DBConnection - Class in com.github.collinalpert.java2db.database
 
DBConnection() - Constructor for class com.github.collinalpert.java2db.database.DBConnection
 
DefaultIfNull - Annotation Type in com.github.collinalpert.java2db.annotations
This annotation tells Java2DB to use the database-default for a column if the corresponding Java field marked with this annotation is null.
delete(long) - Method in class com.github.collinalpert.java2db.services.BaseDeletableService
Performs a soft delete on an entity instead of completely deleting it from the database.
delete(long) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes a row by an id.
delete(long...) - Method in class com.github.collinalpert.java2db.services.BaseDeletableService
Performs a soft delete on a variable amount of entities instead of completely deleting them from the database.
delete(long...) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes multiple rows with the corresponding ids.
delete(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes rows based on a condition.
delete(SqlPredicate<T>) - Method in class com.github.collinalpert.java2db.services.BaseDeletableService
Performs a soft delete based on a condition instead of completely deleting entities from the database.
delete(E) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes the corresponding row on the database.
delete(E...) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes multiple entities at once.
delete(List<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes a list of entities at once.
delete(List<T>) - Method in class com.github.collinalpert.java2db.services.BaseDeletableService
Performs a soft delete on an list of entities instead of completely deleting them from the database.
delete(T) - Method in class com.github.collinalpert.java2db.services.BaseDeletableService
Performs a soft delete on an entity instead of completely deleting it from the database.
delete(T...) - Method in class com.github.collinalpert.java2db.services.BaseDeletableService
Performs a soft delete on an variable amount of entities instead of completely deleting them from the database.
deleteAsync(long) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(long) method without custom exception handling.
deleteAsync(long...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(long...) method without custom exception handling.
deleteAsync(long, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(long) method.
deleteAsync(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(SqlPredicate) method without custom exception handling.
deleteAsync(SqlPredicate<E>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(SqlPredicate) method.
deleteAsync(E) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity) method without custom exception handling.
deleteAsync(E...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity[]) method without custom exception handling.
deleteAsync(E, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity) method.
deleteAsync(Consumer<SQLException>, long...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(long...) method.
deleteAsync(Consumer<SQLException>, E...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity[]) method.
deleteAsync(List<E>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(List) method without custom exception handling.
deleteAsync(List<E>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(List) method.
DESCENDING - com.github.collinalpert.java2db.queries.OrderTypes
 
doAction() - Method in interface com.github.collinalpert.java2db.utilities.ThrowableRunnable
 

E

empty() - Static method in class com.github.collinalpert.java2db.utilities.FunctionUtils
 
EntityProjectionQuery<E extends BaseEntity,​R> - Class in com.github.collinalpert.java2db.queries
A query which represents a projection from an EntityQuery to a single column on the database.
EntityProjectionQuery(SqlFunction<E, R>, EntityQuery<E>) - Constructor for class com.github.collinalpert.java2db.queries.EntityProjectionQuery
 
EntityQuery<E extends BaseEntity> - Class in com.github.collinalpert.java2db.queries
A class representing a DQL statement with different options, including where clauses, order by clauses and limits.
EntityQuery(Class<E>) - Constructor for class com.github.collinalpert.java2db.queries.EntityQuery
Constructor for creating a DQL statement for a given entity.
equals(Object) - Method in class com.github.collinalpert.java2db.entities.BaseEntity
 
execute(String) - Method in class com.github.collinalpert.java2db.database.DBConnection
Executes a DQL statement on the database without Java parameters.
execute(String, Object...) - Method in class com.github.collinalpert.java2db.database.DBConnection
Executes a DQL statement on the database with Java parameters.

F

fetch() - Method in interface com.github.collinalpert.java2db.utilities.ThrowableSupplier
 
FieldModule - Class in com.github.collinalpert.java2db.modules
A helper module for getting fields from classes.
first() - Method in class com.github.collinalpert.java2db.queries.EntityProjectionQuery
 
first() - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Gets the first record of a result.
first() - Method in class com.github.collinalpert.java2db.queries.SingleEntityProjectionQuery
 
first() - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Gets the first record of a result.
first() - Method in interface com.github.collinalpert.java2db.queries.SingleQueryable
Gets the first value from the database result.
firstAsync() - Method in interface com.github.collinalpert.java2db.queries.async.AsyncSingleQueryable
The asynchronous version of the SingleQueryable.first() method.
firstAsync(Consumer<? super Optional<T>>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncSingleQueryable
The asynchronous version of the SingleQueryable.first() method.
ForeignKeyEntity - Annotation Type in com.github.collinalpert.java2db.annotations
Marks a field as the correspondent object to a foreign key.
ForeignKeyReference - Class in com.github.collinalpert.java2db.database
Describes a foreign key reference to a specific table.
ForeignKeyReference(String, String, Field, String, String) - Constructor for class com.github.collinalpert.java2db.database.ForeignKeyReference
 
FunctionUtils - Class in com.github.collinalpert.java2db.utilities
A set of utility functions.
FunctionUtils() - Constructor for class com.github.collinalpert.java2db.utilities.FunctionUtils
 

G

get() - Method in interface com.github.collinalpert.java2db.utilities.ThrowableSupplier
 
getAlias() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getAliasNotation() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getAll() - Method in class com.github.collinalpert.java2db.services.BaseService
 
getAll(OrderTypes, SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets all values from the table and orders them in the specified order by multiple columns in a coalescing manner.
getAll(OrderTypes, SqlFunction<E, ?>[]) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets all values from the table and orders them in the specified order by multiple columns in a coalescing manner.
getAll(SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets all values from the table and orders them in an ascending order.
getAll(SqlFunction<E, ?>[]) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets all values from the table and orders them in an ascending order by multiple columns in a coalescing manner.
getAllAsync(Consumer<? super List<E>>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll() method.
getAllAsync(Consumer<? super List<E>>, OrderTypes, SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(OrderTypes, SqlFunction) method.
getAllAsync(Consumer<? super List<E>>, OrderTypes, SqlFunction<E, ?>...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(OrderTypes, SqlFunction[]) method.
getAllAsync(Consumer<? super List<E>>, SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(SqlFunction) method.
getAllAsync(Consumer<? super List<E>>, SqlFunction<E, ?>...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(SqlFunction[]) method.
getAllFields(Class<? extends BaseEntity>) - Method in class com.github.collinalpert.java2db.modules.FieldModule
Gets all the fields and the fields of foreign key objects in this entity.
getAnnotation() - Method in class com.github.collinalpert.java2db.modules.AnnotationModule.AnnotationInfo
 
getAnnotationInfo(Field, Class<A>) - Method in class com.github.collinalpert.java2db.modules.AnnotationModule
Gets information to an annotation for a field.
getAnnotationInfo(Field, Class<A>, Function<A, Boolean>) - Method in class com.github.collinalpert.java2db.modules.AnnotationModule
Gets information to an annotation for a field and performs an additional condition if the field has been annotated.
getArray() - Method in class com.github.collinalpert.java2db.modules.ArrayModule
Gets an array with all the elements that were added to it.
getByCode(String) - Method in class com.github.collinalpert.java2db.services.BaseCodeAndDescriptionDeletableService
Retrieves an entry from a table based on its unique code.
getByCode(String) - Method in class com.github.collinalpert.java2db.services.BaseCodeAndDescriptionService
Retrieves an entry from a table based on its unique code.
getByDescription(String) - Method in class com.github.collinalpert.java2db.services.BaseCodeAndDescriptionDeletableService
Retrieves entries from a table based on their description.
getByDescription(String) - Method in class com.github.collinalpert.java2db.services.BaseCodeAndDescriptionService
Retrieves entries from a table based on their description.
getById(long) - Method in class com.github.collinalpert.java2db.services.BaseService
 
getByIdAsync(long, Consumer<? super Optional<E>>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getById(long) method.
getCode() - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionDeletableEntity
 
getCode() - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionEntity
 
getColumn() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getColumnName(Field) - Method in class com.github.collinalpert.java2db.modules.TableModule
Gets the corresponding table column name of a field.
getConstraints(Class<E>) - Static method in class com.github.collinalpert.java2db.queries.QueryConstraints
Retrieves a composition SqlPredicate for all constraints that have been added for a class or any superclass of it.
getDescription() - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionDeletableEntity
 
getDescription() - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionEntity
 
getEntityFields(Class<? extends BaseEntity>) - Method in class com.github.collinalpert.java2db.modules.FieldModule
 
getEntityFields(Class<? extends BaseEntity>, boolean) - Method in class com.github.collinalpert.java2db.modules.FieldModule
 
getEntityFields(Class<? extends BaseEntity>, Class<?>) - Method in class com.github.collinalpert.java2db.modules.FieldModule
 
getFirst(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Retrieves a single entity which matches the predicate.
getFirstAsync(SqlPredicate<E>, Consumer<? super Optional<E>>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getFirst(SqlPredicate) method.
getForeignKeyAlias() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
getForeignKeyColumnName() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
getForeignKeyTableName() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
getId() - Method in interface com.github.collinalpert.java2db.contracts.IdentifiableEnum
 
getId() - Method in class com.github.collinalpert.java2db.entities.BaseEntity
 
getInstance() - Static method in class com.github.collinalpert.java2db.modules.AnnotationModule
 
getInstance() - Static method in class com.github.collinalpert.java2db.modules.FieldModule
 
getInstance() - Static method in class com.github.collinalpert.java2db.modules.LoggingModule
 
getInstance() - Static method in class com.github.collinalpert.java2db.modules.TableModule
 
getMultiple(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
Retrieves list of entities which match the predicate.
getMultiple(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Retrieves list of entities which match the predicate.
getNumberOfPages() - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
Gets the amount of pages created to split up a query.
getOrAdd(String, Supplier<T>, Duration) - Method in class com.github.collinalpert.java2db.modules.CachingModule
Gets an entry from the cache, or creates it if it does not exist using the passed valueFactory.
getPage(int) - Method in class com.github.collinalpert.java2db.pagination.CacheablePaginationResult
Gets a page by its identifier, or rather its number, an returns it as a List.
getPage(int) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
Retrieves a specific page represented by a List.
getPageAsArray(int) - Method in class com.github.collinalpert.java2db.pagination.CacheablePaginationResult
Gets a page by its identifier, or rather its number, an returns it as an array.
getPageAsArray(int) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
Retrieves a specific page represented by an array.
getPageAsArrayAsync(int, Consumer<? super T[]>) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
The asynchronous version of the PaginationResult.getPageAsArray(int) method.
getPageAsStream(int) - Method in class com.github.collinalpert.java2db.pagination.CacheablePaginationResult
Gets a page by its identifier, or rather its number, an returns it as a Stream.
getPageAsStream(int) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
Retrieves a specific page represented by a Stream.
getPageAsStreamAsync(int, Consumer<? super Stream<T>>) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
The asynchronous version of the PaginationResult.getPageAsStream(int) method.
getPageAsync(int, Consumer<? super List<T>>) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
The asynchronous version of the PaginationResult.getPage(int) method.
getQuery() - Method in class com.github.collinalpert.java2db.queries.SingleEntityProjectionQuery
 
getQuery() - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Builds the query from the set query options.
getQuery() - Method in interface com.github.collinalpert.java2db.queries.SingleQueryable
Responsible for building and returning the individual DQL statement.
getSingle(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
 
getSingle(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Retrieves a single entity which matches the predicate.
getSql() - Method in enum com.github.collinalpert.java2db.queries.OrderTypes
 
getSQLNotation() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getTableName() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getTableName() - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Gets the table name which this query targets.
getTableName(Class<?>) - Method in class com.github.collinalpert.java2db.modules.TableModule
Gets the database table name from the TableName attribute on the class.
getValue() - Method in class com.github.collinalpert.java2db.modules.LazyModule
 

H

hasAnnotation() - Method in class com.github.collinalpert.java2db.modules.AnnotationModule.AnnotationInfo
 
hasAnnotation(Field, Class<A>) - Method in class com.github.collinalpert.java2db.modules.AnnotationModule
Checks if a field was annotated with a specific annotation.
hasAnnotation(Field, Class<A>, Function<A, Boolean>) - Method in class com.github.collinalpert.java2db.modules.AnnotationModule
Checks if a field was annotated with a specific annotation and performs an additional condition if so.
hasDuplicates(SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.services.BaseService
Checks if duplicate values exist for a specific column in a table.
hasDuplicatesAsync(SqlFunction<E, ?>, Consumer<? super Boolean>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.hasDuplicates(SqlFunction) method.
hashCode() - Method in class com.github.collinalpert.java2db.entities.BaseEntity
 
HOST - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Specifies the hostname/ip address of the database.

I

IdentifiableEnum - Interface in com.github.collinalpert.java2db.contracts
A contract for enums which represent foreign keys.
Ignore - Annotation Type in com.github.collinalpert.java2db.annotations
Marks a field as ignored, meaning it does not exist on the database or should not be filled with values.
IllegalEntityFieldAccessException - Exception in com.github.collinalpert.java2db.exceptions
An exception which occurs when Java2DB tries to access a field in an entity and fails.
IllegalEntityFieldAccessException(String, String, String) - Constructor for exception com.github.collinalpert.java2db.exceptions.IllegalEntityFieldAccessException
 
invalidate() - Method in class com.github.collinalpert.java2db.modules.CachingModule
Invalidates, or "clears", the contents of this cache.
invalidate(String) - Method in class com.github.collinalpert.java2db.modules.CachingModule
Invalidates, or rather removes, a specific cache entry.
invalidateCache(String) - Method in class com.github.collinalpert.java2db.pagination.CacheablePaginationResult
Marks a specific value in the cache as invalid.
invalidateCaches() - Method in class com.github.collinalpert.java2db.pagination.CacheablePaginationResult
Marks the entire cache of the pagination as invalid, causing a reload the next time and value is requested.
IoC - Class in com.github.collinalpert.java2db.utilities
An
IoC() - Constructor for class com.github.collinalpert.java2db.utilities.IoC
 
isDeleted() - Method in class com.github.collinalpert.java2db.entities.BaseDeletableEntity
 
isMapperRegistered(Class<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Checks if a mapper has already been registered.
isOpen() - Method in class com.github.collinalpert.java2db.database.DBConnection
Determines if a connection to the database still exists or not.
isServiceRegistered(Class<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Checks if a service has already been registered.
isValid() - Method in class com.github.collinalpert.java2db.database.DBConnection
Checks if the connection is valid/successful.

L

LazyModule<T> - Class in com.github.collinalpert.java2db.modules
A helper module to support lazy loading of objects.
LazyModule(Supplier<T>) - Constructor for class com.github.collinalpert.java2db.modules.LazyModule
 
limit(int) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Limits the result of the rows returned to a maximum of the passed integer.
limit(int) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Limits the result of the rows returned to a maximum of the passed integer.
limit(int, int) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Limits the result of the rows returned to a maximum of the passed integer with an offset.
limit(int, int) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Limits the result of the rows returned to a maximum of the passed integer with an offset.
log(String) - Method in class com.github.collinalpert.java2db.modules.LoggingModule
Prints messages to the query, while considering the DBConnection.LOG_QUERIES constant.
LOG_QUERIES - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Constant which determines if the queries generated by Java2DB will be logged in the console.
logf(String, Object...) - Method in class com.github.collinalpert.java2db.modules.LoggingModule
Prints formatted messages to the query, while considering the DBConnection.LOG_QUERIES constant.
LoggingModule - Class in com.github.collinalpert.java2db.modules
A helper module which logs messages based on a condition.

M

map(ResultSet, Map<String, String>) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with a single row to a Java entity.
map(ResultSet, Map<String, String>) - Method in interface com.github.collinalpert.java2db.mappers.Mappable
Maps a ResultSet to an Optional.
Mappable<T extends BaseEntity> - Interface in com.github.collinalpert.java2db.mappers
 
mapper - Variable in class com.github.collinalpert.java2db.queries.SingleEntityQuery
 
mapToArray(ResultSet, Map<String, String>) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with multiple rows to an array of Java entities.
mapToArray(ResultSet, Map<String, String>) - Method in interface com.github.collinalpert.java2db.mappers.Mappable
Maps a ResultSet to an array.
mapToList(ResultSet, Map<String, String>) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with multiple rows to a list of Java entities.
mapToList(ResultSet, Map<String, String>) - Method in interface com.github.collinalpert.java2db.mappers.Mappable
Maps a ResultSet to a List.
mapToMap(ResultSet, Function<E, K>, Function<E, V>, Map<String, String>) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet to a Map.
mapToMap(ResultSet, Function<T, K>, Function<T, V>, Map<String, String>) - Method in interface com.github.collinalpert.java2db.mappers.Mappable
Maps a ResultSet to a Map.
mapToStream(ResultSet, Map<String, String>) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with multiple rows to a Stream of Java entities.
mapToStream(ResultSet, Map<String, String>) - Method in interface com.github.collinalpert.java2db.mappers.Mappable
Maps a ResultSet to a Stream.
max(SqlFunction<E, T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets the maximum value of a column in a table.
max(SqlFunction<E, T>, SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets the maximum value of a column in a set of values filtered by a condition.
maxAsync(SqlFunction<E, T>, SqlPredicate<E>, Consumer<? super T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.max(SqlFunction, SqlPredicate) method.
maxAsync(SqlFunction<E, T>, Consumer<? super T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.max(SqlFunction) method.
min(SqlFunction<E, T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets the minimum value of a column in a table.
min(SqlFunction<E, T>, SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets the minimum value of a column in a set of values filtered by a condition.
minAsync(SqlFunction<E, T>, SqlPredicate<E>, Consumer<? super T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.min(SqlFunction, SqlPredicate) method.
minAsync(SqlFunction<E, T>, Consumer<? super T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.min(SqlFunction) method.

O

onCreate() - Method in annotation type com.github.collinalpert.java2db.annotations.DefaultIfNull
Configures, if the database-default should be used in a create statement when the field is null.
onUpdate() - Method in annotation type com.github.collinalpert.java2db.annotations.DefaultIfNull
Configures, if the database-default should be used in an update statement when the field is null.
orderBy(OrderTypes, SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets an ORDER BY clauses for the DQL statement with a sorting order option.
orderBy(OrderTypes, SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets an ORDER BY clauses for the DQL statement with a sorting order option.
orderBy(OrderTypes, SqlFunction<E, ?>[]) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets multiple ORDER BY clauses for the DQL statement with a sorting order option.
orderBy(OrderTypes, SqlFunction<E, ?>[]) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets multiple ORDER BY clauses for the DQL statement with a sorting order option.
orderBy(OrderTypes, SqlFunction<T, ?>...) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
Adds ORDER BY statements to the queries executed for the pages in a coalescing manner.
orderBy(OrderTypes, List<SqlFunction<E, ?>>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets multiple ORDER BY clauses for the DQL statement with a sorting order option.
orderBy(OrderTypes, List<SqlFunction<E, ?>>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets multiple ORDER BY clauses for the DQL statement with a sorting order option.
orderBy(SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets an ORDER BY clauses for the DQL statement.
orderBy(SqlFunction<E, ?>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets an ORDER BY clauses for the DQL statement.
orderBy(SqlFunction<E, ?>[]) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets multiple ORDER BY clauses for the DQL statement.
orderBy(SqlFunction<E, ?>[]) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets multiple ORDER BY clauses for the DQL statement.
orderBy(SqlFunction<T, ?>...) - Method in class com.github.collinalpert.java2db.pagination.PaginationResult
Adds ascending ORDER BY statements to the queries executed for the pages in a coalescing manner.
orderBy(List<SqlFunction<E, ?>>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets multiple ORDER BY clauses for the DQL statement.
orderBy(List<SqlFunction<E, ?>>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets multiple ORDER BY clauses for the DQL statement.
orderType - Variable in class com.github.collinalpert.java2db.queries.EntityQuery
 
OrderTypes - Enum in com.github.collinalpert.java2db.queries
An enum representing the sorting order possibilities in a DQL statement.
originalQuery - Variable in class com.github.collinalpert.java2db.queries.SingleEntityProjectionQuery
 
orWhere(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets or appends an OR WHERE clause to the DQL statement.
orWhere(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncSingleEntityQuery
Sets or appends an OR WHERE clause to the DQL statement.
orWhere(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets or appends an OR WHERE clause to the DQL statement.
orWhere(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Sets or appends an OR WHERE clause to the DQL statement.

P

PaginationResult<T extends BaseEntity> - Class in com.github.collinalpert.java2db.pagination
Class for a simple pagination implementation.
PaginationResult(List<EntityQuery<T>>) - Constructor for class com.github.collinalpert.java2db.pagination.PaginationResult
 
PASSWORD - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Specifies the password to log in on the database with.
PORT - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Specifies the port to connect to the database on.
project(SqlFunction<E, R>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Selects only a single column from a table.
project(SqlFunction<E, R>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncSingleEntityQuery
Selects only a single column from a table.
project(SqlFunction<E, R>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Selects only a single column from a table.
project(SqlFunction<E, R>) - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Selects only a single column from a table.

Q

queries - Variable in class com.github.collinalpert.java2db.pagination.PaginationResult
 
Queryable<T> - Interface in com.github.collinalpert.java2db.queries
 
QueryConstraints - Class in com.github.collinalpert.java2db.queries
A class which administers default query constraints set for entities.
QueryConstraints() - Constructor for class com.github.collinalpert.java2db.queries.QueryConstraints
 

R

registerMapper(Class<E>, M) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Registers an instance of a mapper class.
registerService(Class<E>, S) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Registers an instance of a service class.
removeConstraints(Class<? extends BaseEntity>) - Static method in class com.github.collinalpert.java2db.queries.QueryConstraints
Removes all query constraints which were set for a specific entity.
resolveMapper(Class<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Resolves a mapper class.
resolveMapper(Class<E>, Mappable<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Resolves a mapper class.
resolveService(Class<S>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Resolves a service class.
resolveServiceByEntity(Class<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Resolves a service class by the entity it was registered with.
resolveServiceByEntity(Class<E>, S) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Resolves a service class by the entity it was registered with.
returnType - Variable in class com.github.collinalpert.java2db.queries.SingleEntityProjectionQuery
 
run() - Method in interface com.github.collinalpert.java2db.utilities.ThrowableRunnable
 
runnableHandling(ThrowableRunnable<SQLException>, Consumer<SQLException>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Handles an SQLException that gets thrown inside a Runnable.

S

setCode(String) - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionDeletableEntity
 
setCode(String) - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionEntity
 
setDeleted(boolean) - Method in class com.github.collinalpert.java2db.entities.BaseDeletableEntity
 
setDescription(String) - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionDeletableEntity
 
setDescription(String) - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionEntity
 
setId(long) - Method in class com.github.collinalpert.java2db.entities.BaseEntity
Deprecated.
SingleEntityProjectionQuery<E extends BaseEntity,​R> - Class in com.github.collinalpert.java2db.queries
 
SingleEntityProjectionQuery(SqlFunction<E, R>, SingleEntityQuery<E>) - Constructor for class com.github.collinalpert.java2db.queries.SingleEntityProjectionQuery
 
SingleEntityQuery<E extends BaseEntity> - Class in com.github.collinalpert.java2db.queries
 
SingleEntityQuery(Class<E>) - Constructor for class com.github.collinalpert.java2db.queries.SingleEntityQuery
 
SingleQueryable<T> - Interface in com.github.collinalpert.java2db.queries
 
supplierHandling(ThrowableSupplier<V, SQLException>, Consumer<SQLException>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Handles an SQLException that gets thrown inside a Supplier.

T

TableColumnReference - Class in com.github.collinalpert.java2db.database
Describes a column and its table name so they can be referenced together.
TableColumnReference(String, String, Field) - Constructor for class com.github.collinalpert.java2db.database.TableColumnReference
 
tableModule - Static variable in class com.github.collinalpert.java2db.queries.SingleEntityQuery
 
TableModule - Class in com.github.collinalpert.java2db.modules
A helper module for getting information about database tables and their columns.
tableName - Variable in class com.github.collinalpert.java2db.services.BaseService
Represents the table name of the entity this services corresponds to.
TableName - Annotation Type in com.github.collinalpert.java2db.annotations
Specifies the database table name for an entity.
ThrowableRunnable<E extends java.lang.Throwable> - Interface in com.github.collinalpert.java2db.utilities
Simple hack to add checked error support to a Runnables.
ThrowableSupplier<T,​E extends java.lang.Throwable> - Interface in com.github.collinalpert.java2db.utilities
Simple hack to add checked error support to a Suppliers.
toArray() - Method in class com.github.collinalpert.java2db.queries.EntityProjectionQuery
 
toArray() - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Executes a new query and returns the result as an array.
toArray() - Method in interface com.github.collinalpert.java2db.queries.Queryable
Executes a new query and returns the result as an array.
toArrayAsync() - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toArray() method.
toArrayAsync(Consumer<? super T[]>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toArray() method.
toList() - Method in class com.github.collinalpert.java2db.queries.EntityProjectionQuery
 
toList() - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Executes the query and returns the result as a List
toList() - Method in interface com.github.collinalpert.java2db.queries.Queryable
Executes the query and returns the result as a List.
toListAsync() - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toList() method.
toListAsync(Consumer<? super List<T>>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toList() method.
toMap(Function<E, K>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Executes a new query and returns the result as a Map.
toMap(Function<E, K>, Function<E, V>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Executes a new query and returns the result as a Map.
toMap(Function<R, K>) - Method in class com.github.collinalpert.java2db.queries.EntityProjectionQuery
Executes a new query and returns the result as a Map.
toMap(Function<R, K>, Function<R, V>) - Method in class com.github.collinalpert.java2db.queries.EntityProjectionQuery
Executes a new query and returns the result as a Map.
toMap(Function<T, K>) - Method in interface com.github.collinalpert.java2db.queries.Queryable
Executes a new query and returns the result as a Map.
toMap(Function<T, K>, Function<T, V>) - Method in interface com.github.collinalpert.java2db.queries.Queryable
Executes a new query and returns the result as a Map.
toMapAsync(Function<T, K>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toMap(Function) method.
toMapAsync(Function<T, K>, Consumer<? super Map<K, T>>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toMap(Function) method.
toMapAsync(Function<T, K>, Function<T, V>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toMap(Function, Function) method.
toMapAsync(Function<T, K>, Function<T, V>, Consumer<? super Map<K, V>>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toMap(Function, Function) method.
toStream() - Method in class com.github.collinalpert.java2db.queries.EntityProjectionQuery
 
toStream() - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Executes the query and returns the result as a Stream
toStream() - Method in interface com.github.collinalpert.java2db.queries.Queryable
Executes the query and returns the result as a Stream.
toStreamAsync() - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toStream() method.
toStreamAsync(Consumer<? super Stream<T>>) - Method in interface com.github.collinalpert.java2db.queries.async.AsyncQueryable
The asynchronous version of the Queryable.toStream() method.
toString() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
toString() - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionDeletableEntity
 
toString() - Method in class com.github.collinalpert.java2db.entities.BaseCodeAndDescriptionEntity
 
toString() - Method in class com.github.collinalpert.java2db.entities.BaseDeletableEntity
 
toString() - Method in class com.github.collinalpert.java2db.entities.BaseEntity
 
truncateTable() - Method in class com.github.collinalpert.java2db.services.BaseService
Truncates the corresponding table on the database.
truncateTableAsync() - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.truncateTable() method without custom exception handling.
truncateTableAsync(Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.truncateTable() method.
tryAction(ThrowableRunnable<E>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Tries to perform a certain action while considering a checked exception that could occur.
tryGetValue(ThrowableSupplier<T, E>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Tries to execute a supplier and retrieve its value while considering a checked exception that could occur.
type - Variable in class com.github.collinalpert.java2db.queries.SingleEntityQuery
 
type - Variable in class com.github.collinalpert.java2db.services.BaseService
The generic type of this service.

U

update(long, SqlFunction<E, R>, SqlFunction<E, R>) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates a specific column based on the current column value in the database.
update(long, SqlFunction<E, R>, R) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates a specific column for a single record in a table.
update(SqlPredicate<E>, SqlFunction<E, R>, R) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates a specific column for records matching a condition in a table.
update(E) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates this entity's row on the database.
update(E...) - Method in class com.github.collinalpert.java2db.services.BaseService
Variable argument version which behaves the same as the BaseService.update(List) method.
update(String) - Method in class com.github.collinalpert.java2db.database.DBConnection
This command is used for any DDL/DML queries.
update(String, Object...) - Method in class com.github.collinalpert.java2db.database.DBConnection
This command is used for any DDL/DML queries with Java parameters.
update(List<E>) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates multiple entity's rows on the database.
updateAsync(long, SqlFunction<E, R>, SqlFunction<E, R>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(long, SqlFunction, SqlFunction) method without custom exception handling.
updateAsync(long, SqlFunction<E, R>, SqlFunction<E, R>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(long, SqlFunction, SqlFunction) method.
updateAsync(long, SqlFunction<E, R>, R) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(long, SqlFunction, Object) method without custom exception handling.
updateAsync(long, SqlFunction<E, R>, R, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(long, SqlFunction, Object) method.
updateAsync(SqlPredicate<E>, SqlFunction<E, R>, R) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(SqlPredicate, SqlFunction, Object) method without custom exception handling.
updateAsync(SqlPredicate<E>, SqlFunction<E, R>, R, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(SqlPredicate, SqlFunction, Object) method.
updateAsync(E) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity) method without custom exception handling.
updateAsync(E...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity[]) without custom exception handling.
updateAsync(E, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity) method.
updateAsync(Consumer<SQLException>, E...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity[]).
updateAsync(List<E>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(List) without custom exception handling.
updateAsync(List<E>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(List).
USERNAME - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Specifies the username to log in on the database with.
Utilities - Class in com.github.collinalpert.java2db.utilities
 
Utilities() - Constructor for class com.github.collinalpert.java2db.utilities.Utilities
 

V

value() - Method in annotation type com.github.collinalpert.java2db.annotations.ColumnName
 
value() - Method in annotation type com.github.collinalpert.java2db.annotations.ForeignKeyEntity
 
value() - Method in annotation type com.github.collinalpert.java2db.annotations.TableName
 
valueOf(String) - Static method in enum com.github.collinalpert.java2db.queries.OrderTypes
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.collinalpert.java2db.queries.OrderTypes
Returns an array containing the constants of this enum type, in the order they are declared.

W

where(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncEntityQuery
Sets or appends a WHERE clause for the DQL statement.
where(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.async.AsyncSingleEntityQuery
Sets or appends a WHERE clause for the DQL statement.
where(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.EntityQuery
Sets or appends a WHERE clause for the DQL statement.
where(SqlPredicate<E>) - Method in class com.github.collinalpert.java2db.queries.SingleEntityQuery
Sets or appends a WHERE clause for the DQL statement.
A B C D E F G H I L M O P Q R S T U V W 
All Classes All Packages