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

org.postgresql.jdbc4.AbstractJdbc4Array Maven / Gradle / Ivy

There is a newer version: 42.7.3
Show newest version
/*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2014, PostgreSQL Global Development Group
*
*
*-------------------------------------------------------------------------
*/
package org.postgresql.jdbc4;

import java.sql.*;
import org.postgresql.core.*;
import org.postgresql.jdbc2.AbstractJdbc2Array;
import org.postgresql.jdbc2.ArrayAssistantRegistry;
import org.postgresql.jdbc4.array.UUIDArrayAssistant;

public abstract class AbstractJdbc4Array extends AbstractJdbc2Array
{
    static {
        ArrayAssistantRegistry.register(Oid.UUID, new UUIDArrayAssistant());
        ArrayAssistantRegistry.register(Oid.UUID_ARRAY, new UUIDArrayAssistant());
    }

    public AbstractJdbc4Array(BaseConnection connection, int oid, byte[] fieldBytes) throws SQLException
    {
        super(connection, oid, fieldBytes);
    }

    public AbstractJdbc4Array(BaseConnection connection, int oid, String fieldString) throws SQLException
    {
        super(connection, oid, fieldString);
    }

    public void free() throws SQLException
    {
        connection = null;
        fieldString = null;
        fieldBytes = null;
        arrayList = null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy