Exemplo n.º 1
0
 def query(self, targetClassName, criteria, startIndex):
     q = services.queryRequest()
     q._targetClassName = targetClassName
     q._criteria = criteria.holder
     q._startIndex = startIndex
     v = self.wsq.query(q)
     return [self.wrap(i) for i in v.QueryReturn.Item]
Exemplo n.º 2
0
 def getAssociation(self, source, associationName, startIndex):
     q = services.getAssociationRequest()
     q._source = source.holder
     q._associationName = associationName
     q._startIndex = startIndex
     v = self.wsq.getAssociation(q)
     return [self.wrap(i) for i in v.GetAssociationReturn.Item]
Exemplo n.º 3
0
 def getTotalNumberOfRecords(self, targetClassName, criteria):
     q = services.getTotalNumberOfRecordsRequest()
     q._targetClassName = targetClassName
     q._criteria = criteria.holder
     v = self.wsq.getTotalNumberOfRecords(q)
     return v.GetTotalNumberOfRecordsReturn
Exemplo n.º 4
0
 def queryObject(self, targetClassName, criteria):
     q = services.queryObjectRequest()
     q._targetClassName = targetClassName
     q._criteria = criteria.holder
     v = self.wsq.queryObject(q)
     return [self.wrap(i) for i in v.QueryObjectReturn.Item]
Exemplo n.º 5
0
 def getDataObject(self, in0):
     q = services.getDataObjectRequest()
     q._in0 = in0
     v = self.wsq.getDataObject(q)
     return self.wrap(v.GetDataObjectReturn)
Exemplo n.º 6
0
 def getVersion(self):
     q = services.getVersionRequest()
     v = self.wsq.getVersion(q)
     return v.GetVersionReturn
Exemplo n.º 7
0
 def exist(self, in0):
     q = services.existRequest()
     q._in0 = in0
     v = self.wsq.exist(q)
     return v.ExistReturn
Exemplo n.º 8
0
 def getMaximumRecordsPerQuery(self):
     q = services.getMaximumRecordsPerQueryRequest()
     v = self.wsq.getMaximumRecordsPerQuery(q)
     return v.GetMaximumRecordsPerQueryReturn
Exemplo n.º 9
0
 def search(self, in0):
     q = services.searchRequest()
     q._in0 = in0
     v = self.wsq.search(q)
     return [self.wrap(i) for i in v.SearchReturn.Item]