Class AbstractFieldMetaData

    • Method Detail

      • isWrapperFor

        public boolean isWrapperFor​(java.lang.Class<?> iface)
                             throws java.sql.SQLException
        Specified by:
        isWrapperFor in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> iface)
                     throws java.sql.SQLException
        Specified by:
        unwrap in interface java.sql.Wrapper
        Throws:
        java.sql.SQLException
      • getRowDescriptor

        protected final RowDescriptor getRowDescriptor()
        Returns:
        The row descriptor.
      • getFieldCount

        protected final int getFieldCount()
        Retrieves the number of fields in the object for which this AbstractFieldMetaData object contains information.
        Returns:
        the number of fields
      • getFieldDescriptor

        protected final FieldDescriptor getFieldDescriptor​(int fieldIndex)
        The FieldDescriptor of the field with index fieldIndex.
        Parameters:
        fieldIndex - 1-based index of a field in this metadata object
        Returns:
        field descriptor
      • isSignedInternal

        protected final boolean isSignedInternal​(int field)
        Retrieves whether values for the designated field can be signed numbers.
        Parameters:
        field - the first field is 1, the second is 2, ...
        Returns:
        true if so; false otherwise
      • getScaleInternal

        protected final int getScaleInternal​(int field)
        Retrieves the designated field's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.
        Parameters:
        field - the first field is 1, the second is 2, ...
        Returns:
        scale
      • getFieldClassName

        protected final java.lang.String getFieldClassName​(int field)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getFieldTypeName

        protected final java.lang.String getFieldTypeName​(int field)
      • getFieldType

        protected int getFieldType​(int field)
      • getPrecisionInternal

        protected final int getPrecisionInternal​(int field)
                                          throws java.sql.SQLException
        Retrieves the designated parameter's specified column size.

        The returned value represents the maximum column size for the given parameter. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.

        Parameters:
        field - the first field is 1, the second is 2, ...
        Returns:
        precision
        Throws:
        java.sql.SQLException - if a database access error occurs
      • estimateFixedPrecision

        protected final int estimateFixedPrecision​(int fieldIndex)