Interface PersistenceSource<D>

    • Method Detail

      • read

        XGettingCollection<? extends D> read()
                                      throws PersistenceExceptionTransfer
        A general, unspecific read, e.g. to initially read data in general from the attached data source.

        Examples:

        • simply ALL data from a plain file.
        • only root nodes (and all recursively referenced nodes) of a graph-based database.
        • nothing at all if not applicable, resulting in null being returned.
        Returns:
        data segments containing general data if applicable, otherwise null.
        Throws:
        PersistenceExceptionTransfer
      • prepareSource

        default void prepareSource()
        Prepare to read from this source. E.g. open a defined file.
      • closeSource

        default void closeSource()
        Take actions to deactivate/close/destroy the source because it won't be read again.