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
  • 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:
      clearColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • clearColumnAnnotations

      public void clearColumnAnnotations(String columnName) throws SQLException
      Specified by:
      clearColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • clearResultSetAnnotations

      public void clearResultSetAnnotations() throws SQLException
      Specified by:
      clearResultSetAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getStringColumnAnnotation

      public String getStringColumnAnnotation(int columnIndex, String annotationName) throws SQLException
      Specified by:
      getStringColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getStringColumnAnnotation

      public String getStringColumnAnnotation(String columnName, String annotationName) throws SQLException
      Specified by:
      getStringColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getColumnAnnotations

      public Map<String,Object> getColumnAnnotations(int columnIndex) throws SQLException
      Specified by:
      getColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getColumnAnnotations

      public Map<String,Object> getColumnAnnotations(String columnName) throws SQLException
      Specified by:
      getColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getStringResultSetAnnotation

      public String getStringResultSetAnnotation(String annotationName) throws SQLException
      Specified by:
      getStringResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getResultSetAnnotations

      public Map<String,Object> getResultSetAnnotations() throws SQLException
      Specified by:
      getResultSetAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • hasColumnAnnotation

      public boolean hasColumnAnnotation(int columnIndex, String annotationName) throws SQLException
      Specified by:
      hasColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • hasColumnAnnotation

      public boolean hasColumnAnnotation(String columnName, String annotationName) throws SQLException
      Specified by:
      hasColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • hasColumnAnnotations

      public boolean hasColumnAnnotations(int columnIndex) throws SQLException
      Specified by:
      hasColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • hasColumnAnnotations

      public boolean hasColumnAnnotations(String columnName) throws SQLException
      Specified by:
      hasColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • hasResultSetAnnotation

      public boolean hasResultSetAnnotation(String annotationName) throws SQLException
      Specified by:
      hasResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • hasResultSetAnnotations

      public boolean hasResultSetAnnotations() throws SQLException
      Specified by:
      hasResultSetAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setStringColumnAnnotation

      public void setStringColumnAnnotation(int columnIndex, String annotationName, String annotationValue) throws SQLException
      Specified by:
      setStringColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setStringColumnAnnotation

      public void setStringColumnAnnotation(String columnName, String annotationName, String annotationValue) throws SQLException
      Specified by:
      setStringColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setColumnAnnotations

      public void setColumnAnnotations(int columnIndex, Map<String,Object> annotations) throws SQLException
      Specified by:
      setColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setColumnAnnotations

      public void setColumnAnnotations(String columnName, Map<String,Object> annotations) throws SQLException
      Specified by:
      setColumnAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setStringResultSetAnnotation

      public void setStringResultSetAnnotation(String annotationName, String annotationValue) throws SQLException
      Specified by:
      setStringResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setResultSetAnnotations

      public void setResultSetAnnotations(Map<String,Object> annotations) throws SQLException
      Specified by:
      setResultSetAnnotations in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getDoubleColumnAnnotation

      public double getDoubleColumnAnnotation(int columnIndex, String annotationName) throws SQLException
      Specified by:
      getDoubleColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getDoubleColumnAnnotation

      public double getDoubleColumnAnnotation(String columnName, String annotationName) throws SQLException
      Specified by:
      getDoubleColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getDoubleResultSetAnnotation

      public double getDoubleResultSetAnnotation(String annotationName) throws SQLException
      Specified by:
      getDoubleResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setDoubleColumnAnnotation

      public void setDoubleColumnAnnotation(int columnIndex, String annotationName, Double annotationValue) throws SQLException
      Specified by:
      setDoubleColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setDoubleColumnAnnotation

      public void setDoubleColumnAnnotation(String columnName, String annotationName, Double annotationValue) throws SQLException
      Specified by:
      setDoubleColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setDoubleResultSetAnnotation

      public void setDoubleResultSetAnnotation(String annotationName, Double annotationValue) throws SQLException
      Specified by:
      setDoubleResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • wasAnnotationsNull

      public String[] wasAnnotationsNull() throws SQLException
      Specified by:
      wasAnnotationsNull in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • wasAnnotationNull

      public boolean wasAnnotationNull() throws SQLException
      Specified by:
      wasAnnotationNull in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setNullColumnAnnotation

      public void setNullColumnAnnotation(int columnIndex, int jdbcType, String annotationName) throws SQLException
      Specified by:
      setNullColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setNullColumnAnnotation

      public void setNullColumnAnnotation(int columnIndex, int jdbcType, String annotationName, String missingValue) throws SQLException
      Specified by:
      setNullColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setNullResultSetAnnotation

      public void setNullResultSetAnnotation(int jdbcType, String annotationName) throws SQLException
      Specified by:
      setNullResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • setNullResultSetAnnotation

      public void setNullResultSetAnnotation(int jdbcType, String annotationName, String missingValue) throws SQLException
      Specified by:
      setNullResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getColumnAnnotationType

      public int getColumnAnnotationType(String columnName, String annotationName) throws SQLException
      Specified by:
      getColumnAnnotationType in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getColumnAnnotationType

      public int getColumnAnnotationType(int columnIndex, String annotationName) throws SQLException
      Specified by:
      getColumnAnnotationType in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getResultSetAnnotationType

      public int getResultSetAnnotationType(String annotationName) throws SQLException
      Specified by:
      getResultSetAnnotationType in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • clearColumnAnnotation

      public void clearColumnAnnotation(int columnIndex, String annotationName) throws SQLException
      Specified by:
      clearColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • clearColumnAnnotation

      public void clearColumnAnnotation(String columnName, String annotationName) throws SQLException
      Specified by:
      clearColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • clearResultSetAnnotation

      public void clearResultSetAnnotation(String annotationName) throws SQLException
      Specified by:
      clearResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getMissingValueResultSetAnnotation

      public Character getMissingValueResultSetAnnotation(String annotationName) throws SQLException
      Specified by:
      getMissingValueResultSetAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getMissingValueColumnAnnotation

      public Character getMissingValueColumnAnnotation(int columnIndex, String annotationName) throws SQLException
      Specified by:
      getMissingValueColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException
    • getMissingValueColumnAnnotation

      public Character getMissingValueColumnAnnotation(String columnName, String annotationName) throws SQLException
      Specified by:
      getMissingValueColumnAnnotation in interface com.sas.sql.AnnotatedResultSet
      Throws:
      SQLException