Tabnine Logo
RestrictionsFactoryUtil
Code IndexAdd Tabnine to your IDE (free)

How to use
RestrictionsFactoryUtil
in
com.liferay.portal.kernel.dao.orm

Best Java code snippets using com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil (Showing top 20 results out of 315)

origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion eqProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().eqProperty(
    propertyName, otherPropertyName);
}
origin: com.liferay/com.liferay.journal.service

Conjunction conjunction = RestrictionsFactoryUtil.conjunction();
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.gtProperty(
    "modifiedDate", "lastPublishDate"));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
origin: com.liferay/com.liferay.portal.settings.web

dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(
  RestrictionsFactoryUtil.like(
    "typeSettings", "%inheritLocales=false%"));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
    RestrictionsFactoryUtil.like(
      "typeSettings", "%languageId=" + removedLanguageId + "%"));
origin: com.liferay/com.liferay.exportimport.service

DynamicQuery dynamicQuery) {
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
    RestrictionsFactoryUtil.disjunction();
    Conjunction conjunction = RestrictionsFactoryUtil.conjunction();
origin: com.liferay/com.liferay.dynamic.data.mapping.service

protected DynamicQuery getFormInstanceDynamicQuery() {
  StagedModelDataHandler<?> stagedModelDataHandler =
    StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(
      DDMFormInstanceRecord.class.getName());
  Class<?> clazz = stagedModelDataHandler.getClass();
  DynamicQuery formInstanceDynamicQuery =
    DynamicQueryFactoryUtil.forClass(
      DDMFormInstance.class, "formInstance", clazz.getClassLoader());
  formInstanceDynamicQuery.setProjection(
    ProjectionFactoryUtil.property("formInstanceId"));
  formInstanceDynamicQuery.add(
    RestrictionsFactoryUtil.eqProperty(
      "formInstance.formInstanceId", "formInstanceId"));
  return formInstanceDynamicQuery;
}
origin: com.liferay/com.liferay.journal.service

addCriteriaMethod.addCriteria(dynamicQuery);
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
origin: com.liferay/com.liferay.exportimport.service

@Override
public Criterion getDateRangeCriteria(String propertyName) {
  if (!hasDateRange()) {
    return null;
  }
  Conjunction conjunction = RestrictionsFactoryUtil.conjunction();
  Property property = PropertyFactoryUtil.forName(propertyName);
  conjunction.add(property.le(_endDate));
  conjunction.add(property.ge(_startDate));
  return conjunction;
}
origin: com.liferay/com.liferay.journal.service

RestrictionsFactoryUtil.or(
  treePathProperty.isNull(),
  treePathProperty.ne(treePath)));
origin: com.liferay/com.liferay.journal.service

Conjunction conjunction = RestrictionsFactoryUtil.conjunction();
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(RestrictionsFactoryUtil.gtProperty(
    "modifiedDate", "lastPublishDate"));
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
origin: com.liferay/com.liferay.dynamic.data.mapping.service

protected DynamicQuery getRecordVersionDynamicQuery() {
  StagedModelDataHandler<?> stagedModelDataHandler =
    StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(
      DDMFormInstanceRecord.class.getName());
  Class<?> clazz = stagedModelDataHandler.getClass();
  DynamicQuery formInstanceRecordVersionDynamicQuery =
    DynamicQueryFactoryUtil.forClass(
      DDMFormInstanceRecordVersion.class, "formInstanceRecordVersion",
      clazz.getClassLoader());
  formInstanceRecordVersionDynamicQuery.setProjection(
    ProjectionFactoryUtil.property("formInstanceRecordId"));
  Property statusProperty = PropertyFactoryUtil.forName("status");
  formInstanceRecordVersionDynamicQuery.add(
    statusProperty.in(stagedModelDataHandler.getExportableStatuses()));
  formInstanceRecordVersionDynamicQuery.add(
    RestrictionsFactoryUtil.eqProperty(
      "formInstanceRecordVersion.version", "version"));
  formInstanceRecordVersionDynamicQuery.add(
    RestrictionsFactoryUtil.eqProperty(
      "formInstanceRecordVersion.formInstanceRecordId",
      "formInstanceRecordId"));
  return formInstanceRecordVersionDynamicQuery;
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion leProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().leProperty(
    propertyName, otherPropertyName);
}
origin: com.liferay/com.liferay.journal.service

RestrictionsFactoryUtil.eqProperty(
  "journalArticle.resourcePrimKey",
  "this.resourcePrimKey"));
RestrictionsFactoryUtil.eqProperty(
  "journalArticle.groupId", "this.groupId"));
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion neProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().neProperty(
    propertyName, otherPropertyName);
}
origin: com.liferay/com.liferay.journal.service

RestrictionsFactoryUtil.eqProperty(
  "this.resourcePrimKey",
  "versionArticle.resourcePrimKey"));
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion sqlRestriction(
  String sql, Object[] values, Type[] types) {
  return getRestrictionsFactory().sqlRestriction(sql, values, types);
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion ltProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().ltProperty(
    propertyName, otherPropertyName);
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion geProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().geProperty(
    propertyName, otherPropertyName);
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion gtProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().gtProperty(
    propertyName, otherPropertyName);
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion and(Criterion lhs, Criterion rhs) {
  return getRestrictionsFactory().and(lhs, rhs);
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion ge(String propertyName, Object value) {
  return getRestrictionsFactory().ge(propertyName, value);
}
com.liferay.portal.kernel.dao.ormRestrictionsFactoryUtil

Most used methods

  • disjunction
  • conjunction
  • eqProperty
  • getRestrictionsFactory
  • eq
  • gtProperty
  • like
  • or

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Reference (javax.naming)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now