Package org.hibernate.sql

Examples of org.hibernate.sql.Alias


  public boolean isArray() {
    return isArray;
  }

  public String[] getKeyColumnAliases(String suffix) {
    return new Alias( suffix ).toAliasStrings( keyColumnAliases );
  }
View Full Code Here


  public String[] getKeyColumnAliases(String suffix) {
    return new Alias( suffix ).toAliasStrings( keyColumnAliases );
  }

  public String[] getElementColumnAliases(String suffix) {
    return new Alias( suffix ).toAliasStrings( elementColumnAliases );
  }
View Full Code Here

    return new Alias( suffix ).toAliasStrings( elementColumnAliases );
  }

  public String[] getIndexColumnAliases(String suffix) {
    if ( hasIndex ) {
      return new Alias( suffix ).toAliasStrings( indexColumnAliases );
    }
    else {
      return null;
    }
  }
View Full Code Here

    }
  }

  public String getIdentifierColumnAlias(String suffix) {
    if ( hasIdentifier ) {
      return new Alias( suffix ).toAliasString( identifierColumnAlias );
    }
    else {
      return null;
    }
  }
View Full Code Here

      return null;
    }
   
    String result[] = new String[rawAliases.length];
    for ( int i=0; i<rawAliases.length; i++ ) {
      result[i] = new Alias(suffix).toUnquotedAliasString( rawAliases[i] );
    }
    return result;
  }
View Full Code Here

  public String[] getIdentifierAliases(String suffix) {
    // NOTE: this assumes something about how propertySelectFragment is implemented by the subclass!
    // was toUnqotedAliasStrings( getIdentiferColumnNames() ) before - now tried
    // to remove that unqoting and missing aliases..
    return new Alias( suffix ).toAliasStrings( getIdentifierAliases() );
  }
View Full Code Here

    return new Alias( suffix ).toAliasStrings( getIdentifierAliases() );
  }

  public String[] getPropertyAliases(String suffix, int i) {
    // NOTE: this assumes something about how propertySelectFragment is implemented by the subclass!
    return new Alias( suffix ).toUnquotedAliasStrings( propertyColumnAliases[i] );
  }
View Full Code Here

  public String getDiscriminatorAlias(String suffix) {
    // NOTE: this assumes something about how propertySelectFragment is implemented by the subclass!
    // was toUnqotedAliasStrings( getdiscriminatorColumnName() ) before - now tried
    // to remove that unqoting and missing aliases..
    return entityMetamodel.hasSubclasses() ?
        new Alias( suffix ).toAliasString( getDiscriminatorAlias() ) :
        null;
  }
View Full Code Here

      return null;
    }

    String result[] = new String[rawAliases.length];
    for ( int i = 0; i < rawAliases.length; i++ ) {
      result[i] = new Alias( suffix ).toUnquotedAliasString( rawAliases[i] );
    }
    return result;
  }
View Full Code Here

        if(key==null) {
          log.warn("The JDBC driver didn't report any primary key columns in " + table.getName() + ". Asking rev.eng. strategy" );
          List userPrimaryKey = revengStrategy.getPrimaryKeyColumnNames(TableIdentifier.create(table));
          if(userPrimaryKey!=null && !userPrimaryKey.isEmpty()) {
            key = new PrimaryKey();
            key.setName(new Alias(15, "PK").toAliasString( table.getName()));
            key.setTable(table);
            if(table.getPrimaryKey()!=null) {
              throw new JDBCBinderException(table + " already has a primary key!"); //TODO: ignore ?
            }
            table.setPrimaryKey(key);
View Full Code Here

TOP

Related Classes of org.hibernate.sql.Alias

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.