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

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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