Package com.sas.rio
Class MVAAnnotatedResultSet
java.lang.Object
com.sas.rio.MVAResultSet
com.sas.rio.MVAAnnotatedResultSet
- All Implemented Interfaces:
com.sas.sql.AnnotatedResultSet,AutoCloseable,ResultSet,Wrapper
@SASScope("ALL")
public class MVAAnnotatedResultSet
extends MVAResultSet
implements com.sas.sql.AnnotatedResultSet
This class defines the methods that get, set, and clear the ResultSet and column annotations for the IOM JDBC Driver. These annotations correspond to the extended attributes of a SAS data set. These methods can be used with a SAS 9.4 or later workspace server and on ResultSets generated by simple "SELECT * FROM lib.foo" query without any clauses.
The methods are implemented in the MVAAnnotatedResultSet class (com.sas.rio package) and the AnnotatedResultSet interface is defined in com.sas.sql (in sas.core.jar).
- Since:
- 9.4
-
Field Summary
Fields inherited from class com.sas.rio.MVAResultSet
_concurrency, _type, _warnings, _wasNull, CHARACTER, DATE, DATETIME, initialFetchSize, INTEGER, m_columnCount, m_maxRows, m_rowCache, m_statement, MAX_FIELD_SIZE, MAYBE_INTEGER, NOSUBTYPE, NUMERIC, TIMEFields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Constructor Summary
ConstructorsConstructorDescriptionMVAAnnotatedResultSet(MVAStatement stmt, String libref, String tableName, String[] password, String options, int bindKey, int resultSetConcurrency, String segmentLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearColumnAnnotation(int columnIndex, String annotationName) voidclearColumnAnnotation(String columnName, String annotationName) voidclearColumnAnnotations(int columnIndex) voidclearColumnAnnotations(String columnName) voidclearResultSetAnnotation(String annotationName) voidMap<String, Object> getColumnAnnotations(int columnIndex) Map<String, Object> getColumnAnnotations(String columnName) intgetColumnAnnotationType(int columnIndex, String annotationName) intgetColumnAnnotationType(String columnName, String annotationName) doublegetDoubleColumnAnnotation(int columnIndex, String annotationName) doublegetDoubleColumnAnnotation(String columnName, String annotationName) doublegetDoubleResultSetAnnotation(String annotationName) CharactergetMissingValueColumnAnnotation(int columnIndex, String annotationName) CharactergetMissingValueColumnAnnotation(String columnName, String annotationName) CharactergetMissingValueResultSetAnnotation(String annotationName) Map<String, Object> intgetResultSetAnnotationType(String annotationName) StringgetStringColumnAnnotation(int columnIndex, String annotationName) StringgetStringColumnAnnotation(String columnName, String annotationName) StringgetStringResultSetAnnotation(String annotationName) booleanhasColumnAnnotation(int columnIndex, String annotationName) booleanhasColumnAnnotation(String columnName, String annotationName) booleanhasColumnAnnotations(int columnIndex) booleanhasColumnAnnotations(String columnName) booleanhasResultSetAnnotation(String annotationName) booleanvoidsetColumnAnnotations(int columnIndex, Map<String, Object> annotations) voidsetColumnAnnotations(String columnName, Map<String, Object> annotations) voidsetDoubleColumnAnnotation(int columnIndex, String annotationName, Double annotationValue) voidsetDoubleColumnAnnotation(String columnName, String annotationName, Double annotationValue) voidsetDoubleResultSetAnnotation(String annotationName, Double annotationValue) voidsetNullColumnAnnotation(int columnIndex, int jdbcType, String annotationName) voidsetNullColumnAnnotation(int columnIndex, int jdbcType, String annotationName, String missingValue) voidsetNullResultSetAnnotation(int jdbcType, String annotationName) voidsetNullResultSetAnnotation(int jdbcType, String annotationName, String missingValue) voidsetResultSetAnnotations(Map<String, Object> annotations) voidsetStringColumnAnnotation(int columnIndex, String annotationName, String annotationValue) voidsetStringColumnAnnotation(String columnName, String annotationName, String annotationValue) voidsetStringResultSetAnnotation(String annotationName, String annotationValue) booleanString[]Methods inherited from class com.sas.rio.MVAResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCache, getCharacterStream, getCharacterStream, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowCache, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertMultipleRows, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNullMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
Constructor Details
-
MVAAnnotatedResultSet
public MVAAnnotatedResultSet(MVAStatement stmt, String libref, String tableName, String[] password, String options, int bindKey, int resultSetConcurrency, String segmentLength) throws SQLException - Throws:
SQLException
-
-
Method Details
-
clearColumnAnnotations
public void clearColumnAnnotations(int columnIndex) throws SQLException - Specified by:
clearColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearColumnAnnotations
public void clearColumnAnnotations(String columnName) throws SQLException - Specified by:
clearColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearResultSetAnnotations
public void clearResultSetAnnotations() throws SQLException- Specified by:
clearResultSetAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getStringColumnAnnotation
public String getStringColumnAnnotation(int columnIndex, String annotationName) throws SQLException - Specified by:
getStringColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getStringColumnAnnotation
public String getStringColumnAnnotation(String columnName, String annotationName) throws SQLException - Specified by:
getStringColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getColumnAnnotations
public Map<String,Object> getColumnAnnotations(int columnIndex) throws SQLException - Specified by:
getColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getColumnAnnotations
public Map<String,Object> getColumnAnnotations(String columnName) throws SQLException - Specified by:
getColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getStringResultSetAnnotation
public String getStringResultSetAnnotation(String annotationName) throws SQLException - Specified by:
getStringResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getResultSetAnnotations
public Map<String,Object> getResultSetAnnotations() throws SQLException- Specified by:
getResultSetAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
hasColumnAnnotation
public boolean hasColumnAnnotation(int columnIndex, String annotationName) throws SQLException - Specified by:
hasColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
hasColumnAnnotation
public boolean hasColumnAnnotation(String columnName, String annotationName) throws SQLException - Specified by:
hasColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
hasColumnAnnotations
public boolean hasColumnAnnotations(int columnIndex) throws SQLException - Specified by:
hasColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
hasColumnAnnotations
public boolean hasColumnAnnotations(String columnName) throws SQLException - Specified by:
hasColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
hasResultSetAnnotation
public boolean hasResultSetAnnotation(String annotationName) throws SQLException - Specified by:
hasResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
hasResultSetAnnotations
public boolean hasResultSetAnnotations() throws SQLException- Specified by:
hasResultSetAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setStringColumnAnnotation
public void setStringColumnAnnotation(int columnIndex, String annotationName, String annotationValue) throws SQLException - Specified by:
setStringColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setStringColumnAnnotation
public void setStringColumnAnnotation(String columnName, String annotationName, String annotationValue) throws SQLException - Specified by:
setStringColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setColumnAnnotations
public void setColumnAnnotations(int columnIndex, Map<String, Object> annotations) throws SQLException- Specified by:
setColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setColumnAnnotations
public void setColumnAnnotations(String columnName, Map<String, Object> annotations) throws SQLException- Specified by:
setColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setStringResultSetAnnotation
public void setStringResultSetAnnotation(String annotationName, String annotationValue) throws SQLException - Specified by:
setStringResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setResultSetAnnotations
public void setResultSetAnnotations(Map<String, Object> annotations) throws SQLException- Specified by:
setResultSetAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getDoubleColumnAnnotation
public double getDoubleColumnAnnotation(int columnIndex, String annotationName) throws SQLException - Specified by:
getDoubleColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getDoubleColumnAnnotation
public double getDoubleColumnAnnotation(String columnName, String annotationName) throws SQLException - Specified by:
getDoubleColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getDoubleResultSetAnnotation
public double getDoubleResultSetAnnotation(String annotationName) throws SQLException - Specified by:
getDoubleResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setDoubleColumnAnnotation
public void setDoubleColumnAnnotation(int columnIndex, String annotationName, Double annotationValue) throws SQLException - Specified by:
setDoubleColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setDoubleColumnAnnotation
public void setDoubleColumnAnnotation(String columnName, String annotationName, Double annotationValue) throws SQLException - Specified by:
setDoubleColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setDoubleResultSetAnnotation
public void setDoubleResultSetAnnotation(String annotationName, Double annotationValue) throws SQLException - Specified by:
setDoubleResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
wasAnnotationsNull
public String[] wasAnnotationsNull() throws SQLException- Specified by:
wasAnnotationsNullin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
wasAnnotationNull
public boolean wasAnnotationNull() throws SQLException- Specified by:
wasAnnotationNullin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullColumnAnnotation
public void setNullColumnAnnotation(int columnIndex, int jdbcType, String annotationName) throws SQLException - Specified by:
setNullColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullColumnAnnotation
public void setNullColumnAnnotation(int columnIndex, int jdbcType, String annotationName, String missingValue) throws SQLException - Specified by:
setNullColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullResultSetAnnotation
public void setNullResultSetAnnotation(int jdbcType, String annotationName) throws SQLException - Specified by:
setNullResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullResultSetAnnotation
public void setNullResultSetAnnotation(int jdbcType, String annotationName, String missingValue) throws SQLException - Specified by:
setNullResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getColumnAnnotationType
public int getColumnAnnotationType(String columnName, String annotationName) throws SQLException - Specified by:
getColumnAnnotationTypein interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getColumnAnnotationType
public int getColumnAnnotationType(int columnIndex, String annotationName) throws SQLException - Specified by:
getColumnAnnotationTypein interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getResultSetAnnotationType
public int getResultSetAnnotationType(String annotationName) throws SQLException - Specified by:
getResultSetAnnotationTypein interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearColumnAnnotation
public void clearColumnAnnotation(int columnIndex, String annotationName) throws SQLException - Specified by:
clearColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearColumnAnnotation
public void clearColumnAnnotation(String columnName, String annotationName) throws SQLException - Specified by:
clearColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearResultSetAnnotation
public void clearResultSetAnnotation(String annotationName) throws SQLException - Specified by:
clearResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getMissingValueResultSetAnnotation
public Character getMissingValueResultSetAnnotation(String annotationName) throws SQLException - Specified by:
getMissingValueResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getMissingValueColumnAnnotation
public Character getMissingValueColumnAnnotation(int columnIndex, String annotationName) throws SQLException - Specified by:
getMissingValueColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
getMissingValueColumnAnnotation
public Character getMissingValueColumnAnnotation(String columnName, String annotationName) throws SQLException - Specified by:
getMissingValueColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-