Class GrainSaver

java.lang.Object
ru.curs.celesta.score.GrainSaver

public final class GrainSaver extends Object
Persists grain to a writable resource.
Since:
2019-03-10
Author:
Pavel Perminov (packpaul@mail.ru)
  • Constructor Details

    • GrainSaver

      public GrainSaver()
  • Method Details

    • save

      public void save(AbstractScore score, Resource scorePath) throws IOException
      Saves metadata content of score back to SQL-files rewriting their content.
      Parameters:
      score - Score to save
      scorePath - path to save the score to
      Throws:
      IOException
    • save

      public void save(Grain grain, Resource scorePath) throws IOException
      Saves grain to file(s).
      Parameters:
      grain - grain to save
      scorePath - path to save the grain to
      Throws:
      IOException