Class CartResultDBModel


  • @Entity(name="CartResult")
    public class CartResultDBModel
    extends SessionResult
    A result in a results cart
    Since:
    12.5
    • Field Detail

      • addedDate

        private java.util.Date addedDate
        Date when the result was added to the cart
      • collectionIdForIndexUrl

        private java.lang.String collectionIdForIndexUrl
        The name of the collection the indexUrl came from.
      • metaData

        private final java.util.Map<java.lang.String,​java.lang.String> metaData
        Metadata values for the result
    • Constructor Detail

      • CartResultDBModel

        public CartResultDBModel​(java.lang.String userId,
                                 java.lang.String collection,
                                 java.lang.String indexUrl,
                                 java.lang.String title,
                                 java.lang.String summary,
                                 java.util.Date addedDate,
                                 java.lang.String collectionIdForIndexUrl,
                                 java.util.Map<java.lang.String,​java.lang.String> metadata)
      • CartResultDBModel

        public CartResultDBModel()
    • Method Detail

      • prePersist

        protected void prePersist()
        Truncate metadata to maximum size allowed in the database before saving to database
        Overrides:
        prePersist in class SessionResult
      • getAddedDate

        public java.util.Date getAddedDate()
        Date when the result was added to the cart
      • setAddedDate

        public void setAddedDate​(java.util.Date addedDate)
        Date when the result was added to the cart
      • getCollectionIdForIndexUrl

        public java.lang.String getCollectionIdForIndexUrl()
        The name of the collection the indexUrl came from.
      • setCollectionIdForIndexUrl

        public void setCollectionIdForIndexUrl​(java.lang.String collectionIdForIndexUrl)
        The name of the collection the indexUrl came from.
      • getMetaData

        public java.util.Map<java.lang.String,​java.lang.String> getMetaData()
        Metadata values for the result