Class RowImpl

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RowImpl​(Column[] cols, int action)  
        RowImpl​(Table table, int action)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canSet​(ColumnIO io, int i, boolean nullValue)
      Return true if the given column index is settable.
      protected boolean canSetAny​(ColumnIO io, int i, boolean nullValue)
      Return true if any of the given column indexes are settable.
      void clearForeignKey​(ForeignKey fk)
      Clear a circular foreign key.
      void clearRelationId​(Column col)
      Clear a circular relation id.
      java.lang.Object clone()
      Performs a proper deep clone.
      void copyInto​(RowImpl row, boolean whereOnly)
      Copy all values from this row into the given one.
      void flush​(java.sql.PreparedStatement stmnt, int idx, DBDictionary dict, JDBCStore store)
      Flush the row's values to the given prepared statement.
      void flush​(java.sql.PreparedStatement stmnt, DBDictionary dict, JDBCStore store)
      Flush the row's values to the given prepared statement.
      protected java.lang.String generateSQL​(DBDictionary dict)
      Generate the SQL for this row; the result of this method is cached.
      int getAction()
      Return the action for this row.
      Column[] getColumns()  
      java.lang.Object getFailedObject()
      This implementation does not track failed objects.
      int getParameterCount()
      The number of parameters that will be set for this row.
      OpenJPAStateManager getPrimaryKey()
      This implementation does not track primary keys.
      java.lang.Object getSet​(Column col)
      Return the value set for update on the given column.
      java.lang.String getSQL​(DBDictionary dict)
      Return the SQL for the operation on this row.
      Table getTable()
      Return the table for this row.
      int[] getTypes()  
      java.lang.Object[] getVals()  
      java.lang.Object getWhere​(Column col)
      Return the value set for where on the given column.
      boolean isDependent()
      Secondary rows cannot be dependent.
      boolean isFlushed()  
      boolean isValid()
      Whether this row has information set on it.
      protected RowImpl newInstance​(Column[] cols, int action)
      Return a new row.
      void setArray​(Column col, java.sql.Array val)
      Set the value of the given column in this row.
      void setAsciiStream​(Column col, java.io.InputStream val, int length)
      Set the value of the given column in this row.
      void setBigDecimal​(Column col, java.math.BigDecimal val)
      Set the value of the given column in this row.
      void setBigInteger​(Column col, java.math.BigInteger val)
      Set the value of the given column in this row.
      void setBinaryStream​(Column col, java.io.InputStream val, int length)
      Set the value of the given column in this row.
      void setBlob​(Column col, java.sql.Blob val)
      Set the value of the given column in this row.
      void setBoolean​(Column col, boolean val)
      Set the value of the given column in this row.
      void setByte​(Column col, byte val)
      Set the value of the given column in this row.
      void setBytes​(Column col, byte[] val)
      Set the value of the given column in this row.
      void setCalendar​(Column col, java.util.Calendar val)
      Set the value of the given column in this row.
      void setChar​(Column col, char val)
      Set the value of the given column in this row.
      void setCharacterStream​(Column col, java.io.Reader val, int length)
      Set the value of the given column in this row.
      void setClob​(Column col, java.sql.Clob val)
      Set the value of the given column in this row.
      void setDate​(Column col, java.sql.Date val, java.util.Calendar cal)
      Set the value of the given column in this row.
      void setDate​(Column col, java.util.Date val)
      Set the value of the given column in this row.
      void setDouble​(Column col, double val)
      Set the value of the given column in this row.
      void setFailedObject​(java.lang.Object failed)
      This implementation does not track failed objects.
      void setFloat​(Column col, float val)
      Set the value of the given column in this row.
      void setFlushed​(boolean isFlushed)  
      void setForeignKey​(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm)
      Set the value of the given foreign key to the given object.
      void setForeignKey​(ForeignKey fk, OpenJPAStateManager sm)
      Set the value of the given foreign key to the given object.
      void setInt​(Column col, int val)
      Set the value of the given column in this row.
      void setLocale​(Column col, java.util.Locale val)
      Set the value of the given column in this row.
      void setLong​(Column col, long val)
      Set the value of the given column in this row.
      void setNull​(Column col)
      Set the value of the given column in this row.
      void setNull​(Column col, boolean overrideDefault)
      Set the value of the given column in this row.
      void setNumber​(Column col, java.lang.Number val)
      Set the value of the given column in this row.
      void setObject​(Column col, java.lang.Object val)
      Set the value of the given column in this row.
      protected void setObject​(Column col, java.lang.Object val, int metaType, boolean overrideDefault)
      All set column methods delegate to this one.
      void setPrimaryKey​(ColumnIO io, OpenJPAStateManager sm)
      Set the primary key to represent the given object.
      void setPrimaryKey​(OpenJPAStateManager sm)
      Set the primary key to represent the given object.
      void setRaw​(Column col, java.lang.String val)
      Set a DB understood value for the given column.
      void setRelationId​(Column col, OpenJPAStateManager sm, RelationId rel)
      Set the value of the given column to the identity of given instance, using the given callback to create the column value.
      void setShort​(Column col, short val)
      Set the value of the given column in this row.
      void setString​(Column col, java.lang.String val)
      Set the value of the given column in this row.
      void setTime​(Column col, java.sql.Time val, java.util.Calendar cal)
      Set the value of the given column in this row.
      void setTimestamp​(Column col, java.sql.Timestamp val, java.util.Calendar cal)
      Set the value of the given column in this row.
      void setValid​(boolean valid)
      Whether this row has information set on it.
      void whereArray​(Column col, java.sql.Array val)
      Set an equality condition on the value of the given column in this row.
      void whereAsciiStream​(Column col, java.io.InputStream val, int length)
      Set an equality condition on the value of the given column in this row.
      void whereBigDecimal​(Column col, java.math.BigDecimal val)
      Set an equality condition on the value of the given column in this row.
      void whereBigInteger​(Column col, java.math.BigInteger val)
      Set an equality condition on the value of the given column in this row.
      void whereBinaryStream​(Column col, java.io.InputStream val, int length)
      Set an equality condition on the value of the given column in this row.
      void whereBlob​(Column col, java.sql.Blob val)
      Set an equality condition on the value of the given column in this row.
      void whereBoolean​(Column col, boolean val)
      Set an equality condition on the value of the given column in this row.
      void whereByte​(Column col, byte val)
      Set an equality condition on the value of the given column in this row.
      void whereBytes​(Column col, byte[] val)
      Set an equality condition on the value of the given column in this row.
      void whereCalendar​(Column col, java.util.Calendar val)
      Set an equality condition on the value of the given column in this row.
      void whereChar​(Column col, char val)
      Set an equality condition on the value of the given column in this row.
      void whereCharacterStream​(Column col, java.io.Reader val, int length)
      Set an equality condition on the value of the given column in this row.
      void whereClob​(Column col, java.sql.Clob val)
      Set an equality condition on the value of the given column in this row.
      void whereDate​(Column col, java.sql.Date val, java.util.Calendar cal)
      Set an equality condition on the value of the given column in this row.
      void whereDate​(Column col, java.util.Date val)
      Set an equality condition on the value of the given column in this row.
      void whereDouble​(Column col, double val)
      Set an equality condition on the value of the given column in this row.
      void whereFloat​(Column col, float val)
      Set an equality condition on the value of the given column in this row.
      void whereForeignKey​(ForeignKey fk, OpenJPAStateManager sm)
      Set the foreign key equality criteria to link to the given object.
      void whereInt​(Column col, int val)
      Set an equality condition on the value of the given column in this row.
      void whereLocale​(Column col, java.util.Locale val)
      Set an equality condition on the value of the given column in this row.
      void whereLong​(Column col, long val)
      Set an equality condition on the value of the given column in this row.
      void whereNull​(Column col)
      Set an equality condition on the value of the given column in this row.
      void whereNumber​(Column col, java.lang.Number val)
      Set an equality condition on the value of the given column in this row.
      void whereObject​(Column col, java.lang.Object val)
      Set an equality condition on the value of the given column in this row.
      protected void whereObject​(Column col, java.lang.Object val, int metaType)
      All where column methods delegate to this one.
      void wherePrimaryKey​(OpenJPAStateManager sm)
      Set the primary key equality criteria for this row.
      void whereRaw​(Column col, java.lang.String val)
      Set a DB understood where condition for the given column.
      void whereShort​(Column col, short val)
      Set an equality condition on the value of the given column in this row.
      void whereString​(Column col, java.lang.String val)
      Set an equality condition on the value of the given column in this row.
      void whereTime​(Column col, java.sql.Time val, java.util.Calendar cal)
      Set an equality condition on the value of the given column in this row.
      void whereTimestamp​(Column col, java.sql.Timestamp val, java.util.Calendar cal)
      Set an equality condition on the value of the given column in this row.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RowImpl

        public RowImpl​(Table table,
                       int action)
        Constructor.
        Parameters:
        table - the table the row is a part of
        action - the action on the row
      • RowImpl

        protected RowImpl​(Column[] cols,
                          int action)
    • Method Detail

      • getTable

        public Table getTable()
        Description copied from interface: Row
        Return the table for this row.
        Specified by:
        getTable in interface Row
      • getColumns

        public Column[] getColumns()
      • getAction

        public int getAction()
        Description copied from interface: Row
        Return the action for this row.
        Specified by:
        getAction in interface Row
      • isValid

        public boolean isValid()
        Description copied from interface: Row
        Whether this row has information set on it.
        Specified by:
        isValid in interface Row
      • setValid

        public void setValid​(boolean valid)
        Description copied from interface: Row
        Whether this row has information set on it.
        Specified by:
        setValid in interface Row
      • getFailedObject

        public java.lang.Object getFailedObject()
        This implementation does not track failed objects.
        Specified by:
        getFailedObject in interface Row
      • setFailedObject

        public void setFailedObject​(java.lang.Object failed)
        This implementation does not track failed objects.
        Specified by:
        setFailedObject in interface Row
      • isDependent

        public boolean isDependent()
        Secondary rows cannot be dependent.
      • getSet

        public java.lang.Object getSet​(Column col)
        Return the value set for update on the given column.
      • getWhere

        public java.lang.Object getWhere​(Column col)
        Return the value set for where on the given column.
      • setPrimaryKey

        public void setPrimaryKey​(OpenJPAStateManager sm)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the primary key to represent the given object.
        Specified by:
        setPrimaryKey in interface Row
        Throws:
        java.sql.SQLException
      • setPrimaryKey

        public void setPrimaryKey​(ColumnIO io,
                                  OpenJPAStateManager sm)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the primary key to represent the given object.
        Specified by:
        setPrimaryKey in interface Row
        Parameters:
        io - information on which columns are settable; may be null
        Throws:
        java.sql.SQLException
      • wherePrimaryKey

        public void wherePrimaryKey​(OpenJPAStateManager sm)
                             throws java.sql.SQLException
        Description copied from interface: Row
        Set the primary key equality criteria for this row.
        Specified by:
        wherePrimaryKey in interface Row
        Throws:
        java.sql.SQLException
      • setForeignKey

        public void setForeignKey​(ForeignKey fk,
                                  OpenJPAStateManager sm)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given foreign key to the given object. If the related type uses table-per-class mappings, the foreign key may be targeted at an independent superclass table.
        Specified by:
        setForeignKey in interface Row
        Throws:
        java.sql.SQLException
      • setForeignKey

        public void setForeignKey​(ForeignKey fk,
                                  ColumnIO io,
                                  OpenJPAStateManager sm)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given foreign key to the given object. If the related type uses table-per-class mappings, the foreign key may be targeted at an independent superclass table.
        Specified by:
        setForeignKey in interface Row
        io - information on which columns are settable; may be null
        Throws:
        java.sql.SQLException
      • whereForeignKey

        public void whereForeignKey​(ForeignKey fk,
                                    OpenJPAStateManager sm)
                             throws java.sql.SQLException
        Description copied from interface: Row
        Set the foreign key equality criteria to link to the given object. If the related type uses table-per-class mappings, the foreign key may be targeted at an independent superclass table.
        Specified by:
        whereForeignKey in interface Row
        Throws:
        java.sql.SQLException
      • clearForeignKey

        public void clearForeignKey​(ForeignKey fk)
                             throws java.sql.SQLException
        Clear a circular foreign key.
        Throws:
        java.sql.SQLException
      • canSetAny

        protected boolean canSetAny​(ColumnIO io,
                                    int i,
                                    boolean nullValue)
        Return true if any of the given column indexes are settable.
      • canSet

        protected boolean canSet​(ColumnIO io,
                                 int i,
                                 boolean nullValue)
        Return true if the given column index is settable.
      • setRelationId

        public void setRelationId​(Column col,
                                  OpenJPAStateManager sm,
                                  RelationId rel)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column to the identity of given instance, using the given callback to create the column value. This method is used for mappings that store some serialized form of id values, but must make sure that the related object's id is assigned (which might require an insert if the instance uses auto-increment) before it is serialized.
        Specified by:
        setRelationId in interface Row
        Throws:
        java.sql.SQLException
      • clearRelationId

        public void clearRelationId​(Column col)
                             throws java.sql.SQLException
        Clear a circular relation id.
        Throws:
        java.sql.SQLException
      • setArray

        public void setArray​(Column col,
                             java.sql.Array val)
                      throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setArray in interface Row
        Throws:
        java.sql.SQLException
      • setAsciiStream

        public void setAsciiStream​(Column col,
                                   java.io.InputStream val,
                                   int length)
                            throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setAsciiStream in interface Row
        Throws:
        java.sql.SQLException
      • setBigDecimal

        public void setBigDecimal​(Column col,
                                  java.math.BigDecimal val)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setBigDecimal in interface Row
        Throws:
        java.sql.SQLException
      • setBigInteger

        public void setBigInteger​(Column col,
                                  java.math.BigInteger val)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setBigInteger in interface Row
        Throws:
        java.sql.SQLException
      • setBinaryStream

        public void setBinaryStream​(Column col,
                                    java.io.InputStream val,
                                    int length)
                             throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setBinaryStream in interface Row
        Throws:
        java.sql.SQLException
      • setBlob

        public void setBlob​(Column col,
                            java.sql.Blob val)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setBlob in interface Row
        Throws:
        java.sql.SQLException
      • setBoolean

        public void setBoolean​(Column col,
                               boolean val)
                        throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setBoolean in interface Row
        Throws:
        java.sql.SQLException
      • setByte

        public void setByte​(Column col,
                            byte val)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setByte in interface Row
        Throws:
        java.sql.SQLException
      • setBytes

        public void setBytes​(Column col,
                             byte[] val)
                      throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setBytes in interface Row
        Throws:
        java.sql.SQLException
      • setCalendar

        public void setCalendar​(Column col,
                                java.util.Calendar val)
                         throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setCalendar in interface Row
        Throws:
        java.sql.SQLException
      • setChar

        public void setChar​(Column col,
                            char val)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setChar in interface Row
        Throws:
        java.sql.SQLException
      • setCharacterStream

        public void setCharacterStream​(Column col,
                                       java.io.Reader val,
                                       int length)
                                throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setCharacterStream in interface Row
        Throws:
        java.sql.SQLException
      • setClob

        public void setClob​(Column col,
                            java.sql.Clob val)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setClob in interface Row
        Throws:
        java.sql.SQLException
      • setDate

        public void setDate​(Column col,
                            java.util.Date val)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setDate in interface Row
        Throws:
        java.sql.SQLException
      • setDate

        public void setDate​(Column col,
                            java.sql.Date val,
                            java.util.Calendar cal)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setDate in interface Row
        Throws:
        java.sql.SQLException
      • setDouble

        public void setDouble​(Column col,
                              double val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setDouble in interface Row
        Throws:
        java.sql.SQLException
      • setFloat

        public void setFloat​(Column col,
                             float val)
                      throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setFloat in interface Row
        Throws:
        java.sql.SQLException
      • setInt

        public void setInt​(Column col,
                           int val)
                    throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setInt in interface Row
        Throws:
        java.sql.SQLException
      • setLong

        public void setLong​(Column col,
                            long val)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setLong in interface Row
        Throws:
        java.sql.SQLException
      • setLocale

        public void setLocale​(Column col,
                              java.util.Locale val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setLocale in interface Row
        Throws:
        java.sql.SQLException
      • setNull

        public void setNull​(Column col)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setNull in interface Row
        Throws:
        java.sql.SQLException
      • setNull

        public void setNull​(Column col,
                            boolean overrideDefault)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setNull in interface Row
        overrideDefault - whether to set this column to null even if this is an insert and the column has a default
        Throws:
        java.sql.SQLException
      • setNumber

        public void setNumber​(Column col,
                              java.lang.Number val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setNumber in interface Row
        Throws:
        java.sql.SQLException
      • setRaw

        public void setRaw​(Column col,
                           java.lang.String val)
                    throws java.sql.SQLException
        Description copied from interface: Row
        Set a DB understood value for the given column. The value will not be parameterized and instead be inserted as raw SQL.
        Specified by:
        setRaw in interface Row
        Throws:
        java.sql.SQLException
      • setShort

        public void setShort​(Column col,
                             short val)
                      throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setShort in interface Row
        Throws:
        java.sql.SQLException
      • setString

        public void setString​(Column col,
                              java.lang.String val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setString in interface Row
        Throws:
        java.sql.SQLException
      • setTime

        public void setTime​(Column col,
                            java.sql.Time val,
                            java.util.Calendar cal)
                     throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setTime in interface Row
        Throws:
        java.sql.SQLException
      • setTimestamp

        public void setTimestamp​(Column col,
                                 java.sql.Timestamp val,
                                 java.util.Calendar cal)
                          throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setTimestamp in interface Row
        Throws:
        java.sql.SQLException
      • setObject

        public void setObject​(Column col,
                              java.lang.Object val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set the value of the given column in this row.
        Specified by:
        setObject in interface Row
        Parameters:
        col - the column being set
        val - the value for the column
        Throws:
        java.sql.SQLException
      • whereArray

        public void whereArray​(Column col,
                               java.sql.Array val)
                        throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereArray in interface Row
        Throws:
        java.sql.SQLException
      • whereAsciiStream

        public void whereAsciiStream​(Column col,
                                     java.io.InputStream val,
                                     int length)
                              throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereAsciiStream in interface Row
        Throws:
        java.sql.SQLException
      • whereBigDecimal

        public void whereBigDecimal​(Column col,
                                    java.math.BigDecimal val)
                             throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereBigDecimal in interface Row
        Throws:
        java.sql.SQLException
      • whereBigInteger

        public void whereBigInteger​(Column col,
                                    java.math.BigInteger val)
                             throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereBigInteger in interface Row
        Throws:
        java.sql.SQLException
      • whereBinaryStream

        public void whereBinaryStream​(Column col,
                                      java.io.InputStream val,
                                      int length)
                               throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereBinaryStream in interface Row
        Throws:
        java.sql.SQLException
      • whereBlob

        public void whereBlob​(Column col,
                              java.sql.Blob val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereBlob in interface Row
        Throws:
        java.sql.SQLException
      • whereBoolean

        public void whereBoolean​(Column col,
                                 boolean val)
                          throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereBoolean in interface Row
        Throws:
        java.sql.SQLException
      • whereByte

        public void whereByte​(Column col,
                              byte val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereByte in interface Row
        Throws:
        java.sql.SQLException
      • whereBytes

        public void whereBytes​(Column col,
                               byte[] val)
                        throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereBytes in interface Row
        Throws:
        java.sql.SQLException
      • whereCalendar

        public void whereCalendar​(Column col,
                                  java.util.Calendar val)
                           throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereCalendar in interface Row
        Throws:
        java.sql.SQLException
      • whereChar

        public void whereChar​(Column col,
                              char val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereChar in interface Row
        Throws:
        java.sql.SQLException
      • whereCharacterStream

        public void whereCharacterStream​(Column col,
                                         java.io.Reader val,
                                         int length)
                                  throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereCharacterStream in interface Row
        Throws:
        java.sql.SQLException
      • whereClob

        public void whereClob​(Column col,
                              java.sql.Clob val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereClob in interface Row
        Throws:
        java.sql.SQLException
      • whereDate

        public void whereDate​(Column col,
                              java.util.Date val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereDate in interface Row
        Throws:
        java.sql.SQLException
      • whereDate

        public void whereDate​(Column col,
                              java.sql.Date val,
                              java.util.Calendar cal)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereDate in interface Row
        Throws:
        java.sql.SQLException
      • whereDouble

        public void whereDouble​(Column col,
                                double val)
                         throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereDouble in interface Row
        Throws:
        java.sql.SQLException
      • whereFloat

        public void whereFloat​(Column col,
                               float val)
                        throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereFloat in interface Row
        Throws:
        java.sql.SQLException
      • whereInt

        public void whereInt​(Column col,
                             int val)
                      throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereInt in interface Row
        Throws:
        java.sql.SQLException
      • whereLong

        public void whereLong​(Column col,
                              long val)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereLong in interface Row
        Throws:
        java.sql.SQLException
      • whereLocale

        public void whereLocale​(Column col,
                                java.util.Locale val)
                         throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereLocale in interface Row
        Throws:
        java.sql.SQLException
      • whereNull

        public void whereNull​(Column col)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereNull in interface Row
        Throws:
        java.sql.SQLException
      • whereNumber

        public void whereNumber​(Column col,
                                java.lang.Number val)
                         throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereNumber in interface Row
        Throws:
        java.sql.SQLException
      • whereRaw

        public void whereRaw​(Column col,
                             java.lang.String val)
                      throws java.sql.SQLException
        Description copied from interface: Row
        Set a DB understood where condition for the given column. The value will not be parameterized and instead be inserted as raw SQL.
        Specified by:
        whereRaw in interface Row
        Throws:
        java.sql.SQLException
      • whereShort

        public void whereShort​(Column col,
                               short val)
                        throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereShort in interface Row
        Throws:
        java.sql.SQLException
      • whereString

        public void whereString​(Column col,
                                java.lang.String val)
                         throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereString in interface Row
        Throws:
        java.sql.SQLException
      • whereTime

        public void whereTime​(Column col,
                              java.sql.Time val,
                              java.util.Calendar cal)
                       throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereTime in interface Row
        Throws:
        java.sql.SQLException
      • whereTimestamp

        public void whereTimestamp​(Column col,
                                   java.sql.Timestamp val,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereTimestamp in interface Row
        Throws:
        java.sql.SQLException
      • whereObject

        public void whereObject​(Column col,
                                java.lang.Object val)
                         throws java.sql.SQLException
        Description copied from interface: Row
        Set an equality condition on the value of the given column in this row.
        Specified by:
        whereObject in interface Row
        Parameters:
        col - the column being set
        val - the value for the column
        Throws:
        java.sql.SQLException
      • setObject

        protected void setObject​(Column col,
                                 java.lang.Object val,
                                 int metaType,
                                 boolean overrideDefault)
                          throws java.sql.SQLException
        All set column methods delegate to this one. Set the given object unless this is an insert and the given column is auto-assigned.
        Throws:
        java.sql.SQLException
      • whereObject

        protected void whereObject​(Column col,
                                   java.lang.Object val,
                                   int metaType)
                            throws java.sql.SQLException
        All where column methods delegate to this one.
        Throws:
        java.sql.SQLException
      • getSQL

        public java.lang.String getSQL​(DBDictionary dict)
        Return the SQL for the operation on this row.
      • generateSQL

        protected java.lang.String generateSQL​(DBDictionary dict)
        Generate the SQL for this row; the result of this method is cached.
      • getParameterCount

        public int getParameterCount()
        The number of parameters that will be set for this row.
      • flush

        public void flush​(java.sql.PreparedStatement stmnt,
                          DBDictionary dict,
                          JDBCStore store)
                   throws java.sql.SQLException
        Flush the row's values to the given prepared statement.
        Throws:
        java.sql.SQLException
      • flush

        public void flush​(java.sql.PreparedStatement stmnt,
                          int idx,
                          DBDictionary dict,
                          JDBCStore store)
                   throws java.sql.SQLException
        Flush the row's values to the given prepared statement.
        Throws:
        java.sql.SQLException
      • clone

        public java.lang.Object clone()
        Performs a proper deep clone.
        Overrides:
        clone in class java.lang.Object
      • newInstance

        protected RowImpl newInstance​(Column[] cols,
                                      int action)
        Return a new row.
      • copyInto

        public void copyInto​(RowImpl row,
                             boolean whereOnly)
        Copy all values from this row into the given one.
        Parameters:
        whereOnly - if true, only copy where conditions
      • getVals

        public java.lang.Object[] getVals()
      • getTypes

        public int[] getTypes()
      • isFlushed

        public boolean isFlushed()
      • setFlushed

        public void setFlushed​(boolean isFlushed)