test_class.declarator: nopWhereClause
test_class.modifier: private
test_class.original_string: private IWhereClausePart nopWhereClause;
test_class.type: IWhereClausePart
test_class.var_name: nopWhereClause
test_class.declarator: isNullWhereClause
test_class.modifier: private
test_class.original_string: private IWhereClausePart isNullWhereClause;
test_class.type: IWhereClausePart
test_class.var_name: isNullWhereClause
test_class.declarator: noParameterWhereClause
test_class.modifier: private
test_class.original_string: private IWhereClausePart noParameterWhereClause;
test_class.type: IWhereClausePart
test_class.var_name: noParameterWhereClause
test_class.declarator: parameterWhereClause
test_class.modifier: private
test_class.original_string: private IWhereClausePart parameterWhereClause;
test_class.type: IWhereClausePart
test_class.var_name: parameterWhereClause
test_class.declarator: anotherParameterWhereClause
test_class.modifier: private
test_class.original_string: private IWhereClausePart anotherParameterWhereClause;
test_class.type: IWhereClausePart
test_class.var_name: anotherParameterWhereClause
test_class.declarator: mockColumn
test_class.modifier: private
test_class.original_string: private ColumnDisplayDefinition mockColumn;
test_class.type: ColumnDisplayDefinition
test_class.var_name: mockColumn
test_class.declarator: mockPstmt
test_class.modifier: private
test_class.original_string: private PreparedStatement mockPstmt;
test_class.type: PreparedStatement
test_class.var_name: mockPstmt
test_class.declarator: mockLongDataTypeComponent
test_class.modifier: private
test_class.original_string: private IDataTypeComponent mockLongDataTypeComponent;
test_class.type: IDataTypeComponent
test_class.var_name: mockLongDataTypeComponent
test_class.declarator: mockStringDataTypeComponent
test_class.modifier: private
test_class.original_string: private IDataTypeComponent mockStringDataTypeComponent;
test_class.type: IDataTypeComponent
test_class.var_name: mockStringDataTypeComponent
test_class.declarator: whereClausePartUtil = new WhereClausePartUtil()
test_class.modifier: private
test_class.original_string: private IWhereClausePartUtil whereClausePartUtil = new WhereClausePartUtil();
test_class.type: IWhereClausePartUtil
test_class.var_name: whereClausePartUtil
test_class.file: sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/whereClause/WhereClausePartUtilTest.java
test_class.identifier: WhereClausePartUtilTest
test_class.superclass: extends BaseSQuirreLJUnit4TestCase
test_case.body: @Test
  	public void testSetParameters() throws SQLException{
  		List<IWhereClausePart> parts = new ArrayList<IWhereClausePart>();
  		parts.add(nopWhereClause);
  		parts.add(isNullWhereClause);
  		parts.add(noParameterWhereClause);
  		parts.add(parameterWhereClause);
  		parts.add(anotherParameterWhereClause);
  		
  		int nextIndex = whereClausePartUtil.setParameters(mockPstmt, parts , 2);
  		assertEquals(4, nextIndex);
  		EasyMock.verify(mockLongDataTypeComponent);
  		EasyMock.verify(mockStringDataTypeComponent);
  		
  	}
test_case.class_method_signature: WhereClausePartUtilTest.testSetParameters()
test_case.full_signature: @Test public void testSetParameters()
test_case.identifier: testSetParameters
test_case.invocations: add add add add add setParameters assertEquals verify verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetParameters()
focal_class.file: sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/whereClause/WhereClausePartUtil.java
focal_class.identifier: WhereClausePartUtil
focal_class.interfaces: implements IWhereClausePartUtil
focal_class.class_method_signature: WhereClausePartUtil.createWhereClause(
  			List<IWhereClausePart> whereClauseParts)
focal_class.full_signature: @Override public String createWhereClause(
  			List<IWhereClausePart> whereClauseParts)
focal_class.identifier: createWhereClause
focal_class.modifiers: @Override public
focal_class.parameters: (
  			List<IWhereClausePart> whereClauseParts)
focal_class.return: String
focal_class.signature: String createWhereClause(
  			List<IWhereClausePart> whereClauseParts)
focal_class.class_method_signature: WhereClausePartUtil.setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_class.full_signature: @Override public int setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_class.identifier: setParameters
focal_class.modifiers: @Override public
focal_class.parameters: (PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_class.return: int
focal_class.signature: int setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_class.class_method_signature: WhereClausePartUtil.hasUsableWhereClause(List<IWhereClausePart> whereClauseParts)
focal_class.full_signature: @Override public boolean hasUsableWhereClause(List<IWhereClausePart> whereClauseParts)
focal_class.identifier: hasUsableWhereClause
focal_class.modifiers: @Override public
focal_class.parameters: (List<IWhereClausePart> whereClauseParts)
focal_class.return: boolean
focal_class.signature: boolean hasUsableWhereClause(List<IWhereClausePart> whereClauseParts)
focal_method.body: @Override
  	public int setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
  			throws SQLException {
  
  		int position = firstPosition;
  		for (IWhereClausePart whereClausePart : whereClauseParts) {
  			if(whereClausePart.shouldBeUsed()){
  				if (whereClausePart.isParameterUsed()) {
  					whereClausePart.setParameter(pstmt, position);
  					position++;
  				}	
  			}
  			
  		}
  		return position++;
  	}
focal_method.class_method_signature: WhereClausePartUtil.setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_method.full_signature: @Override public int setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_method.identifier: setParameters
focal_method.invocations: shouldBeUsed isParameterUsed setParameter
focal_method.modifiers: @Override public
focal_method.parameters: (PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)
focal_method.return: int
focal_method.signature: int setParameters(PreparedStatement pstmt,
  			List<IWhereClausePart> whereClauseParts, int firstPosition)