Class EssentialDataFile


  • public abstract class EssentialDataFile
    extends java.lang.Object
    Essential data in a separate impex file that is present on the application classpath.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String filePath  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EssentialDataFile​(java.lang.String path)
      Instantiates this essential data file
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void cleanData()
      Deletes all data loaded into the system from this file
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      void loadData()
      Loads data present in this essential data file into the system.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • filePath

        protected final java.lang.String filePath
    • Constructor Detail

      • EssentialDataFile

        protected EssentialDataFile​(@Nonnull
                                    java.lang.String path)
        Instantiates this essential data file
        Parameters:
        path - a path to the impex file resource on the application classpath
    • Method Detail

      • loadData

        public void loadData()
        Loads data present in this essential data file into the system.
        Throws:
        java.lang.RuntimeException - if import of the data failed.
      • cleanData

        public abstract void cleanData()
        Deletes all data loaded into the system from this file
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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