Interface WorldRepository
- All Known Implementing Classes:
SqliteWorldRepository
public interface WorldRepository
Data-access contract for persisting a
SavedWorld.
Kept as an interface, per the module's Data Access Object guidance, so
that command classes depend on this contract rather than on JDBC/SQL directly-
Method Summary
-
Method Details
-
save
Saves a world snapshot, creating it if it doesn't already exist, or replacing the existing snapshot with the same name if it does.- Parameters:
world- the world snapshot to persist- Throws:
SQLException- if the underlying database operation fails
-
restore
- Throws:
SQLException
-
exists
- Throws:
SQLException
-
listAll
- Throws:
SQLException
-