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.
any() - Method in class com.github.collinalpert.java2db.services.BaseService
Checks if a table has at least one row.
any(SqlPredicate<T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Checks if a value matching the condition exists in the table.
anyAsync(SqlPredicate<T>, 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.
ASCENDING - com.github.collinalpert.java2db.queries.OrderTypes
 
AsyncBaseService<T 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
 
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
 

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<T extends BaseEntity> - Class in com.github.collinalpert.java2db.mappers
Default mapper for converting a ResultSet to the respective Java entity.
BaseMapper(Class<T>) - Constructor for class com.github.collinalpert.java2db.mappers.BaseMapper
 
BaseService<T 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.

C

CacheablePaginationResult<T extends BaseEntity> - Class in com.github.collinalpert.java2db.pagination
Extended class that adds caching functionality to the pagination implementation.
CacheablePaginationResult(List<Query<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.caching
A simple caching module, which is used for basic caching functionality.
CachingModule() - Constructor for class com.github.collinalpert.java2db.caching.CachingModule
 
CallbackUtils - Class in com.github.collinalpert.java2db.utilities
A set of utilities for the callbacks in asynchronous methods.
CallbackUtils() - Constructor for class com.github.collinalpert.java2db.utilities.CallbackUtils
 
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.caching - package com.github.collinalpert.java2db.caching
 
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.pagination - package com.github.collinalpert.java2db.pagination
 
com.github.collinalpert.java2db.queries - package com.github.collinalpert.java2db.queries
 
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<T>) - 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<T>, 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(List<T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates multiple entities on the database.
create(T) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates this Java entity on the database.
create(T...) - Method in class com.github.collinalpert.java2db.services.BaseService
Creates a variable amount of entities on the database.
createAsync(Consumer<SQLException>, T...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity[]) method.
createAsync(List<T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(List) method without custom exception handling.
createAsync(List<T>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(List) method.
createAsync(T) - 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(T...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity[]) method without custom exception handling.
createAsync(T, 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(T, Consumer<? super Long>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.create(BaseEntity) method.
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<T>, 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<T>, 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
 

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
 
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<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(SqlPredicate<T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes rows based on a condition.
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(List<T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes a list of entities at once.
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.BaseService
Deletes the corresponding row on 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.
delete(T...) - Method in class com.github.collinalpert.java2db.services.BaseService
Deletes multiple entities at once.
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<T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(SqlPredicate) method without custom exception handling.
deleteAsync(SqlPredicate<T>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(SqlPredicate) 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>, T...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity[]) method.
deleteAsync(List<T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(List) method without custom exception handling.
deleteAsync(List<T>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(List) method.
deleteAsync(T) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity) method without custom exception handling.
deleteAsync(T...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity[]) method without custom exception handling.
deleteAsync(T, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.delete(BaseEntity) 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.CallbackUtils
 
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
 
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, String, String) - Constructor for class com.github.collinalpert.java2db.database.ForeignKeyReference
 

G

generate(String, String) - Static method in class com.github.collinalpert.java2db.utilities.UniqueIdentifier
Generates a unique alias from a base.
get() - Method in interface com.github.collinalpert.java2db.utilities.ThrowableSupplier
Deprecated.
Do not use this method in a specific implementation. Please use the ThrowableSupplier.fetch() method instead.
getAlias() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
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<T, ?>) - 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<T, ?>...) - 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<T, ?>) - Method in class com.github.collinalpert.java2db.services.BaseService
Gets all values from the table and orders them in an ascending order.
getAll(SqlFunction<T, ?>...) - 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<T>>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll() method.
getAllAsync(Consumer<? super List<T>>, OrderTypes, SqlFunction<T, ?>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(OrderTypes, SqlFunction) method.
getAllAsync(Consumer<? super List<T>>, OrderTypes, SqlFunction<T, ?>...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(OrderTypes, SqlFunction[]) method.
getAllAsync(Consumer<? super List<T>>, SqlFunction<T, ?>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(SqlFunction) method.
getAllAsync(Consumer<? super List<T>>, SqlFunction<T, ?>...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getAll(SqlFunction[]) method.
getAllFields(Class<? extends BaseEntity>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Gets all the fields and the fields of foreign key objects in this entity.
getAllFields(Class<? extends BaseEntity>, String) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Gets all the fields and the fields of foreign key objects in this entity.
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<T>>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getById(long) method.
getChildTable() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
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) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
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>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
 
getEntityFields(Class<? extends BaseEntity>, boolean) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
 
getEntityFields(Class<? extends BaseEntity>, Class<?>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
 
getFirst() - Method in class com.github.collinalpert.java2db.queries.Query
Gets the first record of a result.
getFirstAsync() - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.getFirst() method.
getFirstAsync(Consumer<? super Optional<T>>) - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.getFirst() method.
getId() - Method in class com.github.collinalpert.java2db.entities.BaseEntity
 
getIdentifier() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getIdentifier(String) - Static method in class com.github.collinalpert.java2db.utilities.UniqueIdentifier
Gets the alias for a certain nested property.
getMultiple(SqlPredicate<T>) - 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.caching.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.
getParentClass() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
getParentForeignKey() - Method in class com.github.collinalpert.java2db.database.ForeignKeyReference
 
getQuery() - Method in class com.github.collinalpert.java2db.queries.Query
 
getReference() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getSingle(SqlPredicate<T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Retrieves a single entity which matches the predicate.
getSingleAsync(SqlPredicate<T>, Consumer<? super Optional<T>>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.getSingle(SqlPredicate) method.
getSql() - Method in enum com.github.collinalpert.java2db.queries.OrderTypes
 
getSQLNotation() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
getTableName(Class<?>) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Gets the database table name from the TableName attribute on the class.

H

hasDuplicates(SqlFunction<T, ?>) - Method in class com.github.collinalpert.java2db.services.BaseService
Checks if duplicate values exist for a specific column in a table.
hasDuplicatesAsync(SqlFunction<T, ?>, Consumer<? super Boolean>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.hasDuplicates(SqlFunction) method.
HOST - Static variable in class com.github.collinalpert.java2db.database.DBConnection
Specifies the hostname/ip address of the database.

I

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
 
IMapper<T extends BaseEntity> - Interface in com.github.collinalpert.java2db.mappers
 
invalidate() - Method in class com.github.collinalpert.java2db.caching.CachingModule
Invalidates, or "clears", the contents of this cache.
invalidate(String) - Method in class com.github.collinalpert.java2db.caching.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
 
isForeignKey() - Method in class com.github.collinalpert.java2db.database.TableColumnReference
 
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

limit(int) - Method in class com.github.collinalpert.java2db.queries.Query
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.Query
Limits the result of the rows returned to a maximum of the passed integer with an offset.
log(Object) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
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...) - Static method in class com.github.collinalpert.java2db.utilities.Utilities
Prints formatted messages to the query, while considering the DBConnection.LOG_QUERIES constant.

M

map(ResultSet) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with a single row to a Java entity.
map(ResultSet) - Method in interface com.github.collinalpert.java2db.mappers.IMapper
 
mapper - Variable in class com.github.collinalpert.java2db.services.BaseService
The mapper used for mapping database objects to Java entities in this service.
mapToArray(ResultSet) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with multiple rows to an array of Java entities.
mapToArray(ResultSet) - Method in interface com.github.collinalpert.java2db.mappers.IMapper
 
mapToList(ResultSet) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with multiple rows to a list of Java entities.
mapToList(ResultSet) - Method in interface com.github.collinalpert.java2db.mappers.IMapper
 
mapToStream(ResultSet) - Method in class com.github.collinalpert.java2db.mappers.BaseMapper
Maps a ResultSet with multiple rows to a Stream of Java entities.
mapToStream(ResultSet) - Method in interface com.github.collinalpert.java2db.mappers.IMapper
 

O

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, SqlFunction<T, ?>...) - Method in class com.github.collinalpert.java2db.queries.Query
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(SqlFunction<T, ?>...) - Method in class com.github.collinalpert.java2db.queries.Query
Sets multiple ORDER BY clauses for the DQL statement.
OrderTypes - Enum in com.github.collinalpert.java2db.queries
An enum representing the sorting order possibilities in a DQL statement.
orWhere(SqlPredicate<T>) - Method in class com.github.collinalpert.java2db.queries.Query
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<Query<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.

Q

queries - Variable in class com.github.collinalpert.java2db.pagination.PaginationResult
 
Query<T 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.
Query(Class<T>, IMapper<T>) - Constructor for class com.github.collinalpert.java2db.queries.Query
Constructor for creating a DQL statement for a given entity.
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.
resolveMapper(Class<E>) - Static method in class com.github.collinalpert.java2db.utilities.IoC
Resolves a mapper class.
resolveMapper(Class<E>, IMapper<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.
run() - Method in interface com.github.collinalpert.java2db.utilities.ThrowableRunnable
Deprecated.
Do not use this method in a specific implementation. Please use the ThrowableRunnable.doAction() method instead.
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
This setter only exists for frameworks like Spring, where a form needs to set this id.
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, Field, String, String) - Constructor for class com.github.collinalpert.java2db.database.TableColumnReference
 
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.Query
Executes a new query and returns the result as an array.
toArrayAsync() - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.toArray() method.
toArrayAsync(Consumer<? super T[]>) - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.toArray() method.
toList() - Method in class com.github.collinalpert.java2db.queries.Query
Executes the query and returns the result as a List
toListAsync() - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.toList() method.
toListAsync(Consumer<? super List<T>>) - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.toList() method.
toStream() - Method in class com.github.collinalpert.java2db.queries.Query
Executes the query and returns the result as a Stream
toStreamAsync() - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.toStream() method.
toStreamAsync(Consumer<? super Stream<T>>) - Method in class com.github.collinalpert.java2db.queries.Query
The asynchronous version of the Query.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
 
toString() - Method in class com.github.collinalpert.java2db.queries.Query
 
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.
type - Variable in class com.github.collinalpert.java2db.services.BaseService
The generic type of this service.

U

UniqueIdentifier - Class in com.github.collinalpert.java2db.utilities
A factory class for generating unique identifiers.
UniqueIdentifier() - Constructor for class com.github.collinalpert.java2db.utilities.UniqueIdentifier
 
unset() - Static method in class com.github.collinalpert.java2db.utilities.UniqueIdentifier
Resets the values in this class.
update(long, SqlFunction<T, R>, R) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates a specific column for a single record in a table.
update(SqlPredicate<T>, SqlFunction<T, R>, R) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates a specific column for records matching a condition in a table.
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<T>) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates multiple entity's rows on the database.
update(T) - Method in class com.github.collinalpert.java2db.services.BaseService
Updates this entity's row on the database.
update(T...) - Method in class com.github.collinalpert.java2db.services.BaseService
Variable argument version which behaves the same as the BaseService.update(List) method.
updateAsync(long, SqlFunction<T, 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<T, 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<T>, SqlFunction<T, 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<T>, SqlFunction<T, 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(Consumer<SQLException>, T...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity[]).
updateAsync(List<T>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(List) without custom exception handling.
updateAsync(List<T>, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(List).
updateAsync(T) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity) method without custom exception handling.
updateAsync(T...) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity[]) without custom exception handling.
updateAsync(T, Consumer<SQLException>) - Method in class com.github.collinalpert.java2db.services.AsyncBaseService
The asynchronous version of the BaseService.update(BaseEntity) method.
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<T>) - Method in class com.github.collinalpert.java2db.queries.Query
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