File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / SHLExamples / Querying / QueryController.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:55 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/*--------------------------------------------------------------------------
 *
 * 	You may freely copy, distribute, and reuse the code in this example.
 * 	SHL Systemhouse disclaims any warranty of any kind, expressed or  
 *	implied, as to its fitness for any particular use.
 *
 *
 *	QueryController
 *
 *	Inherits From:		NSObject
 *
 *	Conforms To:		None.
 *
 *	Declared In:		QueryController.h
 *
 *	Class Description
 *
 *		Builds query based on entity and attributes selected as well as
 *		qualifying conditions.  
 *
 *
 *------------------------------------------------------------------------*/
#import <appkit/appkit.h>
#import <eointerface/eointerface.h>
#import <eoaccess/eoaccess.h>
#import <foundation/NSObject.h>
#import <foundation/NSArray.h>



@interface QueryController : NSObject
{
    EOAdaptor				*adaptor;
	EOAdaptorChannel		*channel;
    EODatabase				*database;
	EODatabaseContext		*dbContext;
	EODatabaseChannel		*dbChannel;
	EODatabaseDataSource	*dataSource;
	EOController 			*controller;
    EOEntity				*entity;
	EOQualifier				*qualifier;

    id	browser;
	id	negator;
	id	qualifierBrowser;
	id	qualifierText;
	id	qualifierOperation;
    id	queryText;
    id	window;
	id	modelPath;

	id	resultWindow;
	id	resultTable;
}

/*--------------------------------------------------------------------------
 *	Application Delegate Methods
 *------------------------------------------------------------------------*/
- appDidInit: sender;


/*--------------------------------------------------------------------------
 *	Target/Action Methods
 *------------------------------------------------------------------------*/
- performQuery:sender;
- clearQualifier:sender;
- replaceQualifier:sender;
- appendAND:sender;
- appendOR:sender;
- selectOperation:sender;
- selectAttribute:sender;

- (void) fetchAndDisplay:(NSArray *)attributes inEntity:(EOEntity *)anEntity
	withQualifier:(EOQualifier *)aQualifier;


@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.