com.jwebmp.entityassist.querybuilder.QueryBuilderCore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entity-assist Show documentation
Show all versions of entity-assist Show documentation
A Domain Driven SQL Builder Generator for JPMS/JDK8
package com.jwebmp.entityassist.querybuilder;
import com.jwebmp.entityassist.CoreEntity;
import com.jwebmp.entityassist.enumerations.ActiveFlag;
import javax.persistence.metamodel.Attribute;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import static com.jwebmp.entityassist.CoreEntity.*;
import static com.jwebmp.entityassist.enumerations.Operand.*;
/**
* @param
* This Class
* @param
* Entity Class
*
* @author GedMarc
*/
public abstract class QueryBuilderCore, E extends CoreEntity, I extends Serializable>
extends QueryBuilderSCD
{
/**
* The active flag column name
*/
@SuppressWarnings("WeakerAccess")
public static final String ACTIVE_FLAG_DATE_COLUMN_NAME = "activeFlag";
/**
* Filters from the Active Flag suite where it is in the active range
*
* @return This
*/
@NotNull
@SuppressWarnings("unchecked")
public J inActiveRange()
{
where((Attribute