org.camunda.bpm.engine.impl.persistence.entity
Class DeploymentEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity
All Implemented Interfaces:
Serializable, DbEntity, Deployment
Direct Known Subclasses:
DeploymentStatisticsEntity

public class DeploymentEntity
extends Object
implements Serializable, Deployment, DbEntity

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  Map<Class<?>,List<Object>> deployedArtifacts
          Will only be used during actual deployment to pass deployed artifacts (eg process definitions).
protected  Date deploymentTime
           
protected  String id
           
protected  boolean isNew
           
protected  String name
           
protected  Map<Class<?>,List<Object>> notdeployedARtifacts
           
protected  Map<String,ResourceEntity> resources
           
protected  boolean validatingSchema
           
 
Constructor Summary
DeploymentEntity()
           
 
Method Summary
 void addDeployedArtifact(Object deployedArtifact)
           
 void addResource(ResourceEntity resource)
           
<T> List<T>
getDeployedArtifacts(Class<T> clazz)
           
 Date getDeploymentTime()
           
 String getId()
           
 String getName()
           
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 ResourceEntity getResource(String resourceName)
           
 Map<String,ResourceEntity> getResources()
           
 boolean isNew()
           
 boolean isValidatingSchema()
           
 void setDeploymentTime(Date deploymentTime)
           
 void setId(String id)
           
 void setName(String name)
           
 void setNew(boolean isNew)
           
 void setResources(Map<String,ResourceEntity> resources)
           
 void setValidatingSchema(boolean validatingSchema)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected String id

name

protected String name

resources

protected Map<String,ResourceEntity> resources

deploymentTime

protected Date deploymentTime

validatingSchema

protected boolean validatingSchema

isNew

protected boolean isNew

deployedArtifacts

protected Map<Class<?>,List<Object>> deployedArtifacts
Will only be used during actual deployment to pass deployed artifacts (eg process definitions). Will be null otherwise.


notdeployedARtifacts

protected Map<Class<?>,List<Object>> notdeployedARtifacts
Constructor Detail

DeploymentEntity

public DeploymentEntity()
Method Detail

getResource

public ResourceEntity getResource(String resourceName)

addResource

public void addResource(ResourceEntity resource)

getResources

public Map<String,ResourceEntity> getResources()

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

addDeployedArtifact

public void addDeployedArtifact(Object deployedArtifact)

getDeployedArtifacts

public <T> List<T> getDeployedArtifacts(Class<T> clazz)

getId

public String getId()
Specified by:
getId in interface DbEntity
Specified by:
getId in interface Deployment

setId

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

getName

public String getName()
Specified by:
getName in interface Deployment

setName

public void setName(String name)

setResources

public void setResources(Map<String,ResourceEntity> resources)

getDeploymentTime

public Date getDeploymentTime()
Specified by:
getDeploymentTime in interface Deployment

setDeploymentTime

public void setDeploymentTime(Date deploymentTime)

isValidatingSchema

public boolean isValidatingSchema()

setValidatingSchema

public void setValidatingSchema(boolean validatingSchema)

isNew

public boolean isNew()

setNew

public void setNew(boolean isNew)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 camunda services GmbH. All rights reserved.