com.github.zeger_tak.enversvalidationplugin.entities.ValidationResults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envers-validation-maven-plugin Show documentation
Show all versions of envers-validation-maven-plugin Show documentation
This is a Maven plugin that allows for easy validation of database auditing with Hibernate
and is intended to be used by projects that do not always rely on Envers to create the audit history.
package com.github.zeger_tak.enversvalidationplugin.entities;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
public class ValidationResults
{
private final List validatorClassesIgnored = new ArrayList<>();
private final List validatorMethodsIgnored = new ArrayList<>();
private int executionsFailed;
public void addClassToIgnored(@Nonnull Class> validatorClass)
{
validatorClassesIgnored.add(validatorClass);
}
public void addMethodToIgnored(@Nonnull Method validatorMethod)
{
validatorMethodsIgnored.add(validatorMethod);
}
public void addFailedExecution()
{
executionsFailed++;
}
@Nonnull
public List getValidatorClassesIgnored()
{
return Collections.unmodifiableList(validatorClassesIgnored);
}
@Nonnull
public List getValidatorMethodsIgnored()
{
return Collections.unmodifiableList(validatorMethodsIgnored);
}
public int getExecutionsFailed()
{
return executionsFailed;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy