org.tarantool.jdbc.SQLResultSetMetaData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connector Show documentation
Show all versions of connector Show documentation
Tarantool client for java
package org.tarantool.jdbc;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.Types;
import org.tarantool.JDBCBridge;
public class SQLResultSetMetaData implements ResultSetMetaData {
protected final JDBCBridge JDBCBridgeExecutor;
public SQLResultSetMetaData(JDBCBridge JDBCBridgeExecutor) {
this.JDBCBridgeExecutor = JDBCBridgeExecutor;
}
@Override
public int getColumnCount() throws SQLException {
return JDBCBridgeExecutor.getColumnCount();
}
@Override
public boolean isAutoIncrement(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isCaseSensitive(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isSearchable(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isCurrency(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public int isNullable(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isSigned(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public int getColumnDisplaySize(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public String getColumnLabel(int column) throws SQLException {
return JDBCBridgeExecutor.getColumnName(column);
}
@Override
public String getColumnName(int column) throws SQLException {
return JDBCBridgeExecutor.getColumnName(column);
}
@Override
public String getSchemaName(int column) throws SQLException {
return null;
}
@Override
public int getPrecision(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public int getScale(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public String getTableName(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public String getCatalogName(int column) throws SQLException {
return null;
}
@Override
public int getColumnType(int column) throws SQLException {
return Types.OTHER;
}
@Override
public String getColumnTypeName(int column) throws SQLException {
return "scalar";
}
@Override
public boolean isReadOnly(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isWritable(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isDefinitelyWritable(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public String getColumnClassName(int column) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public T unwrap(Class iface) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public boolean isWrapperFor(Class> iface) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public String toString() {
return "SQLResultSetMetaData{" +
"bridge=" + JDBCBridgeExecutor +
'}';
}
}