@Override public DocumentWriter setCacheable(boolean cacheable) { federatedDocument.setBoolean(DocumentTranslator.CACHEABLE_FIELD, cacheable); return this; }
@Override public DocumentWriter setCacheable(boolean cacheable) { federatedDocument.setBoolean(DocumentTranslator.CACHEABLE_FIELD, cacheable); return this; }
protected Document dbPersistenceConfiguration() { EditableDocument config = super.defaultPersistenceConfiguration().edit(false); //use a random mem db each time, to avoid possible conflicts.... config.setString(RepositoryConfiguration.FieldName.TYPE, RelationalDbConfig.ALIAS1); config.setString(RelationalDbConfig.CONNECTION_URL, "jdbc:h2:mem:" + UUID.randomUUID().toString() + ";DB_CLOSE_DELAY=0"); config.setBoolean(RelationalDbConfig.DROP_ON_EXIT, true); return config; } }
journaling.setBoolean(FieldName.JOURNAL_ENABLED, enabled); journaling.setBoolean(FieldName.ASYNC_WRITES_ENABLED, asyncWrites);
persistenceConfig.setBoolean(ModelAttributes.FS_COMPRESS.getFieldName(), compress.asBoolean());
persistenceConfig.setBoolean(CREATE_ON_START.getFieldName(), createOnStart.asBoolean()); persistenceConfig.setBoolean(DROP_ON_EXIT.getFieldName(), dropOnExit.asBoolean()); persistenceConfig.setBoolean(DB_COMPRESS.getFieldName(), compress.asBoolean());
localStore.lockDocuments(key); EditableDocument editable = localStore.edit(key, true); editable.setBoolean("k3", true); editable.setNumber("k4", 3.5d); });
localStore.lockDocuments(key); EditableDocument editable = localStore.edit(key, true); editable.setBoolean("k3", true); editable.setNumber("k4", 3.5d); });
anonymous.setBoolean("useOnFailedLogin", true);