Class AbstractModel

  • All Implemented Interfaces:
    com.arakelian.store.feature.HasId, com.arakelian.store.feature.HasTimestamp, java.io.Serializable, java.lang.Comparable<com.arakelian.store.feature.HasId>
    Direct Known Subclasses:
    Address, Person

    public abstract class AbstractModel
    extends java.lang.Object
    implements com.arakelian.store.feature.HasId, com.arakelian.store.feature.HasTimestamp, java.lang.Comparable<com.arakelian.store.feature.HasId>, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(com.arakelian.store.feature.HasId o)  
      java.time.ZonedDateTime getCreated()  
      java.lang.String getId()  
      java.time.ZonedDateTime getUpdated()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractModel

        public AbstractModel()
    • Method Detail

      • compareTo

        public int compareTo​(com.arakelian.store.feature.HasId o)
        Specified by:
        compareTo in interface java.lang.Comparable<com.arakelian.store.feature.HasId>
      • getCreated

        @Default
        public java.time.ZonedDateTime getCreated()
        Specified by:
        getCreated in interface com.arakelian.store.feature.HasTimestamp
      • getId

        @Default
        public java.lang.String getId()
        Specified by:
        getId in interface com.arakelian.store.feature.HasId
      • getUpdated

        @Default
        public java.time.ZonedDateTime getUpdated()
        Specified by:
        getUpdated in interface com.arakelian.store.feature.HasTimestamp