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

com.github.zeger_tak.enversvalidationplugin.entities.TableRow 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.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