Module de.seggebaeing.sqlanalyzer
Interface Persistable
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
GeneratedQueryDTO
,LLMDTO
,PromptDTO
,PromptTypeDTO
,SampleQueryDTO
Marker interface for objects that can be persisted.
Implementations must provide:
id()
— a stable, unique identifier used as the file name.version()
— a monotonically increasing version number to support optimistic overwrite checks.
This interface extends Serializable
so that all
persistable objects are guaranteed to be serializable.
- Since:
- 1.0
- Author:
- Felix Seggebäing
-
Method Summary
-
Method Details
-
id
int id()Returns the stable, unique identifier of this object.- Returns:
- a stable, unique identifier
-
version
long version()Returns a monotonically non-decreasing numeric value that identifies the modification state of this object.- Returns:
- version value used for overwrite checks
-