Interface EntityImportDataSource<T extends PersistenceEntity>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean exists()
      Does the dataSource exist and have data to import?
      java.lang.Class<T> getEntityType()
      Get the type of entities to import
      java.io.InputStream getInputStream()
      Get the input stream for reading the dataSource
      java.lang.String getModule()
      Get the module that imports entities from this dataSource
      java.lang.String getName()
      Get dataSource name for display
      void setModule​(java.lang.String module)
      Set the module that imports entities from the dataSource
    • Method Detail

      • getName

        java.lang.String getName()
        Get dataSource name for display
        Returns:
        localized name
      • getModule

        java.lang.String getModule()
        Get the module that imports entities from this dataSource
        Returns:
        module name
      • setModule

        void setModule​(java.lang.String module)
        Set the module that imports entities from the dataSource
        Parameters:
        module - module name
      • getEntityType

        java.lang.Class<T> getEntityType()
        Get the type of entities to import
        Returns:
        entity type
        Since:
        5.13
      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Get the input stream for reading the dataSource
        Returns:
        input stream
        Throws:
        java.io.IOException - throw if an I/O error occurs
      • exists

        boolean exists()
        Does the dataSource exist and have data to import?
        Returns:
        true if it exists, false otherwise
        Since:
        5.4