
com.orientechnologies.orient.jdbc.OrientJdbcArray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orientdb-jdbc Show documentation
Show all versions of orientdb-jdbc Show documentation
JDBC Driver for OrientDB NoSQL document graph dbms
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 extends Object> values;
public OrientJdbcArray(Collection extends Object> 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