Package se.conciliate.extensions.store
Interface MTTimestamp
public interface MTTimestamp
Timestamp that can be saved with a name in a repository. The
timestamp can have a type so that different uses of timestamps
can differentiate between which timestamps to use.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetID()Returns the unique ID of the timestamp.getTime()Returns the timestamp time.getTitle()Returns the title.getType()Returns the timestamp type.getUUID()Returns the UUID of the timestamp.voidremove()Removes this timestamp.voidsave()Saves a new timestamp or saves changes to an existing timestamp.voidSets the (server) time for the timestamp.voidSets the title.voidSets the timestamp type.
-
Method Details
-
getID
long getID()Returns the unique ID of the timestamp.- Returns:
- The unique ID.
-
getUUID
String getUUID()Returns the UUID of the timestamp.- Returns:
- The UUID of the timestamp.
-
getType
String getType()Returns the timestamp type.- Returns:
- The timestamp type.
-
setType
Sets the timestamp type.- Parameters:
type- The new timestamp type.
-
getTitle
String getTitle()Returns the title.- Returns:
- The title of the timestamp.
-
setTitle
Sets the title.- Parameters:
title- The new title of the timestamp.
-
getTime
Date getTime()Returns the timestamp time. Note that the timestamp will not have a valid time until it has been saved.- Returns:
- The time stored for the timestamp.
-
setTime
Sets the (server) time for the timestamp. You do not need to call this when creating a new timestamp, simply saving it will save it with the current server time.- Parameters:
time- The new time.
-
save
void save()Saves a new timestamp or saves changes to an existing timestamp. -
remove
void remove()Removes this timestamp.
-