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

  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

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

  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

    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

    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

  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.jamesdbloom.uuid.UUIDFactory

    @Resource
    private Environment environment;

    @Bean
    protected UUIDFactory uuidFactory() {
        return new UUIDFactory();
    }
View Full Code Here

Examples of org.jboss.dna.graph.properties.UuidFactory

        children.clear();
        Map<Name, Integer> childNames = new HashMap<Name, Integer>();
        Map<Name, Property> properties = federatedNode.getPropertiesByName();
        properties.clear();
        UUID uuid = null;
        UuidFactory uuidFactory = null;
        final boolean removeDuplicateProperties = isRemoveDuplicateProperties();
        // Iterate over the set of contributions (in order) ...
        for (Contribution contribution : contributions) {
            // If the contribution is a placeholder contribution, then the children should be merged into other children ...
            if (contribution.isPlaceholder()) {
                // Iterate over the children and add only if there is not already one ...
                Iterator<Segment> childIterator = contribution.getChildren();
                while (childIterator.hasNext()) {
                    Segment child = childIterator.next();
                    if (!childNames.containsKey(child.getName())) {
                        childNames.put(child.getName(), 1);
                        children.add(pathFactory.createSegment(child.getName()));
                    }
                }

            } else {
                // Copy the children ...
                Iterator<Segment> childIterator = contribution.getChildren();
                while (childIterator.hasNext()) {
                    Segment child = childIterator.next();
                    int index = Path.NO_INDEX;
                    Integer previous = childNames.put(child.getName(), 1);
                    if (previous != null) {
                        int previousValue = previous.intValue();
                        // Correct the index in the child name map ...
                        childNames.put(child.getName(), ++previousValue);
                        index = previousValue;
                    }
                    children.add(pathFactory.createSegment(child.getName(), index));
                }

                // Copy the properties ...
                Iterator<Property> propertyIterator = contribution.getProperties();
                while (propertyIterator.hasNext()) {
                    Property property = propertyIterator.next();
                    // Skip the "uuid" property on all root nodes ...
                    if (federatedNode.getPath().isRoot() && property.getName().getLocalName().equals("uuid")) continue;
                    Property existing = properties.put(property.getName(), property);
                    if (existing != null) {
                        // There's already an existing property, so we need to merge them ...
                        Property merged = merge(existing, property, context.getPropertyFactory(), removeDuplicateProperties);
                        properties.put(property.getName(), merged);
                    }

                    if (uuid == null && property.getName().getLocalName().equals("uuid") && property.isSingle()) {
                        if (uuidFactory == null) uuidFactory = context.getValueFactories().getUuidFactory();
                        try {
                            uuid = uuidFactory.create(property.getValues().next());
                        } catch (IoException e) {
                            // Ignore conversion exceptions
                            assert uuid == null;
                        }
                    }
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.