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

How to use
AbstractEmptinessExpression
in
org.hibernate.criterion

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

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: hibernate/hibernate-orm

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

  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: hibernate/hibernate

  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
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: jboss.jboss-embeddable-ejb3/hibernate-all

  public final String toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
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 toString() {
    return propertyName + ( excludeEmpty() ? " is not empty" : " is empty" );
  }
}
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.criterionAbstractEmptinessExpression

Javadoc

Base expression implementation for (not) emptiness checking of collection properties

Most used methods

  • excludeEmpty
  • getQueryableCollection

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JButton (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot alternatives
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