Examples of UuidFactory

All references in this code to bit positions as "least significant" and "most significant" refer to the bits moving from right to left, respectively.


Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

      // load it into the array. There is a small chance that
      // two threads will do this at the same time. The code will
      // work properly in that case, since storing a reference
      // is atomic (although we could get extra object instantiation
      // if two threads come through here at the same time.
      UUIDFactory luuidFactory = uuidFactory;

      switch (catalogNumber)
      {
        case SYSCONSTRAINTS_CATALOG_NUM:
        retval = new TabInfoImpl(new SYSCONSTRAINTSRowFactory(
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

        "Wrong number of columns for a SYSSTATISTICS row");
    }

    DataValueDescriptor col;
    String scratch;
    UUIDFactory uuidFactory = getUUIDFactory();
    UUID statUUID, statReferenceUUID, statTableUUID;
    String statName;
   
    /* 1st column is UUID */
    col = row.getColumn(SYSSTATISTICS_ID);
    scratch = col.getString();
    statUUID = uuidFactory.recreateUUID(scratch);

    /* 2nd column is reference UUID */
    col = row.getColumn(SYSSTATISTICS_REFERENCEID);
    scratch = col.getString();
    statReferenceUUID = uuidFactory.recreateUUID(scratch);

    /* 3rd column is table UUID */
    col = row.getColumn(SYSSTATISTICS_TABLEID);
    scratch = col.getString();
    statTableUUID = uuidFactory.recreateUUID(scratch);

    /* 4th column is timestamp */
    col = row.getColumn(SYSSTATISTICS_TIMESTAMP);
    Timestamp updateTime = (Timestamp) col.getObject();

View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

    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

      UUIDFactory  uuidFactory  = Monitor.getMonitor().getUUIDFactory();

     
      upgradeID = startParams.getProperty(DataDictionary.DATABASE_ID);
      if (upgradeID == null )
      {
        // just create one
        databaseID = uuidFactory.createUUID();
      } else {
        databaseID = uuidFactory.recreateUUID(upgradeID);
      }

      tc.setProperty(DataDictionary.DATABASE_ID, databaseID, true);
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

                       indexColumnPositions.length : 0;

    this.catalogName = convertIdCase(catalogName);
    this.columnCount = columnCount;

    UUIDFactory  uf = getUUIDFactory();
    this.tableUUID = uf.recreateUUID(uuidStrings[0] );
    this.heapUUID = uf.recreateUUID( uuidStrings[1] );

    if (indexCount > 0)
    {
      indexNames = new String[indexCount];
      indexUUID = new UUID[indexCount];
      for (int ictr = 0; ictr < indexCount; ictr++)
      {
        indexNames[ictr] = generateIndexName(ictr);
        indexUUID[ictr] = uf.recreateUUID(uuidStrings[ictr + 2 ]);
      }
      this.indexColumnPositions = indexColumnPositions;
      this.indexUniqueness = indexUniqueness;
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

  public void  boot(boolean create, Properties startParams)
    throws StandardException
  {
    // Find the UUID factory.
    UUIDFactory uuidFactory =
            Monitor.getMonitor().getUUIDFactory();

    // Make a UUID that identifies this conglomerate's format.
    formatUUID = uuidFactory.recreateUUID(FORMATUUIDSTRING);
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

  private void initializeCoreInfo()
    throws StandardException
  {
    TabInfoImpl[] lcoreInfo = coreInfo = new TabInfoImpl[NUM_CORE];

    UUIDFactory luuidFactory = uuidFactory;

    lcoreInfo[SYSTABLES_CORE_NUM] =
      new TabInfoImpl(new SYSTABLESRowFactory(luuidFactory, exFactory, dvf));
    lcoreInfo[SYSCOLUMNS_CORE_NUM] =
      new TabInfoImpl(new SYSCOLUMNSRowFactory(luuidFactory, exFactory, dvf));
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

      // load it into the array. There is a small chance that
      // two threads will do this at the same time. The code will
      // work properly in that case, since storing a reference
      // is atomic (although we could get extra object instantiation
      // if two threads come through here at the same time.
      UUIDFactory luuidFactory = uuidFactory;

      switch (catalogNumber)
      {
        case SYSCONSTRAINTS_CATALOG_NUM:
        retval = new TabInfoImpl(new SYSCONSTRAINTSRowFactory(
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

   
    jarCPath = jarClassPath(getClass());

    dataDirectory = startParams.getProperty(PersistentService.ROOT);

    UUIDFactory uf = Monitor.getMonitor().getUUIDFactory();

    identifier = uf.createUUID();

        PersistentService ps = Monitor.getMonitor().getServiceType(this);

        try
        {
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

    lcc.addActivation(this);

    isValid = true;

    /* Get the UUID for this activation */
    UUIDFactory uuidFactory =
      Monitor.getMonitor().getUUIDFactory();

    UUIDValue = uuidFactory.createUUID();
    UUIDString = UUIDValue.toString();
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.uuid.UUIDFactory

  // constructors
  //

  GenericPreparedStatement() {
    /* Get the UUID for this prepared statement */
    UUIDFactory uuidFactory =
      Monitor.getMonitor().getUUIDFactory();

    UUIDValue = uuidFactory.createUUID();
    UUIDString = UUIDValue.toString();
    spsAction = false;
  }
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.