fluid-api/src/main/java/com/fluidbpm/program/api/util/sql/impl/SQLFormUtil.java
private void mapFormContainerStatesTo(
			Form previousMappedForm,
			ResultSet resultSetParam
	) throws SQLException {
		if(previousMappedForm == null) {
			return;
		}

		//Form Container State...
		Long formContainerState = resultSetParam.getLong(
				SQLColumnIndex._07_FORM_CONTAINER_STATE);
		long formContStateId = (formContainerState == null) ?
				0: formContainerState.longValue();
		if(formContStateId > 0) {
			if(formContStateId == 1)
			{
				previousMappedForm.setState(Form.State.OPEN);
			}
			else if(formContStateId == 2)
			{
				previousMappedForm.setState(Form.State.LOCKED);
			}
		}

		Long formContainerFlowState = resultSetParam.getLong(
				SQLColumnIndex._08_FORM_CONTAINER_FLOW_STATE);
		long formContFlowStateId = (formContainerFlowState == null) ?
				0: formContainerFlowState.longValue();
		if(formContFlowStateId > 0) {
			if(formContFlowStateId == 1) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.NotInFlow.name());
			}
			else if(formContFlowStateId == 2) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.WorkInProgress.name());
			}
			else if(formContFlowStateId == 3) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.UserSend.name());
			}
			else if(formContFlowStateId == 4) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.UserSendWorkInProgress.name());
			}
			else if(formContFlowStateId == 5) {
				previousMappedForm.setFlowState(FluidItem.FlowState.Archive.name());
			}
		}
	}
private void mapFormContainerStatesTo(
			Form previousMappedForm,
			ResultSet resultSetParam
	) throws SQLException {
		if(previousMappedForm == null) {
			return;
		}

		//Form Container State...
		Long formContainerState = resultSetParam.getLong(
				SQLColumnIndex._07_FORM_CONTAINER_STATE);
		long formContStateId = (formContainerState == null) ?
				0: formContainerState.longValue();
		if(formContStateId > 0) {
			if(formContStateId == 1)
			{
				previousMappedForm.setState(Form.State.OPEN);
			}
			else if(formContStateId == 2)
			{
				previousMappedForm.setState(Form.State.LOCKED);
			}
		}

		Long formContainerFlowState = resultSetParam.getLong(
				SQLColumnIndex._08_FORM_CONTAINER_FLOW_STATE);
		long formContFlowStateId = (formContainerFlowState == null) ?
				0: formContainerFlowState.longValue();
		if(formContFlowStateId > 0) {
			if(formContFlowStateId == 1) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.NotInFlow.name());
			}
			else if(formContFlowStateId == 2) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.WorkInProgress.name());
			}
			else if(formContFlowStateId == 3) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.UserSend.name());
			}
			else if(formContFlowStateId == 4) {
				previousMappedForm.setFlowState(
						FluidItem.FlowState.UserSendWorkInProgress.name());
			}
			else if(formContFlowStateId == 5) {
				previousMappedForm.setFlowState(FluidItem.FlowState.Archive.name());
			}
		}
	}
private void mapFormContainerStatesTo ( Form previousMappedForm , ResultSet resultSetParam ) throws SQLException { if ( previousMappedForm == null ) { return ; } //Form Container State... Long formContainerState = resultSetParam . getLong ( SQLColumnIndex . _07_FORM_CONTAINER_STATE ) ; long formContStateId = ( formContainerState == null ) ? 0 : formContainerState . longValue ( ) ; if ( formContStateId > 0 ) { if ( formContStateId == 1 ) { previousMappedForm . setState ( Form . State . OPEN ) ; } else if ( formContStateId == 2 ) { previousMappedForm . setState ( Form . State . LOCKED ) ; } } Long formContainerFlowState = resultSetParam . getLong ( SQLColumnIndex . _08_FORM_CONTAINER_FLOW_STATE ) ; long formContFlowStateId = ( formContainerFlowState == null ) ? 0 : formContainerFlowState . longValue ( ) ; if ( formContFlowStateId > 0 ) { if ( formContFlowStateId == 1 ) { previousMappedForm . setFlowState ( FluidItem . FlowState . NotInFlow . name ( ) ) ; } else if ( formContFlowStateId == 2 ) { previousMappedForm . setFlowState ( FluidItem . FlowState . WorkInProgress . name ( ) ) ; } else if ( formContFlowStateId == 3 ) { previousMappedForm . setFlowState ( FluidItem . FlowState . UserSend . name ( ) ) ; } else if ( formContFlowStateId == 4 ) { previousMappedForm . setFlowState ( FluidItem . FlowState . UserSendWorkInProgress . name ( ) ) ; } else if ( formContFlowStateId == 5 ) { previousMappedForm . setFlowState ( FluidItem . FlowState . Archive . name ( ) ) ; } } }
Maps the Form states with the {@code resultSetParam}.

@param resultSetParam Result Set used to populate {@code Form} with.

@return Form

@throws SQLException If no mapping exists for Form Type.

@see ResultSet
Maps the Form states with the { @code resultSetParam } .