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

de.zalando.sprocwrapper.validation.SimpleNode Maven / Gradle / Ivy

Go to download

Library to make PostgreSQL stored procedures available through simple Java "*SProcService" interfaces including automatic object serialization and deserialization (using typemapper and convention-over-configuration). Supports sharding, advisory locking, statement timeouts and PostgreSQL types such as enums and hstore.

There is a newer version: 2.0.0
Show newest version
package de.zalando.sprocwrapper.validation;

import javax.validation.Path;

public class SimpleNode implements Path.Node {

    private final String name;
    private final boolean inIterable;
    private final Integer index;
    private final Object key;

    public SimpleNode(final String name, final boolean inIterable, final Integer index, final Object key) {
        this.name = name;
        this.inIterable = inIterable;
        this.index = index;
        this.key = key;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public boolean isInIterable() {
        return inIterable;
    }

    @Override
    public Integer getIndex() {
        return index;
    }

    @Override
    public Object getKey() {
        return key;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("MethodParameterNode [name=");
        builder.append(name);
        builder.append("]");
        return builder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy