Examples of Uuid


Examples of com.almende.util.uuid.UUID

   *            the node
   */
  public AgentConfig(final ObjectNode node) {
    super(node);
    if (!node.has("id")) {
      this.put("id", new UUID().toString());
    }
  }
View Full Code Here

Examples of com.eaio.uuid.UUID

    private boolean filterOut = false;
    private InetAddress inetAddress;

    public Message(final String message, final String source, final DateTime timestamp) {
        // Adding the fields directly because they would not be accepted as a reserved fields.
        fields.put(FIELD_ID, new UUID().toString());
        fields.put(FIELD_MESSAGE, message);
        fields.put(FIELD_SOURCE, source);
        fields.put(FIELD_TIMESTAMP, timestamp);
    }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.UUID

        public UUID UnpackUUID()
        {
            if (bitPos != 0) throw new IndexOutOfBoundsException();

            UUID val = new UUID(Data, bytePos);
            bytePos += 16;
            return val;
        }
View Full Code Here

Examples of com.sogou.qadev.service.cynthia.bean.UUID

   * @param createUser
   * @return
   */
  public Timer createTimer(String createUser)
  {
    UUID id = DataAccessFactory.getInstance().newUUID("TIME");
    Timestamp createTime = new Timestamp(System.currentTimeMillis());
    return new TimerImpl(id, createUser, createTime);
  }
View Full Code Here

Examples of java.util.UUID

        long msb = new BigInteger(randomBytes).longValue();
        random.nextBytes(randomBytes);
        randomBytes[0&= 0x3f/* clear variant        */
        randomBytes[0|= 0x80/* set to IETF variant  */
        long lsb = new BigInteger(randomBytes).longValue();
        record.setUUID("mmuid:"+new UUID(msb, lsb)); //$NON-NLS-1$
  }
View Full Code Here

Examples of java.util.UUID

     * @param a the first UUID
     * @param b the second UUID
     * @return a xor b
     */
    public static UUID xorUUID(UUID a, UUID b) {
        return new UUID(a.getMostSignificantBits() ^ b.getMostSignificantBits(),
                a.getLeastSignificantBits() ^ b.getLeastSignificantBits());
    }
View Full Code Here

Examples of java.util.UUID

    }

    private void testUUID(Connection conn) throws SQLException {
        Statement stat = conn.createStatement();
        stat.execute("create table test_uuid(id uuid primary key)");
        UUID uuid = new UUID(-2, -1);
        PreparedStatement prep = conn.prepareStatement("insert into test_uuid values(?)");
        prep.setObject(1, uuid);
        prep.execute();
        ResultSet rs = stat.executeQuery("select * from test_uuid");
        rs.next();
View Full Code Here

Examples of java.util.UUID

            if (x instanceof SimpleResultSet) {
                return ValueResultSet.get((ResultSet) x);
            }
            return ValueResultSet.getCopy((ResultSet) x, Integer.MAX_VALUE);
        } else if (x instanceof UUID) {
            UUID u = (UUID) x;
            return ValueUuid.get(u.getMostSignificantBits(), u.getLeastSignificantBits());
        } else if (x instanceof Object[]) {
            // (a.getClass().isArray());
            // (a.getClass().getComponentType().isPrimitive());
            Object[] o = (Object[]) x;
            int len = o.length;
View Full Code Here

Examples of java.util.UUID

    }
  }

  @Override
  public Object javaToSqlArg(FieldType fieldType, Object obj) {
    UUID uuid = (UUID) obj;
    return uuid.toString();
  }
View Full Code Here

Examples of java.util.UUID

    public boolean equals(Object other) {
        return other instanceof ValueUuid && compareSecure((Value) other, null) == 0;
    }

    public Object getObject() {
        return new UUID(high, low);
    }
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.