All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zeger_tak.enversvalidationplugin.entities.ValidationResults Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.6
Show newest version
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