/** * Returns a UID as a string. * * @return UID as a string. */ public static String asString() { return new UID().toString(); } }
/** * Return a string representation of this GUID. * * @return A string representation of this GUID. */ public String toString() { // JBCOMMON-88. Cache this as it's expensive to create if (toString == null) { toString = vmid.toString() + "-" + uid.toString(); } return toString; }
/** * Construct a Token with given {@link Attachments} */ public TokenImpl(Attachments att) { this.context = new BasicExecutionContext(att); this.id = new UID().toString(); this.status = TokenStatus.Created; }
dir = new File(dir, ejbName + "-" + new UID().toString()); storeDir = dir;
dir = new File(dir, ejbName + "-" + new UID().toString()); storeDir = dir;