fluid-api/src/main/java/com/fluidbpm/program/api/util/sql/impl/SQLFormFieldUtil.java
public Long getFormDefinitionId(Long electronicFormIdParam)
	{
		if(electronicFormIdParam == null)
		{
			return null;
		}

		PreparedStatement preparedStatement = null;
		ResultSet resultSet;
		try {
			ISyntax syntax = SyntaxFactory.getInstance().getSyntaxFor(
					this.getSQLTypeFromConnection(),
					ISyntax.ProcedureMapping.Field.GetFormDefinitionForFormContainer);

			preparedStatement = this.getConnection().prepareStatement(
					syntax.getPreparedStatement());

			preparedStatement.setLong(1, electronicFormIdParam);

			resultSet = preparedStatement.executeQuery();

			//Iterate each of the form containers...
			while (resultSet.next())
			{
				return resultSet.getLong(1);
			}

			return null;
		} catch (SQLException sqlError) {
			throw new FluidSQLException(sqlError);
		} finally {
			this.closeStatement(preparedStatement);
		}
	}
public Long getFormDefinitionId(Long electronicFormIdParam)
	{
		if(electronicFormIdParam == null)
		{
			return null;
		}

		PreparedStatement preparedStatement = null;
		ResultSet resultSet;
		try {
			ISyntax syntax = SyntaxFactory.getInstance().getSyntaxFor(
					this.getSQLTypeFromConnection(),
					ISyntax.ProcedureMapping.Field.GetFormDefinitionForFormContainer);

			preparedStatement = this.getConnection().prepareStatement(
					syntax.getPreparedStatement());

			preparedStatement.setLong(1, electronicFormIdParam);

			resultSet = preparedStatement.executeQuery();

			//Iterate each of the form containers...
			while (resultSet.next())
			{
				return resultSet.getLong(1);
			}

			return null;
		} catch (SQLException sqlError) {
			throw new FluidSQLException(sqlError);
		} finally {
			this.closeStatement(preparedStatement);
		}
	}
public Long getFormDefinitionId ( Long electronicFormIdParam ) { if ( electronicFormIdParam == null ) { return null ; } PreparedStatement preparedStatement = null ; ResultSet resultSet ; try { ISyntax syntax = SyntaxFactory . getInstance ( ) . getSyntaxFor ( this . getSQLTypeFromConnection ( ) , ISyntax . ProcedureMapping . Field . GetFormDefinitionForFormContainer ) ; preparedStatement = this . getConnection ( ) . prepareStatement ( syntax . getPreparedStatement ( ) ) ; preparedStatement . setLong ( 1 , electronicFormIdParam ) ; resultSet = preparedStatement . executeQuery ( ) ; //Iterate each of the form containers... while ( resultSet . next ( ) ) { return resultSet . getLong ( 1 ) ; } return null ; } catch ( SQLException sqlError ) { throw new FluidSQLException ( sqlError ) ; } finally { this . closeStatement ( preparedStatement ) ; } }
Retrieves the Form Definition Id for the
Electronic Form with id {@code electronicFormIdParam}.

@param electronicFormIdParam The Electronic Form to fetch fields for.
@return The Form Definition for Electronic Form {@code electronicFormIdParam}.
Retrieves the Form Definition Id for the Electronic Form with id { @code electronicFormIdParam } .