class AssetQueryBuilder extends AbstractQueryBuilder<Asset> {

	@Override
	protected BaseQueryBuilder build(final Asset context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(DESCRIPTION_CONDITION, context.getDescription())
					.addAndCondition(BEGDATE_CONDITION, context.getBegDate())
					.addAndCondition(ENDDATE_CONDITION, context.getEndDate())
					.addAndCondition(PRODDATE_CONDITION, context.getProdDate())
					.addAndCondition(SERIALNUM_CONDITION, context.getSerialNum())
					.addAndCondition(INVNUM_CONDITION, context.getInvNum())
					.addAndCondition(NAME_CONDITION, context.getName())
					.addAndCondition(PARENT_CONDITION, context.getParent())
					.addAndCondition(ORDER_CONDITION, context.getOrder())
					.addAndCondition(PARTNER_CONDITION, context.getPartner())
					.addAndCondition(EMPLOYEE_CONDITION, context.getEmployee())
					.addAndCondition(DEPARTMENT_CONDITION, context.getDepartment())
					.addAndCondition(ASSETSTATUS_CONDITION, context.getAssetStatus())
					.addAndCondition(ASSETSTATE_CONDITION, context.getAssetState())
					.addAndCondition(ASSETTYPE_CONDITION, context.getAssetType())
				.closeBracket();
	}

}