Class JPAStorageRecord<T>

    • Field Detail

      • CONTEXT_SIZE

        public static final int CONTEXT_SIZE
        Length of the context column.
        See Also:
        Constant Field Values
      • context

        private String context
        Context string.
      • key

        private String key
        Key string.
    • Constructor Detail

      • JPAStorageRecord

        public JPAStorageRecord()
        Creates a new JPA storage record. All properties initialized to null.
    • Method Detail

      • getContext

        @Nonnull
        public String getContext()
        Returns the context.
        Returns:
        context
      • setContext

        public void setContext​(@Nonnull @NotEmpty
                               String ctx)
        Sets the context.
        Parameters:
        ctx - to set
      • getKey

        @Nonnull
        public String getKey()
        Returns the key.
        Returns:
        key
      • setKey

        public void setKey​(@Nonnull @NotEmpty
                           String k)
        Sets the key.
        Parameters:
        k - to set
      • resetVersion

        public void resetVersion()
        Resets the version of this storage record to 1.