Package org.apache.derby.catalog

Examples of org.apache.derby.catalog.UUID


            fileLockOnDB.writeUTF(myUUID.toString());

            fileLockOnDB.sync( false);
            fileLockOnDB.seek(0);
            // check the UUID
            UUID checkUUID = uuidFactory.recreateUUID(fileLockOnDB.readUTF());
            if (!checkUUID.equals(myUUID))
            {
                throw StandardException.newException(
                    SQLState.DATA_MULTIPLE_JBMS_ON_DB, databaseDirectory);
            }
        }
View Full Code Here


    List sdl = getStatistics();

    if (cd == null)
      return (sdl.size() > 0);

    UUID cdUUID = cd.getUUID();

    for (Iterator li = sdl.iterator(); li.hasNext(); )
    {
      StatisticsDescriptor statDesc = (StatisticsDescriptor) li.next();
      if (cdUUID.equals(statDesc.getReferenceID()))
        return true;

    }

    return false;
View Full Code Here

          selectivity *= 0.1;
        return selectivity;
      }
    }
   
    UUID referenceUUID = cd.getUUID();

    List sdl = getStatistics();
    for (Iterator li = sdl.iterator(); li.hasNext(); )
    {
      StatisticsDescriptor statDesc = (StatisticsDescriptor) li.next();

      if (!referenceUUID.equals(statDesc.getReferenceID()))
        continue;
     
      if (statDesc.getColumnCount() != numKeys)
        continue;
     
View Full Code Here

      {
        continue;
      }

      TableDescriptor  pktd = refcd.getTableDescriptor();
      UUID pkuuid = refcd.getIndexId();
      ConglomerateDescriptor pkIndexConglom = pktd.getConglomerateDescriptor(pkuuid);

      TableDescriptor refTd = cd.getTableDescriptor();
      fkVector.add(new FKInfo(
                  fkNames,              // foreign key names
View Full Code Here

   
    TransactionController tc = af.getTransaction(
        ContextService.getFactory().getCurrentContextManager());

    String  upgradeID = null;
    UUID  databaseID;

    if ((databaseID = (UUID) tc.getProperty(DataDictionary.DATABASE_ID)) == null) {

      // no property defined in the Transaction set
      // this could be an upgrade, see if it's stored in the service set
View Full Code Here

  {
    DataTypeDescriptor    dtd;
    ExecRow            row;
    DataValueDescriptor    col;
    String          name = null;
    UUID          uuid = null;
    String          uuidStr = null
    String          suuidStr = null// schema 
    String          compUuidStr = null// compilation schema 
    String          text = null;
    String          usingText = null;
    ExecPreparedStatement  preparedStatement = null;
    String          typeStr = null;
    boolean          valid = true;
    Timestamp        time = null;
    boolean          initiallyCompilable = true;

    if (spsDescriptor != null)
    {
      name = spsDescriptor.getName();
      uuid = spsDescriptor.getUUID();
      suuidStr = spsDescriptor.getSchemaDescriptor().getUUID().toString();
      uuidStr = uuid.toString();
      text = spsDescriptor.getText();     
      valid = spsDescriptor.isValid();
      time = spsDescriptor.getCompileTime();
      typeStr = spsDescriptor.getTypeAsString();
      initiallyCompilable = spsDescriptor.initiallyCompilable();
View Full Code Here

    DataValueDescriptor      col;
    SPSDescriptor        descriptor;
    String            name;
    String            text;
    String            usingText;
    UUID            uuid;
    UUID            compUuid = null;
    String            uuidStr;
    UUID            suuid;    // schema
    String            suuidStr;  // schema
    String            typeStr;
    char            type;
    boolean            valid;
    Timestamp          time = null;
View Full Code Here

            td.getHeapConglomerateId(),
            colNumber,
            storableDV,
            columnInfo[ix].dataType.getCollationType());

    UUID defaultUUID = columnInfo[ix].newDefaultUUID;

    /* Generate a UUID for the default, if one exists
     * and there is no default id yet.
     */
    if (columnInfo[ix].defaultInfo != null &&
View Full Code Here

   
      // Drop any dependencies
      dm.clearDependencies(lcc, defaultDescriptor);
    }

    UUID defaultUUID = columnInfo[ix].newDefaultUUID;

    /* Generate a UUID for the default, if one exists
     * and there is no default id yet.
     */
    if (columnInfo[ix].defaultInfo != null &&
View Full Code Here

      deps.add(dy);
      table.put(key, deps);
    }
    else {
      /* Make sure that we're not adding a duplicate dependency */
      UUID  provKey = dy.getProvider().getObjectID();
      UUID  depKey = dy.getDependent().getObjectID();

      for (ListIterator depsIT = deps.listIterator();  depsIT.hasNext(); )
      {
        Dependency curDY = (Dependency)depsIT.next();
        if (curDY.getProvider().getObjectID().equals(provKey) &&
View Full Code Here

TOP

Related Classes of org.apache.derby.catalog.UUID

Copyright © 2018 www.massapicom. 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.