public boolean getSkipSQLParam(int iType)
    {
        boolean bSkip = super.getSkipSQLParam(iType);   // Don't skip this
        if (bSkip)
            return bSkip;   // If super says skip, definitely skip
        if ((iType == DBConstants.SQL_INSERT_TABLE_TYPE) || (iType == DBConstants.SQL_INSERT_VALUE_TYPE))
        {
            if (this.getRecord().getTable() != null)
                if (this.getRecord().getTable().getDatabase() != null)
                    if (!this.getRecord().getTable().getDatabase().isAutosequenceSupport())
                return false; // Special case - autocounters not supported.
            return true;        // Skip auto sequence inserts
        }
        return false;   // For other query types, don't skip
    }
public boolean getSkipSQLParam ( int iType ) { boolean bSkip = super . getSkipSQLParam ( iType ) ; if ( bSkip ) return bSkip ; if ( ( iType == DBConstants . SQL_INSERT_TABLE_TYPE ) || ( iType == DBConstants . SQL_INSERT_VALUE_TYPE ) ) { if ( this . getRecord ( ) . getTable ( ) != null ) if ( this . getRecord ( ) . getTable ( ) . getDatabase ( ) != null ) if ( ! this . getRecord ( ) . getTable ( ) . getDatabase ( ) . isAutosequenceSupport ( ) ) return false ; return true ; } return false ; }
Do I skip getting/putting this field into the SQL param list?
For counters, you NEVER write the value, except in the following rare case:
<br/>1. Autosequence is not supported in the database.
<br/>2. You are doing the first insert (where you are bumping the counter for a valid value).
@param iType The type of SQL statement (UPDATE/INSERT/etc).
@return true To skip this param (ie., skip insert field if not modified).