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

eu.clarussecure.proxy.protocol.plugins.pgsql.message.PgsqlParameterDescriptionMessage Maven / Gradle / Ivy

The newest version!
package eu.clarussecure.proxy.protocol.plugins.pgsql.message;

import java.util.List;
import java.util.Objects;

import io.netty.util.internal.StringUtil;

public class PgsqlParameterDescriptionMessage extends PgsqlDetailedQueryResponseMessage> {

    public static final byte TYPE = (byte) 't';

    private List parameterTypeOIDs;

    public PgsqlParameterDescriptionMessage(List parameterTypeOIDs) {
        this.parameterTypeOIDs = Objects.requireNonNull(parameterTypeOIDs, "parameterTypeOIDs must not be null");
    }

    public List getParameterTypeOIDs() {
        return parameterTypeOIDs;
    }

    public void setParameterTypeOIDs(List parameterTypeOIDs) {
        this.parameterTypeOIDs = Objects.requireNonNull(parameterTypeOIDs, "parameterTypeOIDs must not be null");
    }

    @Override
    public byte getType() {
        return TYPE;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder(StringUtil.simpleClassName(this));
        builder.append(" [");
        builder.append("parameterTypeOIDs=").append(parameterTypeOIDs);
        builder.append("]");
        return builder.toString();
    }

    @Override
    public List getDetails() {
        return getParameterTypeOIDs();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy