Examples of normalizeIdentifierQuoting()


Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

        ConfigurationHelper.getString( SEQUENCE, params, "hibernate_sequence" )
    );
    parameters = params.getProperty( PARAMETERS );

    if ( sequenceName.indexOf( '.' ) < 0 ) {
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      sequenceName = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
          dialect.quote( sequenceName )
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

    );
    parameters = params.getProperty( PARAMETERS );

    if ( sequenceName.indexOf( '.' ) < 0 ) {
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      sequenceName = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
          dialect.quote( sequenceName )
      );
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

    String column = params.getProperty( "column" );
    if ( column == null ) {
      column = params.getProperty( PersistentIdentifierGenerator.PK );
    }
    column = dialect.quote( normalizer.normalizeIdentifierQuoting( column ) );

    String tableList = params.getProperty( "tables" );
    if ( tableList == null ) {
      tableList = params.getProperty( PersistentIdentifierGenerator.TABLES );
    }
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

      tableList = params.getProperty( PersistentIdentifierGenerator.TABLES );
    }
    String[] tables = StringHelper.split( ", ", tableList );

    final String schema = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
            params.getProperty( PersistentIdentifierGenerator.SCHEMA )
        )
    );
    final String catalog = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

        normalizer.normalizeIdentifierQuoting(
            params.getProperty( PersistentIdentifierGenerator.SCHEMA )
        )
    );
    final String catalog = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
            params.getProperty( PersistentIdentifierGenerator.CATALOG )
        )
    );

    StringBuilder buf = new StringBuilder();
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

        )
    );

    StringBuilder buf = new StringBuilder();
    for ( int i=0; i < tables.length; i++ ) {
      final String tableName = dialect.quote( normalizer.normalizeIdentifierQuoting( tables[i] ) );
      if ( tables.length > 1 ) {
        buf.append( "select max(" ).append( column ).append( ") as mx from " );
      }
      buf.append( Table.qualify( catalog, schema, tableName ) );
      if ( i < tables.length-1 ) {
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

    ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );

    tableName = ConfigurationHelper.getString( TABLE, params, DEFAULT_TABLE_NAME );
    if ( tableName.indexOf( '.' ) < 0 ) {
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      tableName = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
          dialect.quote( tableName )
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

    ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );

    tableName = ConfigurationHelper.getString( TABLE, params, DEFAULT_TABLE_NAME );
    if ( tableName.indexOf( '.' ) < 0 ) {
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      tableName = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
          dialect.quote( tableName )
      );
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

      // if already qualified there is not much we can do in a portable manner so we pass it
      // through and assume the user has set up the name correctly.
    }

    columnName = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
            ConfigurationHelper.getString( COLUMN, params, DEFAULT_COLUMN_NAME )
        )
    );

    query = "select " +
View Full Code Here

Examples of org.hibernate.cfg.ObjectNameNormalizer.normalizeIdentifierQuoting()

  }

  public void configure(Type type, Properties params, Dialect dialect) throws MappingException {
    ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );

    tableName = normalizer.normalizeIdentifierQuoting( ConfigurationHelper.getString( ID_TABLE, params, DEFAULT_TABLE ) );
    if ( tableName.indexOf( '.' ) < 0 ) {
      tableName = dialect.quote( tableName );
      final String schemaName = dialect.quote(
          normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) )
      );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.