syncbase/src/main/java/io/v/syncbase/BatchDatabase.java
/**
     * @throws IllegalArgumentException if opts.withoutSyncgroup false
     */
@throws IllegalArgumentException if opts.withoutSyncgroup false
@throws IllegalArgumentException if opts . withoutSyncgroup false
@Override
    public Collection createCollection(CollectionOptions opts) throws SyncbaseException {
        String name = opts.prefix + "_" + UUID.randomUUID().toString().replaceAll("-", "");
        if (!opts.withoutSyncgroup) {
            throw new IllegalArgumentException("Cannot create syncgroup in a batch");
        }
        Collection res = getCollection(new Id(Syncbase.getPersonalBlessingString(), name));
        res.createIfMissing();
        return res;
    }
@ Override public Collection createCollection ( CollectionOptions opts ) throws SyncbaseException { String name = opts . prefix + "_" + UUID . randomUUID ( ) . toString ( ) . replaceAll ( "-" , "" ) ; if ( ! opts . withoutSyncgroup ) { throw new IllegalArgumentException ( "Cannot create syncgroup in a batch" ) ; } Collection res = getCollection ( new Id ( Syncbase . getPersonalBlessingString ( ) , name ) ) ; res . createIfMissing ( ) ; return res ; }
@throws IllegalArgumentException if opts.withoutSyncgroup false
@throws IllegalArgumentException if opts . withoutSyncgroup false