Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- applicationSort(String, boolean, Function) - Method in class com.flowlogix.jeedao.primefaces.Sorter.SortData
-
Replaces, or adds application sort criteria to the existing UI sort criteria If the sort criteria is new, it is placed at either highest or lowest order, depending on the highPriority parameter
- applicationSort(String, String, Sorter.SortData, boolean, Supplier, Supplier, Supplier) - Method in class com.flowlogix.jeedao.primefaces.Sorter.SortData
-
Helper method to apply application sort criteria based on the UI requested sort criteria
- applicationSort(String, String, Sorter.SortData, Supplier, Supplier, Supplier) - Method in class com.flowlogix.jeedao.primefaces.Sorter.SortData
-
Helper method to apply application sort criteria based on the UI requested sort criteria
- applicationSort(String, Function) - Method in class com.flowlogix.jeedao.primefaces.Sorter.SortData
-
Replaces, or adds application sort criteria to the existing UI sort criteria If the sort criteria is new, it is placed at the lowest sort order
C
- caseInsensitive() - Element in annotation interface com.flowlogix.jeedao.primefaces.LazyModelConfig
-
case-sensitivity of queries
- columns() - Method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Returns columns that are supported for cursor pagination.
- com.flowlogix.datamodel - module com.flowlogix.datamodel
-
PrimeFaces JPA-backed
JPALazyDataModel - com.flowlogix.jeedao.primefaces - package com.flowlogix.jeedao.primefaces
-
PrimeFaces JPA-backed
JPALazyDataModel - com.flowlogix.jeedao.primefaces.internal - package com.flowlogix.jeedao.primefaces.internal
-
Internal classes and builders, Do not use.
- Config() - Constructor for class com.flowlogix.jeedao.primefaces.CursorPagination.Config
- count(Map) - Method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Overridden from
LazyDataModel.count(Map) - create(JPALazyDataModel.BuilderFunction) - Static method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Set up this particular instance of the data model with entity manager, class and key converter
- create(Function) - Static method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Creates a default implementation of cursor pagination
@Named @ViewScoped public class CursorDataModel implements Serializable { @Inject @Getter JPALazyDataModel<UserEntity> userModel; @PostConstruct void initialize() { // configure cursor pagination by id field userModel.initialize(builder -> builder .cursor(CursorPagination.create(config -> config.supportedFields(List.of( new Field<>(() -> UserEntity_.id.getName(), UserEntity::getId) )).build())).build()); } } - cursorOffset(int) - Method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Calculate the adjusted offset based on cached cursor state
- CursorPagination<TT> - Interface in com.flowlogix.jeedao.primefaces
-
Interface defining cursor pagination behavior for PrimeFaces JPA LazyDataModel
- CursorPagination.Config<TT> - Class in com.flowlogix.jeedao.primefaces
-
Configuration class for cursor pagination, used to create a CursorPagination instance with specified supported fields and options.
- CursorPagination.Field<TT> - Record Class in com.flowlogix.jeedao.primefaces
-
Used to configure columns for cursor pagination.
- cursorPredicate(int, CriteriaBuilder, Root, Map) - Method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Compute the JPA predicate to apply to the query for cursor pagination based on the cached cursor state
D
- defaultSort(CriteriaBuilder, Root) - Method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Creates a JPA sort
Orderto apply to the query when no explicit sort is requested by the client, based on the first supported column and configured sort direction
E
- entityManagerSelector() - Element in annotation interface com.flowlogix.jeedao.primefaces.LazyModelConfig
-
Override entity manager for the data model
- equals(Object) - Method in record class com.flowlogix.jeedao.primefaces.CursorPagination.Field
-
Indicates whether some other object is "equal to" this one.
F
- Field(Lazy.SerializableSupplier, FunctionalInterfaces.SerializableFunction) - Constructor for record class com.flowlogix.jeedao.primefaces.CursorPagination.Field
-
Creates an instance of a
Fieldrecord class. - fieldMethod() - Method in record class com.flowlogix.jeedao.primefaces.CursorPagination.Field
-
Returns the value of the
fieldMethodrecord component. - fieldName() - Method in record class com.flowlogix.jeedao.primefaces.CursorPagination.Field
-
Returns the value of the
fieldNamerecord component. - filter(Filter.FilterData, CriteriaBuilder, Root) - Method in interface com.flowlogix.jeedao.primefaces.Filter
-
hook to supply custom filter
- Filter<TT> - Interface in com.flowlogix.jeedao.primefaces
-
Filter Hook
- Filter.FilterColumnData - Class in com.flowlogix.jeedao.primefaces
-
filter data this is what you replace with your own filter
- Filter.FilterData - Interface in com.flowlogix.jeedao.primefaces
-
Interface that directly inherits from
Mapand addsFilter.FilterData.replaceFilter(String, BiFunction)method - filterCaseConversion() - Element in annotation interface com.flowlogix.jeedao.primefaces.LazyModelConfig
-
to which case (upper / lower) to convert during case-insensitive query
- FilterColumnData() - Constructor for class com.flowlogix.jeedao.primefaces.Filter.FilterColumnData
G
- getResultField(String) - Static method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Transforms JPA entity field to format suitable for hints.
- getRowData(String) - Method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Overridden from
LazyDataModel.getRowData(String) - getRowKey(TT) - Method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Overridden from
LazyDataModel.getRowKey(Object)
H
- hashCode() - Method in record class com.flowlogix.jeedao.primefaces.CursorPagination.Field
-
Returns a hash code value for this object.
I
- initialize(JPALazyDataModel.BuilderFunction) - Method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Initialize JPA Lazy Data model.
- isSupported(Map, Map) - Method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Checks if cursor pagination is supported for the given filters and sort metadata, this method is called before every query execution and should return quickly.
J
- JPALazyDataModel<TT> - Class in com.flowlogix.jeedao.primefaces
-
Easy implementation of PrimeFaces lazy data model using Lambdas, This is the main class in
com.flowlogix.jeedao.primefacespackage - JPALazyDataModel.BuilderFunction<TT> - Interface in com.flowlogix.jeedao.primefaces
-
Serializable builder lambda to easily facilitate creation of
JPALazyDataModel - JPALazyDataModel.FilterCaseConversion - Enum Class in com.flowlogix.jeedao.primefaces
-
used in case-insensitive queries to convert case to lower / upper case
L
- LazyModelConfig - Annotation Interface in com.flowlogix.jeedao.primefaces
-
Optional Configuration annotation for
JPALazyDataModelUse to make queries case-insensitive and pick anEntityManager - load(int, int, Map, Map) - Method in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Overridden from
LazyDataModel.load(int, int, Map, Map) - LOWER - Enum constant in enum class com.flowlogix.jeedao.primefaces.JPALazyDataModel.FilterCaseConversion
M
- MergedSortOrder() - Constructor for class com.flowlogix.jeedao.primefaces.Sorter.MergedSortOrder
N
- noop() - Static method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Returns a no-op implementation of CursorPagination that can be used when cursor pagination is not supported or desired.
P
- Please see Developer's Guide - Section in Overview
R
- replaceFilter(String, BiFunction) - Method in interface com.flowlogix.jeedao.primefaces.Filter.FilterData
-
Replacing a predicate in the filter list by field name
- requestedSort(Map, Map, boolean) - Static method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Calculates the requested sort field from the sort metadata and supported columns, with an option to fall back to the default column if no valid sort is requested.
- RESULT - Static variable in class com.flowlogix.jeedao.primefaces.JPALazyDataModel
-
Automatic field that's added to the JPA's root object and can be used with
JPALazyDataModel.getResultField(String)for result fields
S
- save(int, TT, Map) - Method in interface com.flowlogix.jeedao.primefaces.CursorPagination
-
Caches the cursor value for the given offset and entity
- sort(Sorter.SortData, CriteriaBuilder, Root) - Method in interface com.flowlogix.jeedao.primefaces.Sorter
-
Hook for sort criteria manipulation.
- SortData(Map) - Constructor for class com.flowlogix.jeedao.primefaces.Sorter.SortData
- Sorter<TT> - Interface in com.flowlogix.jeedao.primefaces
-
Sorter Hook
- Sorter.MergedSortOrder - Class in com.flowlogix.jeedao.primefaces
-
Sort order requested by the UI lives in
Sorter.MergedSortOrder.requestedSortMeta, Sort order requested by the application lives inSorter.MergedSortOrder.applicationSortOnly one can exist, the other will always be null. - Sorter.SortData - Class in com.flowlogix.jeedao.primefaces
-
Manipulates sort criteria requested from the UI and possibly adds or replaces it with application-based sort criteria
T
- toString() - Method in record class com.flowlogix.jeedao.primefaces.CursorPagination.Field
-
Returns a string representation of this record class.
U
- UPPER - Enum constant in enum class com.flowlogix.jeedao.primefaces.JPALazyDataModel.FilterCaseConversion
V
- valueOf(String) - Static method in enum class com.flowlogix.jeedao.primefaces.JPALazyDataModel.FilterCaseConversion
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.flowlogix.jeedao.primefaces.JPALazyDataModel.FilterCaseConversion
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- wildcardSupport() - Element in annotation interface com.flowlogix.jeedao.primefaces.LazyModelConfig
-
wildcard support for filter queries
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form