private String genUniQID() { UUID uniqueID = UUIDs.timeBased(); return uniqueID.toString(); }
public Serializable generateId(Session session) { return UUIDs.timeBased(); }
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; }