Class RowStruct

  • All Implemented Interfaces:
    EmbeddedRelationalStruct, com.apple.foundationdb.relational.api.RelationalStruct, java.sql.Struct, java.sql.Wrapper
    Direct Known Subclasses:
    ImmutableRowStruct, MutableRowStruct

    public abstract class RowStruct
    extends java.lang.Object
    implements com.apple.foundationdb.relational.api.RelationalStruct, EmbeddedRelationalStruct
    Implementation of RelationalStruct that is backed by a Row.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean wasNull  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RowStruct​(com.apple.foundationdb.relational.api.StructMetaData metaData)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      com.apple.foundationdb.relational.api.RelationalArray getArray​(int oneBasedPosition)  
      com.apple.foundationdb.relational.api.RelationalArray getArray​(java.lang.String columnLabel)  
      boolean getBoolean​(int oneBasedPosition)  
      boolean getBoolean​(java.lang.String columnLabel)  
      byte[] getBytes​(int oneBasedPosition)  
      byte[] getBytes​(java.lang.String columnLabel)  
      double getDouble​(int oneBasedPosition)  
      double getDouble​(java.lang.String columnLabel)  
      float getFloat​(int oneBasedPosition)  
      float getFloat​(java.lang.String columnLabel)  
      int getInt​(int oneBasedPosition)  
      int getInt​(java.lang.String columnLabel)  
      long getLong​(int oneBasedPosition)  
      long getLong​(java.lang.String columnLabel)  
      com.apple.foundationdb.relational.api.StructMetaData getMetaData()  
      java.lang.Object getObject​(int oneBasedPosition)  
      java.lang.Object getObject​(java.lang.String columnLabel)  
      protected abstract java.lang.Object getObjectInternal​(int zeroBasedPosition)  
      java.lang.String getString​(int oneBasedPosition)  
      java.lang.String getString​(java.lang.String columnLabel)  
      com.apple.foundationdb.relational.api.RelationalStruct getStruct​(int oneBasedColumn)  
      com.apple.foundationdb.relational.api.RelationalStruct getStruct​(java.lang.String columnLabel)  
      java.lang.String toString()  
      boolean wasNull()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.apple.foundationdb.relational.api.RelationalStruct

        getAttributes, getAttributes, getSQLTypeName, isWrapperFor, unwrap
    • Field Detail

      • wasNull

        protected boolean wasNull
    • Constructor Detail

      • RowStruct

        protected RowStruct​(com.apple.foundationdb.relational.api.StructMetaData metaData)
    • Method Detail

      • getMetaData

        public com.apple.foundationdb.relational.api.StructMetaData getMetaData()
                                                                         throws java.sql.SQLException
        Specified by:
        getMetaData in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getBoolean

        public boolean getBoolean​(int oneBasedPosition)
                           throws java.sql.SQLException
        Specified by:
        getBoolean in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getObjectInternal

        protected abstract java.lang.Object getObjectInternal​(int zeroBasedPosition)
                                                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • wasNull

        public boolean wasNull()
        Specified by:
        wasNull in interface com.apple.foundationdb.relational.api.RelationalStruct
      • getBoolean

        public boolean getBoolean​(java.lang.String columnLabel)
                           throws java.sql.SQLException
        Specified by:
        getBoolean in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getBytes

        public byte[] getBytes​(int oneBasedPosition)
                        throws java.sql.SQLException
        Specified by:
        getBytes in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getBytes

        public byte[] getBytes​(java.lang.String columnLabel)
                        throws java.sql.SQLException
        Specified by:
        getBytes in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getInt

        public int getInt​(int oneBasedPosition)
                   throws java.sql.SQLException
        Specified by:
        getInt in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getInt

        public int getInt​(java.lang.String columnLabel)
                   throws java.sql.SQLException
        Specified by:
        getInt in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getLong

        public long getLong​(int oneBasedPosition)
                     throws java.sql.SQLException
        Specified by:
        getLong in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getLong

        public long getLong​(java.lang.String columnLabel)
                     throws java.sql.SQLException
        Specified by:
        getLong in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getFloat

        public float getFloat​(int oneBasedPosition)
                       throws java.sql.SQLException
        Specified by:
        getFloat in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getFloat

        public float getFloat​(java.lang.String columnLabel)
                       throws java.sql.SQLException
        Specified by:
        getFloat in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getDouble

        public double getDouble​(int oneBasedPosition)
                         throws java.sql.SQLException
        Specified by:
        getDouble in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getDouble

        public double getDouble​(java.lang.String columnLabel)
                         throws java.sql.SQLException
        Specified by:
        getDouble in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getObject

        public java.lang.Object getObject​(java.lang.String columnLabel)
                                   throws java.sql.SQLException
        Specified by:
        getObject in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getObject

        public java.lang.Object getObject​(int oneBasedPosition)
                                   throws java.sql.SQLException
        Specified by:
        getObject in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString​(int oneBasedPosition)
                                   throws java.sql.SQLException
        Specified by:
        getString in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString​(java.lang.String columnLabel)
                                   throws java.sql.SQLException
        Specified by:
        getString in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getArray

        public com.apple.foundationdb.relational.api.RelationalArray getArray​(int oneBasedPosition)
                                                                       throws java.sql.SQLException
        Specified by:
        getArray in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getArray

        public com.apple.foundationdb.relational.api.RelationalArray getArray​(java.lang.String columnLabel)
                                                                       throws java.sql.SQLException
        Specified by:
        getArray in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getStruct

        public com.apple.foundationdb.relational.api.RelationalStruct getStruct​(int oneBasedColumn)
                                                                         throws java.sql.SQLException
        Specified by:
        getStruct in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • getStruct

        public com.apple.foundationdb.relational.api.RelationalStruct getStruct​(java.lang.String columnLabel)
                                                                         throws java.sql.SQLException
        Specified by:
        getStruct in interface com.apple.foundationdb.relational.api.RelationalStruct
        Throws:
        java.sql.SQLException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object