Examples of normalizeIdentifierQuoting()


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

   * @see #getValueColumnName()
   */
  protected String determineValueColumnName(Properties params, Dialect dialect) {
    ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER );
    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()

        ? params.getProperty( JPA_ENTITY_NAME ) + sequencePerEntitySuffix
        : SequenceStyleGenerator.DEF_SEQUENCE_NAME;
    final ObjectNameNormalizer normalizer = (ObjectNameNormalizer) params.get( PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER );
    sequenceName = ConfigurationHelper.getString( SequenceStyleGenerator.SEQUENCE_PARAM, params, sequenceName );
    if ( sequenceName.indexOf( '.' ) < 0 ) {
      sequenceName = normalizer.normalizeIdentifierQuoting( sequenceName );

      final String schemaName = params.getProperty( PersistentIdentifierGenerator.SCHEMA );
      if ( schemaName != null ) {
        log.schemaOptionNotSupportedForSequenceGenerator( schemaName );
      }
View Full Code Here

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

    tableName = normalizer.normalizeIdentifierQuoting( PropertiesHelper.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(
            PropertiesHelper.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(
            PropertiesHelper.getString( PK_COLUMN_NAME, params, DEFAULT_PK_COLUMN )
        )
    );
    valueColumnName = dialect.quote(
        normalizer.normalizeIdentifierQuoting(
            PropertiesHelper.getString( VALUE_COLUMN_NAME, params, DEFAULT_VALUE_COLUMN )
        )
    );
    keySize = PropertiesHelper.getInt(PK_LENGTH_NAME, params, DEFAULT_PK_LENGTH);
    String keyValue = PropertiesHelper.getString(PK_VALUE_NAME, params, params.getProperty(TABLE) );
View Full Code Here

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

    return identifierType;
  }

  public void configure(Type type, Properties params, Dialect dialect) throws MappingException {
    ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );
    sequenceName = normalizer.normalizeIdentifierQuoting(
        PropertiesHelper.getString( SEQUENCE, params, "hibernate_sequence" )
    );
    parameters = params.getProperty( PARAMETERS );

    if ( sequenceName.indexOf( '.' ) < 0 ) {
View Full Code Here

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

        PropertiesHelper.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()

   */
  protected String determineSequenceName(Properties params, Dialect dialect) {
    ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );
    String sequenceName = PropertiesHelper.getString( SEQUENCE_PARAM, params, DEF_SEQUENCE_NAME );
    if ( sequenceName.indexOf( '.' ) < 0 ) {
      sequenceName = normalizer.normalizeIdentifierQuoting( sequenceName );
      String schemaName = params.getProperty( SCHEMA );
      String catalogName = params.getProperty( CATALOG );
      sequenceName = Table.qualify(
          dialect.quote( catalogName ),
          dialect.quote( schemaName ),
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.