@Override public <DB extends ODatabase<?>> DB setConflictStrategy(String iStrategyName) { if (internal != null) { internal.setConflictStrategy(iStrategyName); } else { conflictStrategy = Orient.instance().getRecordConflictStrategy().getStrategy(iStrategyName); } return (DB) this; }
private void registerConflictStrategies(final Iterable<ORecordConflictStrategy> strategies) { ORecordConflictStrategyFactory strategyFactory = Orient.instance().getRecordConflictStrategy(); for (ORecordConflictStrategy strategy : strategies) { log.debug("Registering OrientDB conflict strategy {} as '{}'", strategy, strategy.getName()); strategyFactory.registerImplementation(strategy.getName(), strategy); } } }
private void setRecordConflictStrategy(final String stringValue) { recordConflictStrategy = Orient.instance().getRecordConflictStrategy().getStrategy(stringValue); config.conflictStrategy = stringValue; ((OStorageConfigurationImpl) storageLocal.getConfiguration()).update(); }
private void setRecordConflictStrategy(final String stringValue) { recordConflictStrategy = Orient.instance().getRecordConflictStrategy().getStrategy(stringValue); config.conflictStrategy = stringValue; ((OStorageConfigurationImpl) storageLocal.getConfiguration()).update(); }
public ODatabaseDocumentAbstract setConflictStrategy(final String iStrategyName) { checkIfActive(); getStorage().setConflictStrategy(Orient.instance().getRecordConflictStrategy().getStrategy(iStrategyName)); return this; }
public OrientBaseGraph setConflictStrategy(final String iStrategyName) { makeActive(); getDatabase().setConflictStrategy(Orient.instance().getRecordConflictStrategy().getStrategy(iStrategyName)); return this; }
storage.setConflictStrategy(Orient.instance().getRecordConflictStrategy().getStrategy(stringValue)); break;
private void init(final OAbstractPaginatedStorage storage, final OStorageClusterConfiguration config) throws IOException { OFileUtils.checkValidName(config.getName()); this.config = (OStoragePaginatedClusterConfiguration) config; this.compression = OCompressionFactory.INSTANCE.getCompression(this.config.compression, null); this.encryption = OEncryptionFactory.INSTANCE.getEncryption(this.config.encryption, this.config.encryptionKey); if (((OStoragePaginatedClusterConfiguration) config).conflictStrategy != null) { this.recordConflictStrategy = Orient.instance().getRecordConflictStrategy() .getStrategy(((OStoragePaginatedClusterConfiguration) config).conflictStrategy); } storageLocal = storage; this.id = config.getId(); clusterPositionMap = new OClusterPositionMapV1(storage, getName(), getFullName()); }
private void init(final OAbstractPaginatedStorage storage, final OStorageClusterConfiguration config) throws IOException { OFileUtils.checkValidName(config.getName()); this.config = (OStoragePaginatedClusterConfiguration) config; this.compression = OCompressionFactory.INSTANCE.getCompression(this.config.compression, null); this.encryption = OEncryptionFactory.INSTANCE.getEncryption(this.config.encryption, this.config.encryptionKey); if (((OStoragePaginatedClusterConfiguration) config).conflictStrategy != null) { this.recordConflictStrategy = Orient.instance().getRecordConflictStrategy() .getStrategy(((OStoragePaginatedClusterConfiguration) config).conflictStrategy); } storageLocal = storage; this.id = config.getId(); clusterPositionMap = new OClusterPositionMapV0(storage, getName(), getFullName()); }
this.charset = read(values[index++]); final ORecordConflictStrategyFactory conflictStrategyFactory = Orient.instance().getRecordConflictStrategy(); conflictStrategy = conflictStrategyFactory.getStrategy(read(values[index++])).getName();
if (cs != null) { setConflictStrategy(Orient.instance().getRecordConflictStrategy().getStrategy(cs));