/** * Creates an unique ID by using the {@link #getUriPrefix()} the parsed * separator (non if <code>null</code>) and an uuid created by using * {@link ModelUtils#randomUUID()}. * <p> * This Method is used for the {@link #create()} and the {@link #create(String)} * - if <code>null</code> is parsed - to generate an unique URI for the * created Representation. * <p> * Subclasses can override this Method to use other algorithms for generating * URIs for entities. * @return the created URI as string. */ protected final String createRandomEntityUri(){ return getUriPrefix()+ModelUtils.randomUUID().toString(); }
/** * Creates an unique ID by using the {@link #getUriPrefix()} the parsed * separator (non if <code>null</code>) and an uuid created by using * {@link ModelUtils#randomUUID()}. * <p> * This Method is used for the {@link #create()} and the {@link #create(String)} * - if <code>null</code> is parsed - to generate an unique URI for the * created Representation. * <p> * Subclasses can override this Method to use other algorithms for generating * URIs for entities. * @return the created URI as string. */ protected final String createRandomEntityUri(){ return getUriPrefix()+ModelUtils.randomUUID().toString(); }
id.append('.'); id.append(ModelUtils.randomUUID()); return id.toString();
id.append('.'); id.append(ModelUtils.randomUUID()); return id.toString();