Codota Logo
AbstractEmptinessExpression.getQueryableCollection
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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: 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.criterionAbstractEmptinessExpressiongetQueryableCollection

Popular methods of AbstractEmptinessExpression

  • excludeEmpty

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
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