Class ResourceEntity

All Implemented Interfaces:
Serializable, DbEntity, Resource

public class ResourceEntity extends Object implements Serializable, DbEntity, Resource
Tom Baeyens
See Also:
  • Field Details

    • id

      protected String id
    • name

      protected String name
    • bytes

      protected byte[] bytes
    • deploymentId

      protected String deploymentId
    • generated

      protected boolean generated
    • tenantId

      protected String tenantId
    • type

      protected Integer type
    • createTime

      protected Date createTime
  • Constructor Details

    • ResourceEntity

      public ResourceEntity()
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface DbEntity
      Specified by:
      getId in interface Resource
    • setId

      public void setId(String id)
      Specified by:
      setId in interface DbEntity
    • getName

      public String getName()
      Specified by:
      getName in interface Resource
    • setName

      public void setName(String name)
    • getBytes

      public byte[] getBytes()
      Specified by:
      getBytes in interface Resource
    • setBytes

      public void setBytes(byte[] bytes)
    • getDeploymentId

      public String getDeploymentId()
      Specified by:
      getDeploymentId in interface Resource
    • setDeploymentId

      public void setDeploymentId(String deploymentId)
    • getPersistentState

      public Object getPersistentState()
      Description copied from interface: DbEntity
      Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
      Specified by:
      getPersistentState in interface DbEntity
    • setGenerated

      public void setGenerated(boolean generated)
    • isGenerated

      public boolean isGenerated()
      Indicated whether or not the resource has been generated while deploying rather than being actual part of the deployment.
    • getTenantId

      public String getTenantId()
    • setTenantId

      public void setTenantId(String tenantId)
    • getType

      public Integer getType()
    • setType

      public void setType(Integer type)
    • getCreateTime

      public Date getCreateTime()
    • setCreateTime

      public void setCreateTime(Date createTime)
    • toString

      public String toString()
      toString in class Object