Interface Savable

All Known Implementing Classes:
Bank, Partner, User

public interface Savable
The Savable is an element that can be stored in a disk support, files or databases. The save process can be launched via the method save(ObjectOutputStream)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the save name of this savable object.
    void
    Writes all persistable attributes to the given stream.
  • Method Details

    • save

      void save(ObjectOutputStream oos) throws IOException
      Writes all persistable attributes to the given stream.
      Parameters:
      oos - the given stream.
      Throws:
      IOException - save process failed
    • getSaveName

      String getSaveName()
      Returns the save name of this savable object.
      Returns:
      the save name