com.github.zeger_tak.enversvalidationplugin.entities.TableRow 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.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class TableRow
{
private final Map columns = new HashMap<>();
public void addColumn(@Nonnull String columnName, @Nullable Object value)
{
columns.put(columnName, value);
}
@CheckForNull
public Object getColumnValue(@Nonnull String columnName)
{
return columns.get(columnName);
}
@Nonnull
public Set getColumnNames()
{
return columns.keySet();
}
@Override
public String toString()
{
return "TableRow[" + "columns=" + columns + ']';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy