Examples of normalizeIdentifierQuoting()


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

    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 ) )
      );
      final String catalogName = dialect.quote(
          normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) )
      );
      tableName = Table.qualify( catalogName, schemaName, tableName );
View Full Code Here

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

      tableName = dialect.quote( tableName );
      final String schemaName = dialect.quote(
          normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) )
      );
      final String catalogName = dialect.quote(
          normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) )
      );
      tableName = Table.qualify( catalogName, schemaName, tableName );
    }
    else {
      // if already qualified there is not much we can do in a portable manner so we pass it
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.
    }

    pkColumnName = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
            ConfigurationHelper.getString( PK_COLUMN_NAME, params, DEFAULT_PK_COLUMN )
        )
    );
    valueColumnName = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
View Full Code Here

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

        normalizer.normalizeIdentifierQuoting(
            ConfigurationHelper.getString( PK_COLUMN_NAME, params, DEFAULT_PK_COLUMN )
        )
    );
    valueColumnName = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
            ConfigurationHelper.getString( VALUE_COLUMN_NAME, params, DEFAULT_VALUE_COLUMN )
        )
    );
    keySize = ConfigurationHelper.getInt(PK_LENGTH_NAME, params, DEFAULT_PK_LENGTH);
    String keyValue = ConfigurationHelper.getString(PK_VALUE_NAME, params, params.getProperty(TABLE) );
View Full Code Here

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

  protected String determineGeneratorTableName(Properties params, Dialect dialect) {
    String name = ConfigurationHelper.getString( TABLE_PARAM, params, DEF_TABLE );
    final boolean isGivenNameUnqualified = name.indexOf( '.' ) < 0;
    if ( isGivenNameUnqualified ) {
      final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER );
      name = normalizer.normalizeIdentifierQuoting( name );
      // if the given name is un-qualified we may neen to qualify it
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      name = Table.qualify(
          dialect.quote( catalogName ),
View Full Code Here

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

    final boolean isGivenNameUnqualified = name.indexOf( '.' ) < 0;
    if ( isGivenNameUnqualified ) {
      final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER );
      name = normalizer.normalizeIdentifierQuoting( name );
      // if the given name is un-qualified we may neen to qualify it
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      name = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
          dialect.quote( name)
View Full Code Here

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

    if ( isGivenNameUnqualified ) {
      final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER );
      name = normalizer.normalizeIdentifierQuoting( name );
      // if the given name is un-qualified we may neen to qualify it
      final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
      final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
      name = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
          dialect.quote( name)
      );
View Full Code Here

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

   * @return The name of the segment column
   */
  protected String determineSegmentColumnName(Properties params, Dialect dialect) {
    final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER );
    final String name = ConfigurationHelper.getString( SEGMENT_COLUMN_PARAM, params, DEF_SEGMENT_COLUMN );
    return dialect.quote( normalizer.normalizeIdentifierQuoting( name ) );
  }

  /**
   * Determine the name of the column in which we will store the generator persistent value.
   * <p/>
 
View Full Code Here

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

   * @return The name of the value column
   */
  protected String determineValueColumnName(Properties params, Dialect dialect) {
    final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( IDENTIFIER_NORMALIZER );
    final String name = ConfigurationHelper.getString( VALUE_COLUMN_PARAM, params, DEF_VALUE_COLUMN );
    return dialect.quote( normalizer.normalizeIdentifierQuoting( name ) );
  }

  /**
   * Determine the segment value corresponding to this generator instance.
   * <p/>
 
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.