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

com.orientechnologies.orient.jdbc.OrientJdbcArray Maven / Gradle / Ivy

The newest version!
package com.orientechnologies.orient.jdbc;

import java.sql.Array;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Collection;
import java.util.Map;

/** Created by frank on 16/01/2017. */
public class OrientJdbcArray implements Array {

  private final Collection values;

  public OrientJdbcArray(Collection values) {
    this.values = values;
  }

  @Override
  public String getBaseTypeName() throws SQLException {
    return String.class.getTypeName();
  }

  @Override
  public int getBaseType() throws SQLException {
    return Types.VARCHAR;
  }

  @Override
  public Object getArray() throws SQLException {

    return values.toArray();
  }

  @Override
  public Object getArray(Map> map) throws SQLException {
    return null;
  }

  @Override
  public Object getArray(long index, int count) throws SQLException {
    return null;
  }

  @Override
  public Object getArray(long index, int count, Map> map) throws SQLException {
    return null;
  }

  @Override
  public ResultSet getResultSet() throws SQLException {
    return null;
  }

  @Override
  public ResultSet getResultSet(Map> map) throws SQLException {
    return null;
  }

  @Override
  public ResultSet getResultSet(long index, int count) throws SQLException {
    return null;
  }

  @Override
  public ResultSet getResultSet(long index, int count, Map> map)
      throws SQLException {
    return null;
  }

  @Override
  public void free() throws SQLException {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy