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

    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

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

    // Make a UUID that identifies this sort's format.
    formatUUID = uuidFactory.recreateUUID(FORMATUUIDSTRING);

    // See if there's a new maximum sort buffer size.
    defaultSortBufferMax = PropertyUtil.getSystemInt("derby.storage.sortBufferMax",
                0, Integer.MAX_VALUE, 0);
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

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

    this.indexable = indexable;
    this.indexRowGenerator = indexRowGenerator;
    this.forConstraint = forConstraint;
    if (uuid == null)
    {
      UUIDFactory uuidFactory = Monitor.getMonitor().getUUIDFactory();
      uuid = uuidFactory.createUUID();
    }
    this.uuid = uuid;
    this.tableID = tableID;
    this.schemaID = schemaID;
  }
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

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

    // Make a UUID that identifies this sort's format.
    formatUUID = uuidFactory.recreateUUID(FORMATUUIDSTRING);

    // See if there's a new maximum sort buffer size.
    defaultSortBufferMax = PropertyUtil.getSystemInt("derby.storage.sortBufferMax",
                0, Integer.MAX_VALUE, 0);
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

  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
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.