public String getTypeName() { if (typeName != null) { return typeName; } else if (type != null) { return type.getTypeName(); } else { return typeName; } } public void setTypeName(String typeName) {
public Object getValue() { if (!variableType.isCachable() || cachedValue == null) { cachedValue = variableType.getValue(this); } return cachedValue; }
public VariableType findVariableType(Object value) { for (VariableType type : typesList) { if (type.isAbleToStore(value)) { return type; } } throw new ActivitiException("couldn't find a variable type that is able to serialize " + value); }
public void setValue(Object value) { type.setValue(value, this); typeName = type.getTypeName(); cachedValue = value; }
public void setValue(Object value) { type.setValue(value, this); cachedValue = value; }
public void setValue(Object value) { type.setValue(value, this); typeName = type.getTypeName(); cachedValue = value; }
public void setValue(Object value) { type.setValue(value, this); cachedValue = value; }
public String getVariableTypeName() { return (variableType != null ? variableType.getTypeName() : null); }
public Object getValue() { if (!type.isCachable() || cachedValue == null) { cachedValue = type.getValue(this); } return cachedValue; }
public VariableType findVariableType(Object value) { for (VariableType type : typesList) { if (type.isAbleToStore(value)) { return type; } } throw new ActivitiException("couldn't find a variable type that is able to serialize " + value); }
public String getVariableTypeName() { return (variableType != null ? variableType.getTypeName() : null); }
public Object getValue() { if (!variableType.isCachable() || cachedValue == null) { cachedValue = variableType.getValue(this); } return cachedValue; }
public VariableType findVariableType(Object value) { for (VariableType type : typesList) { if (type.isAbleToStore(value)) { return type; } } throw new ActivitiException("couldn't find a variable type that is able to serialize " + value); }
public void setParameter(PreparedStatement ps, int i, VariableType parameter, JdbcType jdbcType) throws SQLException { String typeName = parameter.getTypeName(); ps.setString(i, typeName); }
public Object getValue() { if (!type.isCachable() || cachedValue == null) { cachedValue = type.getValue(this); } return cachedValue; }
public Object setVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution) { ensureVariableInstancesInitialized(); VariableInstanceEntity variableInstance = variableInstances.get(variableName); if ((variableInstance != null) && (!variableInstance.getType().isAbleToStore(value))) { // delete variable removeVariable(variableName); variableInstance = null; } if (variableInstance == null) { createVariableLocal(variableName, value); } else { updateVariableInstance(variableInstance, value, sourceActivityExecution); } return null; }
public VariableTypes removeType(VariableType type) { typesList.remove(type); typesMap.remove(type.getTypeName()); return this; } }
public Object getValue() { if (!variableType.isCachable() || cachedValue == null) { cachedValue = variableType.getValue(this); } return cachedValue; }
public Object setVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution) { ensureVariableInstancesInitialized(); VariableInstanceEntity variableInstance = variableInstances.get(variableName); if ((variableInstance != null) && (!variableInstance.getType().isAbleToStore(value))) { // delete variable removeVariable(variableName); variableInstance = null; } if (variableInstance == null) { createVariableLocal(variableName, value); } else { updateVariableInstance(variableInstance, value, sourceActivityExecution); } return null; }
public DefaultVariableTypes addType(VariableType type, int index) { typesList.add(index, type); typesMap.put(type.getTypeName(), type); return this; }