com.metaring.framework.persistence.UpdateFunctionality Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework-java-persistence Show documentation
Show all versions of framework-java-persistence Show documentation
Module for Server-to-Client Broadcast communication
package com.metaring.framework.persistence;
import java.util.concurrent.CompletableFuture;
import com.metaring.framework.functionality.AbstractFunctionality;
import com.metaring.framework.functionality.GeneratedFunctionality;
import com.metaring.framework.functionality.FunctionalityInfo;
import com.metaring.framework.persistence.OperationResult;
abstract class UpdateFunctionality extends AbstractFunctionality implements GeneratedFunctionality {
static final FunctionalityInfo INFO = FunctionalityInfo.create("com.metaring.framework.persistence.update", true, false, false, "java.lang.String", "com.metaring.framework.persistence.OperationResult");
static final UpdateFunctionality INSTANCE = new UpdateFunctionalityImpl();
protected UpdateFunctionality() {
super(INFO, OperationResult.class);
}
@Override
protected final CompletableFuture beforePreConditionCheck(Object input) throws Exception {
CompletableFuture response = beforePreConditionCheck(input == null ? null : (String) input);
return response == null ? end : response;
}
protected CompletableFuture beforePreConditionCheck(String input) throws Exception {
return end;
}
@Override
protected final CompletableFuture preConditionCheck(Object input) throws Exception {
CompletableFuture response = preConditionCheck(input == null ? null : (String) input);
return response == null ? end : response;
}
protected abstract CompletableFuture preConditionCheck(String input) throws Exception;
@Override
protected final CompletableFuture afterPreConditionCheck(Object input) throws Exception {
CompletableFuture response = afterPreConditionCheck(input == null ? null : (String) input);
return response == null ? end : response;
}
protected CompletableFuture afterPreConditionCheck(String input) throws Exception {
return end;
}
@Override
protected final CompletableFuture beforeCall(Object input) throws Exception {
CompletableFuture response = beforeCall(input == null ? null : (String) input);
return response == null ? end : response;
}
protected CompletableFuture beforeCall(String input) throws Exception {
return end;
}
@Override
protected final CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy