OSDN Git Service

Change catalog entries for record_out and record_send to show only one
[pg-rex/syncrep.git] / src / corba / CosQueryCollection.idl
1 /* RCS $PostgreSQL: pgsql/src/corba/CosQueryCollection.idl,v 1.3 2003/11/29 22:40:52 pgsql Exp $
2  *
3  * ----------------------------------------------------------------------------
4  * This is unmarked software provided by the Object Management Group,Inc. (OMG)
5  * ----------------------------------------------------------------------------
6  */
7
8
9 /**
10  * CosQueryCollection is the Common Object Services Specification query
11  * query colleciton module as it it appears in COSS1, v1.0.
12  */
13
14
15 #ifndef CosQueryCollection_idl
16 #define CosQueryCollection_idl
17
18 module CosQueryCollection {
19
20   exception ElementInvalid {};
21   exception IteratorInvalid {};
22   exception PositionInvalid {};
23
24   typedef string Istring;
25   struct NVPair {
26     Istring name;
27     any value;
28   };
29
30   typedef sequence<NVPair> ParameterList;
31
32   interface Collection;
33   interface Iterator;
34
35   interface CollectionFactory {
36     Collection create (in ParameterList params);
37   };
38
39   interface Collection {
40
41     readonly attribute long cardinality;
42
43     void add_element (in any element)
44       raises(ElementInvalid);
45
46     void add_all_elements (in Collection elements)
47       raises(ElementInvalid);
48
49     void insert_element_at (in any element, in Iterator where)
50       raises(IteratorInvalid,
51              ElementInvalid);
52
53     void replace_element_at (in any element, in Iterator  where)
54       raises(IteratorInvalid,
55              PositionInvalid,
56              ElementInvalid);
57
58     void remove_element_at (in Iterator where)
59       raises(IteratorInvalid,
60              PositionInvalid);
61
62     void remove_all_elements ();
63
64     any retrieve_element_at (in Iterator where)
65       raises(IteratorInvalid,
66              PositionInvalid);
67
68     Iterator create_iterator ();
69
70   };
71
72   interface Iterator {
73     any next ()
74       raises(IteratorInvalid,
75              PositionInvalid);
76     void reset ();
77     boolean more ();
78   };
79
80 };
81
82 #endif // CosQueryCollection_idl
83