Examples of checkVersion()


Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

           SQLState.LANG_MODIFY_COLUMN_FKEY_CONSTRAINT,
                     name, existingConstraint.getConstraintName());
     
      else
      {
        if (!dd.checkVersion(
          DataDictionary.DD_VERSION_DERBY_10_4, null))
        {
          //if a column is part of unique constraint it can't be
          //made nullable in soft upgrade mode from a pre-10.4 db.
          if ((getNodeType() ==
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

            throw new IllegalStateException("No context, unable to determine " +
                    "which stream header format to generate");
        } else {
            DataDictionary dd = dbCtx.getDatabase().getDataDictionary();
            try {
                inSoftUpgradeMode = Boolean.valueOf(!dd.checkVersion(
                        DataDictionary.DD_VERSION_DERBY_10_5, null));
            } catch (StandardException se) {
                // This should never happen as long as the second argument
                // above is null. If it happens, just bomb out.
                IllegalStateException ise =
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

           SQLState.LANG_MODIFY_COLUMN_FKEY_CONSTRAINT,
                     name, existingConstraint.getConstraintName());
     
      else
      {
        if (!dd.checkVersion(
          DataDictionary.DD_VERSION_DERBY_10_4, null))
        {
                    // If a column is part of unique constraint it can't be
                    // made nullable in soft upgrade mode from a pre-10.4 db.
                    if (kind == K_MODIFY_COLUMN_CONSTRAINT &&
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

            throw new IllegalStateException("No context, unable to determine " +
                    "which stream header format to generate");
        } else {
            DataDictionary dd = dbCtx.getDatabase().getDataDictionary();
            try {
                isPreDerbyTenFive = Boolean.valueOf(!dd.checkVersion(
                        DataDictionary.DD_VERSION_DERBY_10_5, null));
            } catch (StandardException se) {
                // This should never happen as long as the second argument
                // above is null. If it happens, just bomb out.
                IllegalStateException ise =
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

                //
                // If we're at level 10.11 or higher, we create a sequence generator
                // for the auto-increment column. See derby-6542.
                //
                if ( dd.checkVersion( DataDictionary.DD_VERSION_DERBY_10_11, null ) )
                {
                    CreateSequenceConstantAction    csca = makeCSCA
                        ( columnInfo[ ix ], TableDescriptor.makeSequenceName( toid ) );
                    csca.executeConstantAction( activation );
                }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

                     constraintSd.getSchemaName() + "."+ constraintName,
                    td.getQualifiedName());
        }

        if (characteristics[2] != ConstraintDefinitionNode.ENFORCED_DEFAULT) {
            dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_11,
                            "DEFERRED CONSTRAINTS");

            if (constraintType == DataDictionary.FOREIGNKEY_CONSTRAINT ||
                constraintType == DataDictionary.NOTNULL_CONSTRAINT ||
                !characteristics[2] /* not enforced */) {
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

    indexProperties.put("baseConglomerateId",
              Long.toString(td.getHeapConglomerateId()));
       
        if (uniqueWithDuplicateNulls && !hasDeferrableChecking)
        {
            if (dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_4, null))
            {
        indexProperties.put(
                    "uniqueWithDuplicateNulls", Boolean.toString(true));
      }
      else
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

              Integer.toString(baseColumnPositions.length + 1));

    // For now, assume that all index columns are ordered columns
    if (! shareExisting)
    {
            if (dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_4, null))
            {
                indexRowGenerator = new IndexRowGenerator(
                        indexType,
                        unique,
                        uniqueWithDuplicateNulls,
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

            // sequence generator which backs the identity column.
            // See DERBY-6542.
            //
            if (
                cd.isAutoincrement() &&
                dd.checkVersion( DataDictionary.DD_VERSION_DERBY_10_11, null )
                )
            {
                dropIdentitySequence( dd, td, activation );
            }
           
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.checkVersion()

        // if this is 10.11 or higher and the table has an identity column,
        // get the uuid of the sequence generator backing the identity column
        if (
            targetTableDescriptor.tableHasAutoincrement() &&
            dd.checkVersion( DataDictionary.DD_VERSION_DERBY_10_11, null )
            )
        {
            SequenceDescriptor  seq = dd.getSequenceDescriptor
                (
                 dd.getSystemSchemaDescriptor(),
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.