Class JpaDataFeedFileLob

java.lang.Object
com.broadleafcommerce.datafeed.provider.jpa.domain.JpaDataFeedFileLob
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.Identifiable, Serializable

@Entity public class JpaDataFeedFileLob extends Object implements com.broadleafcommerce.data.tracking.core.Identifiable, Serializable
See Also:
  • Constructor Details

    • JpaDataFeedFileLob

      public JpaDataFeedFileLob()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface com.broadleafcommerce.data.tracking.core.Identifiable
    • getPath

      public String getPath()
      This must be fully unique across the system. Any context-discrimination needs to be embedded in the path value itself.
    • getTenantId

      public String getTenantId()
      This is more of a hint than anything else to allow quickly finding records for a particular tenant. getPath() should still have context information embedded in it.
    • getContent

      public Blob getContent()
      Source: https://thorben-janssen.com/mapping-blobs-and-clobs-with-hibernate-and-jpa/

      We explicitly use Blob type here to allow JDBC driver to use LOB-specific optimizations that will stream the data instead of loading directly into memory. This mapping is Hibernate-specific.

      We use Blob instead of Clob to allow callers to store any binary data (including pre-compressed zip files).

    • setId

      public void setId(String id)
    • setPath

      public void setPath(String path)
      This must be fully unique across the system. Any context-discrimination needs to be embedded in the path value itself.
    • setTenantId

      public void setTenantId(String tenantId)
      This is more of a hint than anything else to allow quickly finding records for a particular tenant. getPath() should still have context information embedded in it.
    • setContent

      public void setContent(Blob content)
      Source: https://thorben-janssen.com/mapping-blobs-and-clobs-with-hibernate-and-jpa/

      We explicitly use Blob type here to allow JDBC driver to use LOB-specific optimizations that will stream the data instead of loading directly into memory. This mapping is Hibernate-specific.

      We use Blob instead of Clob to allow callers to store any binary data (including pre-compressed zip files).

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object