Package com.sas.services.publish
Class AnnotatedServiceResultSet
java.lang.Object
com.sas.services.publish.ServiceResultSet
com.sas.services.publish.AnnotatedServiceResultSet
- All Implemented Interfaces:
com.sas.sql.AnnotatedResultSet,AutoCloseable,ResultSet,Wrapper
public class AnnotatedServiceResultSet
extends ServiceResultSet
implements com.sas.sql.AnnotatedResultSet
This class defines the methods needed to consume column and data set annotations. These
annotations correspond to the extended attributes of a SAS data set. These methods can be used
with SAS 9.4 or later.
- Since:
- 9.4
-
Field Summary
Fields inherited from class com.sas.services.publish.ServiceResultSet
_columns, _retrieverFields 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
ConstructorsConstructorDescriptionAnnotatedServiceResultSet(DatasetEntryCallbackInterface retriever) AnnotatedServiceResultSet(DatasetEntryCallbackInterface retriever, int nobs) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearColumnAnnotation(int arg0, String arg1) voidclearColumnAnnotation(String arg0, String arg1) voidclearColumnAnnotations(int arg0) voidclearColumnAnnotations(String arg0) voidclearResultSetAnnotation(String annotationName) voidMap<String, Object> getColumnAnnotations(int columnIndex) Map<String, Object> getColumnAnnotations(String columnName) intgetColumnAnnotationType(int columnIndex, String annotationName) Gets the SQL type for the column.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) Gets the SQL type for the ResultSet.StringgetStringColumnAnnotation(int columnIndex, String annotationName) StringgetStringColumnAnnotation(String columnName, String annotationName) Map<String, Object> getStringColumnAnnotations(String columnName) StringgetStringResultSetAnnotation(String annotationName) booleanhasColumnAnnotation(int columnIndex, String annotationName) booleanhasColumnAnnotation(String columnName, String annotationName) booleanhasColumnAnnotations(int columnIndex) booleanhasColumnAnnotations(String columnName) booleanhasResultSetAnnotation(String annotationName) booleanvoidsetColumnAnnotations(int arg0, Map<String, Object> arg1) voidsetColumnAnnotations(String arg0, Map<String, Object> arg1) voidsetDoubleColumnAnnotation(int arg0, String arg1, Double arg2) voidsetDoubleColumnAnnotation(String arg0, String arg1, Double arg2) voidsetDoubleResultSetAnnotation(String arg0, Double arg1) voidsetNullColumnAnnotation(int arg0, int arg1, String arg2) voidsetNullColumnAnnotation(int arg0, int arg1, String arg2, String arg3) voidsetNullResultSetAnnotation(int arg0, String arg1) voidsetNullResultSetAnnotation(int arg0, String arg1, String arg2) voidsetResultSetAnnotations(Map<String, Object> arg0) voidsetStringColumnAnnotation(int arg0, String arg1, String arg2) voidsetStringColumnAnnotation(String arg0, String arg1, String arg2) voidsetStringResultSetAnnotation(String arg0, String arg1) booleanString[]Methods inherited from class com.sas.services.publish.ServiceResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, fetch, finalize, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, 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, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setColumns, setFetchDirection, setFetchSize, setNumColumns, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
Constructor Details
-
AnnotatedServiceResultSet
public AnnotatedServiceResultSet(DatasetEntryCallbackInterface retriever) -
AnnotatedServiceResultSet
public AnnotatedServiceResultSet(DatasetEntryCallbackInterface retriever, int nobs)
-
-
Method Details
-
clearColumnAnnotations
public void clearColumnAnnotations(int arg0) throws SQLException - Specified by:
clearColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearColumnAnnotations
public void clearColumnAnnotations(String arg0) throws SQLException - Specified by:
clearColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearColumnAnnotation
public void clearColumnAnnotation(String arg0, String arg1) throws SQLException - Specified by:
clearColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
clearColumnAnnotation
public void clearColumnAnnotation(int arg0, String arg1) 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
-
clearResultSetAnnotations
public void clearResultSetAnnotations() throws SQLException- Specified by:
clearResultSetAnnotationsin 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
-
getColumnAnnotationType
public int getColumnAnnotationType(int columnIndex, String annotationName) throws SQLException Gets the SQL type for the column.- Specified by:
getColumnAnnotationTypein interfacecom.sas.sql.AnnotatedResultSet- Parameters:
columnIndex- The index of the column that is returned by the ResultSetMetaData object.annotationName- The name of the annotation that is defined for the column.- Returns:
- java.sql.Types for the column.
- Throws:
SQLException- This exception is thrown if the value for column is not valid or the annotation name is not defined.- See Also:
-
getColumnAnnotationType
public int getColumnAnnotationType(String columnName, String annotationName) throws SQLException - Specified by:
getColumnAnnotationTypein 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
-
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
-
getResultSetAnnotationType
public int getResultSetAnnotationType(String annotationName) throws SQLException Gets the SQL type for the ResultSet.- Specified by:
getResultSetAnnotationTypein interfacecom.sas.sql.AnnotatedResultSet- Parameters:
annotationName- The name of the annotation that is defined for the ResultSet.- Returns:
- java.sql.Types for the column.
- Throws:
SQLException- This exception is thrown if the value for column is not valid or the annotation name is not defined.- See Also:
-
getResultSetAnnotations
public Map<String,Object> getResultSetAnnotations() throws SQLException- Specified by:
getResultSetAnnotationsin 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
-
getStringColumnAnnotations
public Map<String,Object> getStringColumnAnnotations(String columnName) throws SQLException - Throws:
SQLException
-
getStringResultSetAnnotation
public String getStringResultSetAnnotation(String annotationName) throws SQLException - Specified by:
getStringResultSetAnnotationin 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
-
setColumnAnnotations
public void setColumnAnnotations(int arg0, Map<String, Object> arg1) throws SQLException- Specified by:
setColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setColumnAnnotations
public void setColumnAnnotations(String arg0, Map<String, Object> arg1) throws SQLException- Specified by:
setColumnAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setDoubleColumnAnnotation
public void setDoubleColumnAnnotation(int arg0, String arg1, Double arg2) throws SQLException - Specified by:
setDoubleColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setDoubleColumnAnnotation
public void setDoubleColumnAnnotation(String arg0, String arg1, Double arg2) throws SQLException - Specified by:
setDoubleColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setDoubleResultSetAnnotation
public void setDoubleResultSetAnnotation(String arg0, Double arg1) throws SQLException - Specified by:
setDoubleResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullColumnAnnotation
public void setNullColumnAnnotation(int arg0, int arg1, String arg2) throws SQLException - Specified by:
setNullColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullColumnAnnotation
public void setNullColumnAnnotation(int arg0, int arg1, String arg2, String arg3) throws SQLException - Specified by:
setNullColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullResultSetAnnotation
public void setNullResultSetAnnotation(int arg0, String arg1) throws SQLException - Specified by:
setNullResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setNullResultSetAnnotation
public void setNullResultSetAnnotation(int arg0, String arg1, String arg2) throws SQLException - Specified by:
setNullResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setResultSetAnnotations
public void setResultSetAnnotations(Map<String, Object> arg0) throws SQLException- Specified by:
setResultSetAnnotationsin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setStringColumnAnnotation
public void setStringColumnAnnotation(int arg0, String arg1, String arg2) throws SQLException - Specified by:
setStringColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setStringColumnAnnotation
public void setStringColumnAnnotation(String arg0, String arg1, String arg2) throws SQLException - Specified by:
setStringColumnAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
setStringResultSetAnnotation
public void setStringResultSetAnnotation(String arg0, String arg1) throws SQLException - Specified by:
setStringResultSetAnnotationin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
wasAnnotationNull
public boolean wasAnnotationNull() throws SQLException- Specified by:
wasAnnotationNullin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-
wasAnnotationsNull
public String[] wasAnnotationsNull() throws SQLException- Specified by:
wasAnnotationsNullin interfacecom.sas.sql.AnnotatedResultSet- Throws:
SQLException
-