congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractEmptinessExpression.excludeEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
excludeEmpty
method
in
org.hibernate.criterion.AbstractEmptinessExpression

Best Java code snippets using org.hibernate.criterion.AbstractEmptinessExpression.excludeEmpty (Showing top 10 results out of 315)

origin: hibernate/hibernate-orm

  @Override
  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
origin: hibernate/hibernate-orm

@Override
public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException {
  final String entityName = criteriaQuery.getEntityName( criteria, propertyName );
  final String actualPropertyName = criteriaQuery.getPropertyName( propertyName );
  final String sqlAlias = criteriaQuery.getSQLAlias( criteria, propertyName );
  final SessionFactoryImplementor factory = criteriaQuery.getFactory();
  final QueryableCollection collectionPersister = getQueryableCollection( entityName, actualPropertyName, factory );
  final String[] collectionKeys = collectionPersister.getKeyColumnNames();
  final String[] ownerKeys = ( (Loadable) factory.getEntityPersister( entityName ) ).getIdentifierColumnNames();
  final String innerSelect = "(select 1 from " + collectionPersister.getTableName() + " where "
      + new ConditionFragment().setTableAlias( sqlAlias ).setCondition( ownerKeys, collectionKeys ).toFragmentString()
      + ")";
  return excludeEmpty()
      ? "exists " + innerSelect
      : "not exists " + innerSelect;
}
origin: org.hibernate/com.springsource.org.hibernate

  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
origin: hibernate/hibernate

  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException {
  String entityName = criteriaQuery.getEntityName( criteria, propertyName );
  String actualPropertyName = criteriaQuery.getPropertyName( propertyName );
  String sqlAlias = criteriaQuery.getSQLAlias( criteria, propertyName );
  SessionFactoryImplementor factory = criteriaQuery.getFactory();
  QueryableCollection collectionPersister = getQueryableCollection( entityName, actualPropertyName, factory );
  String[] collectionKeys = collectionPersister.getKeyColumnNames();
  String[] ownerKeys = ( ( Loadable ) factory.getEntityPersister( entityName ) ).getIdentifierColumnNames();
  String innerSelect = "(select 1 from " + collectionPersister.getTableName()
      + " where "
      + new ConditionFragment().setTableAlias( sqlAlias ).setCondition( ownerKeys, collectionKeys ).toFragmentString()
      + ")";
  return excludeEmpty()
      ? "exists " + innerSelect
      : "not exists " + innerSelect;
}
origin: org.hibernate/com.springsource.org.hibernate

public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException {
  String entityName = criteriaQuery.getEntityName( criteria, propertyName );
  String actualPropertyName = criteriaQuery.getPropertyName( propertyName );
  String sqlAlias = criteriaQuery.getSQLAlias( criteria, propertyName );
  SessionFactoryImplementor factory = criteriaQuery.getFactory();
  QueryableCollection collectionPersister = getQueryableCollection( entityName, actualPropertyName, factory );
  String[] collectionKeys = collectionPersister.getKeyColumnNames();
  String[] ownerKeys = ( ( Loadable ) factory.getEntityPersister( entityName ) ).getIdentifierColumnNames();
  String innerSelect = "(select 1 from " + collectionPersister.getTableName()
      + " where "
      + new ConditionFragment().setTableAlias( sqlAlias ).setCondition( ownerKeys, collectionKeys ).toFragmentString()
      + ")";
  return excludeEmpty()
      ? "exists " + innerSelect
      : "not exists " + innerSelect;
}
origin: hibernate/hibernate

public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException {
  String entityName = criteriaQuery.getEntityName( criteria, propertyName );
  String actualPropertyName = criteriaQuery.getPropertyName( propertyName );
  String sqlAlias = criteriaQuery.getSQLAlias( criteria, propertyName );
  SessionFactoryImplementor factory = criteriaQuery.getFactory();
  QueryableCollection collectionPersister = getQueryableCollection( entityName, actualPropertyName, factory );
  String[] collectionKeys = collectionPersister.getKeyColumnNames();
  String[] ownerKeys = ( ( Loadable ) factory.getEntityPersister( entityName ) ).getIdentifierColumnNames();
  String innerSelect = "(select 1 from " + collectionPersister.getTableName()
      + " where "
      + new ConditionFragment().setTableAlias( sqlAlias ).setCondition( ownerKeys, collectionKeys ).toFragmentString()
      + ")";
  return excludeEmpty()
      ? "exists " + innerSelect
      : "not exists " + innerSelect;
}
origin: org.hibernate/com.springsource.org.hibernate.core

public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException {
  String entityName = criteriaQuery.getEntityName( criteria, propertyName );
  String actualPropertyName = criteriaQuery.getPropertyName( propertyName );
  String sqlAlias = criteriaQuery.getSQLAlias( criteria, propertyName );
  SessionFactoryImplementor factory = criteriaQuery.getFactory();
  QueryableCollection collectionPersister = getQueryableCollection( entityName, actualPropertyName, factory );
  String[] collectionKeys = collectionPersister.getKeyColumnNames();
  String[] ownerKeys = ( ( Loadable ) factory.getEntityPersister( entityName ) ).getIdentifierColumnNames();
  String innerSelect = "(select 1 from " + collectionPersister.getTableName()
      + " where "
      + new ConditionFragment().setTableAlias( sqlAlias ).setCondition( ownerKeys, collectionKeys ).toFragmentString()
      + ")";
  return excludeEmpty()
      ? "exists " + innerSelect
      : "not exists " + innerSelect;
}
org.hibernate.criterionAbstractEmptinessExpressionexcludeEmpty

Javadoc

Should empty rows be excluded?

Popular methods of AbstractEmptinessExpression

  • getQueryableCollection

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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