当前位置: 首页>>代码示例>>Java>>正文


Java VariableInstanceEntity.setId方法代码示例

本文整理汇总了Java中org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.setId方法的典型用法代码示例。如果您正苦于以下问题:Java VariableInstanceEntity.setId方法的具体用法?Java VariableInstanceEntity.setId怎么用?Java VariableInstanceEntity.setId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity的用法示例。


在下文中一共展示了VariableInstanceEntity.setId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: read

import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity; //导入方法依赖的package包/类
public VariableInstanceEntity read(GettableData data) {
  VariableInstanceEntity entity = new VariableInstanceEntity();
  entity.setId(data.getString("id"));
  entity.setSerializerName(data.getString("type"));
  entity.setName(data.getString("name"));
  entity.setExecutionId(data.getString("execution_id"));
  entity.setProcessInstanceId(data.getString("proc_inst_id"));
  entity.setCaseExecutionId(data.getString("case_execution_id"));
  entity.setCaseInstanceId(data.getString("case_inst_id"));
  entity.setTaskId(data.getString("task_id"));
  entity.setByteArrayValueId(data.getString("bytearray_id"));
  if(!data.isNull("double")){
    entity.setDoubleValue(data.getDouble("double"));
  }
  if(!data.isNull("long")){
    entity.setLongValue(data.getLong("long"));
  }
  entity.setTextValue(data.getString("text"));
  entity.setTextValue2(data.getString("text2"));
  entity.setSequenceCounter(data.getLong("sequence_counter"));
  entity.setConcurrentLocal(data.getBool("is_concurrent_local"));
  return entity;
}
 
开发者ID:camunda,项目名称:camunda-engine-cassandra,代码行数:24,代码来源:VariableEntitySerializer.java

示例2: copy

import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity; //导入方法依赖的package包/类
public VariableInstanceEntity copy(VariableInstanceEntity data) {
  VariableInstanceEntity entity = new VariableInstanceEntity();
  entity.setId(data.getId());
  entity.setSerializerName(data.getSerializerName());
  entity.setName(data.getName());
  entity.setExecutionId(data.getExecutionId());
  entity.setProcessInstanceId(data.getProcessInstanceId());
  entity.setCaseExecutionId(data.getCaseExecutionId());
  entity.setCaseInstanceId(data.getCaseInstanceId());
  entity.setTaskId(data.getTaskId());
  entity.setByteArrayValueId(data.getByteArrayValueId());
  entity.setDoubleValue(data.getDoubleValue());
  entity.setLongValue(data.getLongValue());
  entity.setTextValue(data.getTextValue());
  entity.setTextValue2(data.getTextValue2());
  entity.setSequenceCounter(data.getSequenceCounter());
  entity.setConcurrentLocal(data.isConcurrentLocal());
  return entity;
}
 
开发者ID:camunda,项目名称:camunda-engine-cassandra,代码行数:20,代码来源:VariableEntitySerializer.java

示例3: setup

import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity; //导入方法依赖的package包/类
@Before
public void setup() {
  TestIdGenerator idGenerator = new TestIdGenerator();
  entityManager = new ExposingDbEntityManager(idGenerator, null);

  execution1 = new ExecutionEntity();
  execution1.setId("101");
  execution2 = new ExecutionEntity();
  execution2.setId("102");
  execution3 = new ExecutionEntity();
  execution3.setId("103");
  execution4 = new ExecutionEntity();
  execution4.setId("104");
  execution5 = new ExecutionEntity();
  execution5.setId("105");
  execution6 = new ExecutionEntity();
  execution6.setId("106");
  execution7 = new ExecutionEntity();
  execution7.setId("107");
  execution8 = new ExecutionEntity();
  execution8.setId("108");

  task1 = new TaskEntity();
  task1.setId("104");
  task2 = new TaskEntity();
  task2.setId("105");
  task3 = new TaskEntity();
  task3.setId("106");
  task4 = new TaskEntity();
  task4.setId("107");

  variable1 = new VariableInstanceEntity();
  variable1.setId("108");
  variable2 = new VariableInstanceEntity();
  variable2.setId("109");
  variable3 = new VariableInstanceEntity();
  variable3.setId("110");
  variable4 = new VariableInstanceEntity();
  variable4.setId("111");
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:41,代码来源:DbOperationsOrderingTest.java


注:本文中的org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.setId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。