예제 #1
0
 private String genUniQID() {
   UUID uniqueID = UUIDs.timeBased();
   return uniqueID.toString();
 }
 public Serializable generateId(Session session) {
   return UUIDs.timeBased();
 }
예제 #3
0
 public UUID placeBid(String auctionName, String user, Long amount) {
   UUID uuid = UUIDs.timeBased();
   BoundStatement bound = storeBid.bind(auctionName, uuid, amount, user);
   session.execute(bound);
   return uuid;
 }