org.duckdb.DuckDBParameterMetaData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duckdb_jdbc Show documentation
Show all versions of duckdb_jdbc Show documentation
A JDBC-Compliant driver for the DuckDB data management system
package org.duckdb;
import java.sql.ParameterMetaData;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
public class DuckDBParameterMetaData implements ParameterMetaData {
private DuckDBResultSetMetaData meta;
public DuckDBParameterMetaData(DuckDBResultSetMetaData meta) {
this.meta = meta;
}
@Override
public T unwrap(Class iface) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isWrapperFor(Class> iface) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public int getParameterCount() throws SQLException {
return meta.param_count;
}
@Override
public int isNullable(int param) throws SQLException {
return ParameterMetaData.parameterNullableUnknown;
}
@Override
public boolean isSigned(int param) throws SQLException {
return true;
}
@Override
public int getPrecision(int param) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public int getScale(int param) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public int getParameterType(int param) throws SQLException {
// TODO Auto-generated method stub
return 0;
}
@Override
public String getParameterTypeName(int param) throws SQLException {
// TODO Auto-generated method stub
return null;
}
@Override
public String getParameterClassName(int param) throws SQLException {
// TODO Auto-generated method stub
return null;
}
@Override
public int getParameterMode(int param) throws SQLException {
return ParameterMetaData.parameterModeIn;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy