/* ************************************************************************
#
#  DivConq
#
#  http://divconq.com/
#
#  Copyright:
#    Copyright 2012 eTimeline, LLC. All rights reserved.
#
#  License:
#    See the license.txt file in the project's top-level directory for details.
#
#  Authors:
#    * Andy White
#
************************************************************************ */
package divconq.db.doc;

import divconq.struct.RecordStruct;
import divconq.util.StringUtil;

public class QueryRequest extends divconq.db.QueryRequest {
	public QueryRequest(String id) {
		this(id, null);
	}
	
	public QueryRequest(String id, String path) {
		super("dcQueryDocument", null);

		RecordStruct params = new RecordStruct();
		this.parameters = params;
		
		params.setField("Id", id);		
		
		if (StringUtil.isNotEmpty(path))
			params.setField("Path", path);
	}
}
