Class UpdateBatchQuery

    • Field Detail

      • usingOptimisticLocking

        protected boolean usingOptimisticLocking
    • Constructor Detail

      • UpdateBatchQuery

        public UpdateBatchQuery​(DbEntity dbEntity,
                                List<DbAttribute> qualifierAttributes,
                                List<DbAttribute> updatedAttributes,
                                Collection<String> nullQualifierNames,
                                int batchCapacity)
        Creates new UpdateBatchQuery.
        Parameters:
        dbEntity - Table or view to update.
        qualifierAttributes - DbAttributes used in the WHERE clause.
        nullQualifierNames - DbAttribute names in the WHERE clause that have null values.
        updatedAttributes - DbAttributes describing updated columns.
        batchCapacity - Estimated size of the batch.
    • Method Detail

      • isNull

        public boolean isNull​(DbAttribute attribute)
        Returns true if a given attribute always has a null value in the batch.
        Since:
        1.1
      • isUsingOptimisticLocking

        public boolean isUsingOptimisticLocking()
        Returns true if the batch query uses optimistic locking.
        Overrides:
        isUsingOptimisticLocking in class BatchQuery
        Since:
        1.1
      • setUsingOptimisticLocking

        public void setUsingOptimisticLocking​(boolean usingOptimisticLocking)
        Since:
        1.1
      • getUpdatedAttributes

        public List<DbAttribute> getUpdatedAttributes()
        Since:
        1.1
      • getQualifierAttributes

        public List<DbAttribute> getQualifierAttributes()
        Since:
        1.1