Codota Logo
RestrictionsFactoryUtil
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
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 neProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().neProperty(
    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 leProperty(
  String propertyName, String otherPropertyName) {
  return getRestrictionsFactory().leProperty(
    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 sqlRestriction(String sql) {
  return getRestrictionsFactory().sqlRestriction(sql);
}
origin: com.liferay.portal/com.liferay.portal.kernel

public static Criterion sizeGe(String propertyName, int size) {
  return getRestrictionsFactory().sizeGe(propertyName, size);
}
com.liferay.portal.kernel.dao.ormRestrictionsFactoryUtil

Most used methods

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

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now