Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/criteria.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Nov 25 04:11:08 2004 UTC (19 years, 4 months ago) by youi
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, demo20050128
Changes since 1.1: +7 -2 lines
File MIME type: text/x-chdr
typedefを追加.

1 /*
2 * SQL絎?茵?腟???????我??絎?鐚?筝??号?帥???>散??膊∞??????criteria?????鴻???荐?
3 *
4 * $Revision: 1.1 $
5 * $Log: criteria.h,v $
6 * Revision 1.1 2004/11/24 06:54:21 youi
7 * initial version
8 *
9 *
10 */
11
12 #if !defined( CRITERIA_H )
13 #define CRITERIA_H
14 typedef int order_t;
15
16 class orderby{
17 private:
18 orderby* next;
19 char* column;
20 int order;
21 public:
22 const static order_t ASC = 0;
23 const static order_t DESC = 1;
24
25 orderby( const char* column, int order );
26 ~orderby( );
27
28 const char* getColumn( ) const;
29 order_t getOrder( ) const;
30 };
31
32 class criteria{
33 private:
34 int start; //!< ?阪??????紮?茵????/span>
35 int rows; //!< ?阪???????0=?≦?狗??)
36 orderby** orders; //!< orders???≪?????拷????
37 int ordersMax; //!< orders????????紊ч??/span>
38 int ordersLen; //!< orders???????????鴻???若?水????/span>
39 int indexOfOrders; //!< orders????莎井?紫?????????????潟??/span>
40 public:
41 criteria( );
42 ~criteria( );
43
44 void setLimit( int start, int rows );
45 void addOrderBy( orderby *order );
46 void clearAll( );
47
48 int getLimitStart( ) const;
49 int getLimitRows( ) const;
50
51 const orderby* headOrderBy( );
52 const orderby* nextOrderBy( );
53 };
54
55 typedef criteria criteria_t;
56 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26