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

    jbmsVersion = Monitor.getMonitor().getEngineVersion();

    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

    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

                       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

    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

    BaseTypeIdImpl    typeId;
    TypeId  wrapperTypeId;
    DataValueDescriptor  defaultValue = null;
    UUID        defaultUUID = null;
    UUID        uuid = null;
    UUIDFactory      uuidFactory = getUUIDFactory();
    long autoincStart, autoincInc;

    DataDescriptorGenerator  ddg = dd.getDataDescriptorGenerator();


    /*
    ** We're going to be getting the UUID for this sucka
    ** so make sure it is a UniqueTupleDescriptor.
    */
    if (parentTupleDescriptor != null)
    {
      if (SanityManager.DEBUG)
      {
        if (!(parentTupleDescriptor instanceof UniqueTupleDescriptor))
        {
          SanityManager.THROWASSERT(parentTupleDescriptor.getClass().getName()
              + " not instanceof UniqueTupleDescriptor")
        }
      }
      uuid = ((UniqueTupleDescriptor)parentTupleDescriptor).getUUID();
    }
    else
    {
      /* 1st column is REFERENCEID (char(36)) */
      uuid = uuidFactory.recreateUUID(row.getColumn(SYSCOLUMNS_REFERENCEID).
                          getString());
    }

    /* NOTE: We get columns 5 and 6 next in order to work around
     * a 1.3.0 HotSpot bug.  (#4361550)
     */

    // 5th column is COLUMNDEFAULT (serialiazable)
    Object object = row.getColumn(SYSCOLUMNS_COLUMNDEFAULT).getObject();
    if (object instanceof DataValueDescriptor)
    {
      defaultValue = (DataValueDescriptor) object;
    }
    else if (object instanceof DefaultInfoImpl)
    {
      defaultInfo = (DefaultInfoImpl) object;
      defaultValue = defaultInfo.getDefaultValue();
    }

    /* 6th column is DEFAULTID (char(36)) */
    defaultID = row.getColumn(SYSCOLUMNS_COLUMNDEFAULTID).getString();

    if (defaultID != null)
    {
      defaultUUID = uuidFactory.recreateUUID(defaultID);
    }

    /* 2nd column is COLUMNNAME (varchar(128)) */
    columnName = row.getColumn(SYSCOLUMNS_COLUMNNAME).getString();

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

  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

    BaseTypeIdImpl    typeId;
    TypeId  wrapperTypeId;
    DataValueDescriptor  defaultValue = null;
    UUID        defaultUUID = null;
    UUID        uuid = null;
    UUIDFactory      uuidFactory = getUUIDFactory();
    long autoincStart, autoincInc;

    DataDescriptorGenerator  ddg = dd.getDataDescriptorGenerator();


    /*
    ** We're going to be getting the UUID for this sucka
    ** so make sure it is a UniqueTupleDescriptor.
    */
    if (parentTupleDescriptor != null)
    {
      if (SanityManager.DEBUG)
      {
        if (!(parentTupleDescriptor instanceof UniqueTupleDescriptor))
        {
          SanityManager.THROWASSERT(parentTupleDescriptor.getClass().getName()
              + " not instanceof UniqueTupleDescriptor")
        }
      }
      uuid = ((UniqueTupleDescriptor)parentTupleDescriptor).getUUID();
    }
    else
    {
      /* 1st column is REFERENCEID (char(36)) */
      uuid = uuidFactory.recreateUUID(row.getColumn(SYSCOLUMNS_REFERENCEID).
                          getString());
    }

    /* NOTE: We get columns 5 and 6 next in order to work around
     * a 1.3.0 HotSpot bug.  (#4361550)
     */

    // 5th column is COLUMNDEFAULT (serialiazable)
    Object object = row.getColumn(SYSCOLUMNS_COLUMNDEFAULT).getObject();
    if (object instanceof DataValueDescriptor)
    {
      defaultValue = (DataValueDescriptor) object;
    }
    else if (object instanceof DefaultInfoImpl)
    {
      defaultInfo = (DefaultInfoImpl) object;
      defaultValue = defaultInfo.getDefaultValue();
    }

    /* 6th column is DEFAULTID (char(36)) */
    defaultID = row.getColumn(SYSCOLUMNS_COLUMNDEFAULTID).getString();

    if (defaultID != null)
    {
      defaultUUID = uuidFactory.recreateUUID(defaultID);
    }

    /* 2nd column is COLUMNNAME (varchar(128)) */
    columnName = row.getColumn(SYSCOLUMNS_COLUMNNAME).getString();

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, convertIdToLower));
    lcoreInfo[SYSCOLUMNS_CORE_NUM] =
      new TabInfoImpl(new SYSCOLUMNSRowFactory(luuidFactory, exFactory, dvf, convertIdToLower));
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.