Examples of UUID


Examples of javax.bluetooth.UUID

    try {
      DiscoveryAgent agent = LocalDevice.getLocalDevice()
          .getDiscoveryAgent();

      connectionString = agent.selectService(new UUID(
          MicrologConstants.DEFAULT_BT_UUID_STRING, false),
          ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
    } catch (BluetoothStateException bse) {
      System.err
          .println("Failed to connect to the Bluetooth log server. "
View Full Code Here

Examples of net.jini.id.Uuid

        readyState.check();
   
  TxnManagerTransaction txntr = null;

  long tid = nextID();
        Uuid uuid = createLeaseUuid(tid);

        if (transactionsLogger.isLoggable(Level.FINEST)) {
            transactionsLogger.log(Level.FINEST,
          "Transaction ID is: {0}", new Long(tid));
  }
View Full Code Here

Examples of ome.xml.model.UUID

    final Plane destPlane = new Plane();
    pixels.addPlane(destPlane);
    int series = 0;
    int channel = ImagePlane.ALWAYS_MONOCHROME;
    final TiffData location = new TiffData();
    final UUID uuid = new UUID();
    location.setPlaneCount(new NonNegativeInteger(1));
    if (ipd != null) {
      final ImagePlane imagePlane = ipd.getImagePlane();
      series = imagePlane.getSeries().getSeries();
      channel = imagePlane.getChannel();
      location.setIFD(new NonNegativeInteger(imagePlane.getIndex()));
      uuid.setFileName(imagePlane.getImageFile().getURI().toString());
      final Plane omePlane = imagePlane.getOMEPlane();
      if (omePlane != null) {
        location.setFirstC(omePlane.getTheC());
        location.setFirstT(omePlane.getTheT());
        location.setFirstZ(omePlane.getTheZ());
      } else {
        location.setFirstC(NNI_ZERO);
        location.setFirstT(NNI_ZERO);
        location.setFirstZ(NNI_ZERO);
       
      }
    } else {
      // A missing plane.
      // This retrieves a URI placeholder for it.
      uuid.setFileName(new ImageFile(xSize.getValue(), ySize.getValue()).getURI().toString());
      location.setIFD(NNI_ZERO);
      location.setFirstC(NNI_ZERO);
      location.setFirstT(NNI_ZERO);
      location.setFirstZ(NNI_ZERO);
    }
View Full Code Here

Examples of org.apache.commons.id.uuid.UUID

     * @param format �O�_�榡��.
     * @param prefix �O�_�[�W�e�m�r.
     * @return �^�Ƿs���ͤ������ѧO�N�X.
     */
    public static String nextId(boolean format, boolean prefix) {
        UUID uuid = UUIdTK.generateNextId();
        String uuidResult = null;


        try{
          // �P�_�O�_�ݭn�榡��
          if (format) {
              uuidResult = uuid.toString();
          } else {
              byte[] data = uuid.getRawBytes();
              uuidResult = new String(HexTK.encode(data));
          }

          // �P�_�O�_�ݭn�[�W�e�m�r
          if (prefix) {
View Full Code Here

Examples of org.apache.derby.catalog.UUID

    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

Examples of org.apache.jackrabbit.uuid.UUID

            Version rootVersion = history.getRootVersion();

            // jcr:versionHistory
            conditionalAddProperty(
                    node, QName.JCR_VERSIONHISTORY, PropertyType.REFERENCE, false,
                    InternalValue.create(new UUID(history.getUUID())));

            // jcr:baseVersion
            conditionalAddProperty(
                    node, QName.JCR_BASEVERSION, PropertyType.REFERENCE, false,
                    InternalValue.create(new UUID(rootVersion.getUUID())));

            // jcr:predecessors
            conditionalAddProperty(
                    node, QName.JCR_PREDECESSORS, PropertyType.REFERENCE, true,
                    InternalValue.create(new UUID(rootVersion.getUUID())));

            // jcr:isCheckedOut
            conditionalAddProperty(
                    node, QName.JCR_ISCHECKEDOUT, PropertyType.BOOLEAN, false,
                    InternalValue.create(true));
View Full Code Here

Examples of org.apache.ode.utils.uuid.UUID

    public MessageExchangeDAOImpl() {}
   
  public MessageExchangeDAOImpl(char direction){
    _direction = direction;
    _id = new UUID().toString();
  }
View Full Code Here

Examples of org.doomdark.uuid.UUID

     *
     * @see org.mule.transaction.xa.queue.QueuePersistenceStrategy#store(java.lang.Object)
     */
    public Object store(String queue, Object obj) throws IOException
    {
        UUID id = getId(obj);
        ByteArrayOutputStream baos = new ByteArrayOutputStream(256);
        ObjectOutputStream oos = new ObjectOutputStream(baos);
        oos.writeByte(STORE_BYTE);
        oos.writeUTF(queue);
        oos.write(id.asByteArray());
        oos.writeObject(obj);
        oos.close();
        Packet packet = new ByteArrayPacket(baos.toByteArray());
        RecordLocation loc = journal.write(packet, false);
        synchronized (markLock) {
View Full Code Here

Examples of org.hornetq.utils.UUID

      address = buffer.readNullableSimpleString();
      if (buffer.readByte() == DataConstants.NOT_NULL)
      {
         byte[] bytes = new byte[16];
         buffer.readBytes(bytes);
         userID = new UUID(UUID.TYPE_TIME_BASED, bytes);
      }
      else
      {
         userID = null;
      }
View Full Code Here

Examples of org.internna.iwebmvc.model.UUID

    private static byte[] uuid2_bytes;
    private static UUID uuid, uuid2;

    @BeforeClass
    public static void setUp() {
        uuid = new UUID("3b0ae7d419d26e36e040007f0101785c");
        uuid2_bytes = StringUtils.encodeHex("987654321098765432109876543210aa");
        uuid2 = new UUID(uuid2_bytes);
    }
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.