
br.com.anteros.persistence.session.FindParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Anteros-Persistence-Core Show documentation
Show all versions of Anteros-Persistence-Core Show documentation
Anteros Persistence Core for Java.
The newest version!
package br.com.anteros.persistence.session;
import java.util.Map;
import br.com.anteros.persistence.dsl.osql.types.OrderSpecifier;
import br.com.anteros.persistence.dsl.osql.types.Predicate;
import br.com.anteros.persistence.metadata.identifier.Identifier;
import br.com.anteros.persistence.session.lock.LockOptions;
import br.com.anteros.persistence.session.repository.Pageable;
public class FindParameters {
public FindParameters() {
}
private Class entityClass;
private Object primaryKey;
private Map properties;
private LockOptions lockOptions = LockOptions.OPTIMISTIC_FORCE_INCREMENT;
private Identifier identifier;
private Object id;
private boolean readOnly = false;
private String fieldsToForceLazy;
private String sql;
private Object parameters;
private Pageable pageable;
private Predicate predicate;
private OrderSpecifier>[] orders;
private boolean ignoreCompanyId=false;
private boolean ignoreTenantId=false;
public boolean isIgnoreCompanyId() {
return ignoreCompanyId;
}
public FindParameters ignoreCompanyId(boolean ignoreCompanyId) {
this.ignoreCompanyId = ignoreCompanyId;
return this;
}
public boolean isIgnoreTenantId() {
return ignoreTenantId;
}
public FindParameters ignoreTenantId(boolean ignoreTenantId) {
this.ignoreTenantId = ignoreTenantId;
return this;
}
public Class> getEntityClass() {
return entityClass;
}
public FindParameters entityClass(Class entityClass) {
this.entityClass = entityClass;
return this;
}
public Object getPrimaryKey() {
return primaryKey;
}
public FindParameters primaryKey(Object primaryKey) {
this.primaryKey = primaryKey;
return this;
}
public Map getProperties() {
return properties;
}
public FindParameters properties(Map properties) {
this.properties = properties;
return this;
}
public LockOptions getLockOptions() {
return lockOptions;
}
public FindParameters lockOptions(LockOptions lockOptions) {
this.lockOptions = lockOptions;
return this;
}
public Identifier> getIdentifier() {
return identifier;
}
public FindParameters identifier(Identifier identifier) {
this.identifier = identifier;
return this;
}
public boolean isReadOnly() {
return readOnly;
}
public FindParameters readOnly(boolean readOnly) {
this.readOnly = readOnly;
return this;
}
public Object getId() {
return id;
}
public FindParameters id(Object id) {
this.id = id;
return this;
}
public String getFieldsToForceLazy() {
return fieldsToForceLazy;
}
public FindParameters fieldsToForceLazy(String fieldsToForceLazy) {
this.fieldsToForceLazy = fieldsToForceLazy;
return this;
}
public String getSql() {
return sql;
}
public FindParameters sql(String sql) {
this.sql = sql;
return this;
}
public Object getParameters() {
return parameters;
}
public FindParameters parameters(Object parameters) {
this.parameters = parameters;
return this;
}
public Pageable getPageable() {
return pageable;
}
public FindParameters pageable(Pageable pageable) {
this.pageable = pageable;
return this;
}
public Predicate getPredicate() {
return predicate;
}
public FindParameters predicate(Predicate predicate) {
this.predicate = predicate;
return this;
}
public OrderSpecifier>[] getOrders() {
return orders;
}
public FindParameters setOrders(OrderSpecifier>[] orders) {
this.orders = orders;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy