diff -r 7685cec9fd3c -r f2ddfa555b0f doc/api/python/ccm.Query-class.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/api/python/ccm.Query-class.html Fri Sep 11 11:54:49 2009 +0100 @@ -0,0 +1,255 @@ + + + + + ccm.Query + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package ccm :: + Class Query + + + + + + +
[hide private]
[frames] | no frames]
+
+ +

Class Query

source code

+
+object --+
+         |
+        Query
+
+ +
+

This object wrap a synergy query, it takes a query as input as well as the +attribute you want as output, and get them translated using the model configuration. +e.g +Query(session, "type='task' and release='test/next'", ['objectname', 'task_synopsis'], ['ccmobject', 'string'])

+

This will return a list of hash: [{'objectname': Task(xxx), 'task_synopsis': 'xxx'}, ...]



+ + + + + + + + + + + + + + + + +
+ + + + + +
Instance Methods[hide private]
+
+   + + + + + + +
__init__(self, + session, + query, + keywords, + model, + cmd="query")
+ Initialize a Synergy query.
+ source code + +
+ +
+   + + + + + + +
execute(self)
+ Executing the query on the database.
+ source code + +
+ +
+

Inherited from object: + __delattr__, + __getattribute__, + __hash__, + __new__, + __reduce__, + __reduce_ex__, + __repr__, + __setattr__, + __str__ +

+
+ + + + + + + + + +
+ + + + + +
Properties[hide private]
+
+

Inherited from object: + __class__ +

+
+ + + + + + +
+ + + + + +
Method Details[hide private]
+
+ +
+ +
+ + +
+

__init__(self, + session, + query, + keywords, + model, + cmd="query") +
(Constructor) +

+
source code  +
+ + Initialize a Synergy query. +
+
Overrides: + object.__init__ +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +