/* ************************************************************************
#
#  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;

import divconq.struct.builder.ICompositeBuilder;

/**
 * Typically results from calls to dcDb are returned as a CompositeStruct object using the
 * ObjectResult class to carry that result.
 * 
 * However, in some cases it may make more sense to stream results directly to a file or 
 * some other structure.  CustomResult is the class to carry back a result using some
 * custom structure/output such as a stream.  For example see JsonStreamBuilder or
 * YamlStreamBuilder.
 *  
 * @author Andy
 *
 */
public class CustomResult extends DatabaseResult {
	/**
	 * Use a specialized builder to output database results to a stream or to memory.
	 * see JsonStreamBuilder or YamlStreamBuilder.
	 * 
	 * @param builder Object to manage results from database 
	 */
	public CustomResult(ICompositeBuilder builder) {
		super(builder);		
	}
}
