Package PamguardMVC

Class SaveRequirements

java.lang.Object
PamguardMVC.SaveRequirements

public class SaveRequirements extends Object
Class which can tell a data store what type of work is needed to re-save the data.
Author:
Doug Gillespie
  • Constructor Details Link icon

    • SaveRequirements Link icon

      public SaveRequirements(PamDataBlock pamDataBlock)
  • Method Details Link icon

    • getTotalChanges Link icon

      public int getTotalChanges()
      Returns:
      the total number of changes - additions, updated and deletions.
    • getNumUpdates Link icon

      public int getNumUpdates()
      Returns:
      the numUpdates
    • setNumUpdates Link icon

      public void setNumUpdates(int numUpdates)
      Parameters:
      numUpdates - the numUpdates to set
    • getFirstUpdateTime Link icon

      public long getFirstUpdateTime()
      Returns:
      the firstUpdateTime
    • setFirstUpdateTime Link icon

      public void setFirstUpdateTime(long firstUpdateTime)
      Parameters:
      firstUpdateTime - the firstUpdateTime to set
    • getLastUpdateTime Link icon

      public long getLastUpdateTime()
      Returns:
      the lastUpdateTime
    • setLastUpdateTime Link icon

      public void setLastUpdateTime(long lastUpdateTime)
      Parameters:
      lastUpdateTime - the lastUpdateTime to set
    • getFirstUpdateIndex Link icon

      public long getFirstUpdateIndex()
      Returns:
      the firstUpdateIndex
    • setFirstUpdateIndex Link icon

      public void setFirstUpdateIndex(long firstUpdateIndex)
      Parameters:
      firstUpdateIndex - the firstUpdateIndex to set
    • getLastUpdateIndex Link icon

      public long getLastUpdateIndex()
      Returns:
      the lastUpdateIndex
    • setLastUpdateIndex Link icon

      public void setLastUpdateIndex(long lastUpdateIndex)
      Parameters:
      lastUpdateIndex - the lastUpdateIndex to set
    • getFirstDeleteTime Link icon

      public long getFirstDeleteTime()
      Returns:
      the firstDeleteTime
    • setFirstDeleteTime Link icon

      public void setFirstDeleteTime(long firstDeleteTime)
      Parameters:
      firstDeleteTime - the firstDeleteTime to set
    • getLastDeleteTime Link icon

      public long getLastDeleteTime()
      Returns:
      the lastDeleteTime
    • setLastDeleteTime Link icon

      public void setLastDeleteTime(long lastDeleteTime)
      Parameters:
      lastDeleteTime - the lastDeleteTime to set
    • getFirstDeleteIndex Link icon

      public long getFirstDeleteIndex()
      Returns:
      the firstDeleteIndex
    • setFirstDeleteIndex Link icon

      public void setFirstDeleteIndex(long firstDeleteIndex)
      Parameters:
      firstDeleteIndex - the firstDeleteIndex to set
    • getLastDeleteIndex Link icon

      public long getLastDeleteIndex()
      Returns:
      the lastDeleteIndex
    • setLastDeleteIndex Link icon

      public void setLastDeleteIndex(long lastDeleteIndex)
      Parameters:
      lastDeleteIndex - the lastDeleteIndex to set
    • getNumAdditions Link icon

      public int getNumAdditions()
      Returns:
      the numAdditions
    • setNumAdditions Link icon

      public void setNumAdditions(int numAdditions)
      Parameters:
      numAdditions - the numAdditions to set
    • getNumDeletions Link icon

      public int getNumDeletions()
      Returns:
      the number of items listed for deletion.
    • getDeleteIndexes Link icon

      public int[] getDeleteIndexes()
      Returns:
      the deleteIndexes
    • addUpdateUnit Link icon

      public void addUpdateUnit(PamDataUnit aUnit)
      Add an update unit

      Lists the index and works out the first and last times and indexes.

      Parameters:
      aUnit -
    • getUpdatedIndexes Link icon

      public int[] getUpdatedIndexes()
      Returns:
      the updatedIndexes - a list of indexes which have been updated.
    • addDeletedUnit Link icon

      public void addDeletedUnit(PamDataUnit aUnit)
      Add a deleted unit

      Lists the index and works out the first and last times and indexes.

      Parameters:
      aUnit -
    • addDeleteIndexes Link icon

      public void addDeleteIndexes(int deleteIndex)
      Parameters:
      deleteIndexes - add a new index to the delete list
    • getPamDataBlock Link icon

      public PamDataBlock getPamDataBlock()
      Returns:
      the pamDataBlock