Examples of checkVersion()


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

    DataDictionary dd = getLanguageConnectionContext().getDataDictionary();

    // If dictionary version is below 10.2, special case
    // getColumnPrivileges and getTablePrivileges since new system tables
    // for privileges wouldn't be present.
    if (!dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_2, null))
    {
      if (queryName.equals("getColumnPrivileges"))
        queryName = "getColumnPrivileges_10_1";

      if (queryName.equals("getTablePrivileges"))
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 ((getNodeType() ==
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 ((getNodeType() ==
View Full Code Here

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

      // Check is only performed if we have
      // derby.database.sqlAuthorization == true and we have
      // upgraded dictionary to at least level 10.4 (roles
      // introduced in 10.4):
      if (lcc.usesSqlAuthorization() &&
        dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_4, null)) {

        TransactionController tc = lcc.getTransactionExecute();

        String failedString =
          MessageService.getTextMessage(MessageId.AUTH_INVALID);
View Full Code Here

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

    DataDictionary dd = getLanguageConnectionContext().getDataDictionary();

    // If dictionary version is below 10.2, special case
    // getColumnPrivileges and getTablePrivileges since new system tables
    // for privileges wouldn't be present.
    if (!dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_2, null))
    {
      if (queryName.equals("getColumnPrivileges"))
        queryName = "getColumnPrivileges_10_1";

      if (queryName.equals("getTablePrivileges"))
View Full Code Here

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

    indexProperties.put("baseConglomerateId",
              Long.toString(td.getHeapConglomerateId()));
       
    if (uniqueWithDuplicateNulls)
        {
            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.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.checkVersion()

      // need events to move to further states.
      rmStore.start();

      if(recoveryEnabled) {
        try {
          rmStore.checkVersion();
          if (rmContext.isWorkPreservingRecoveryEnabled()) {
            rmContext.setEpoch(rmStore.getAndIncrementEpoch());
          }
          RMState state = rmStore.loadState();
          recover(state);
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.checkVersion()

      // need events to move to further states.
      rmStore.start();

      if(recoveryEnabled) {
        try {
          rmStore.checkVersion();
          RMState state = rmStore.loadState();
          recover(state);
        } catch (Exception e) {
          // the Exception from loadState() needs to be handled for
          // HA and we need to give up master status if we got fenced
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.checkVersion()

      // need events to move to further states.
      rmStore.start();

      if(recoveryEnabled) {
        try {
          rmStore.checkVersion();
          RMState state = rmStore.loadState();
          recover(state);
        } catch (Exception e) {
          // the Exception from loadState() needs to be handled for
          // HA and we need to give up master status if we got fenced
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.