# Class k.d.q.QueryExecuter(object):

Part of kiwi.db.query View In Hierarchy

Known subclasses: kiwi.db.sqlalch.SQLAlchemyQueryExecuter, kiwi.db.sqlobj.SQLObjectQueryExecuter, kiwi.db.stormintegration.StormQueryExecuter

A QueryExecuter is responsible for taking the state (as in QueryState) objects from search filters and construct a query. How the query is constructed is ORM/DB-layer dependent.

Class Variables | default_search_limit | The default search limit.

Method | __init__ | Undocumented
Method | set_filter_columns | Undocumented
Method | search | Execute a search.
Method | set_limit | Set the maximum number of result items to return in a search query.
Method | get_limit | Undocumented

def __init__(self):
overridden in kiwi.db.sqlalch.SQLAlchemyQueryExecuter, kiwi.db.sqlobj.SQLObjectQueryExecuter, kiwi.db.stormintegration.StormQueryExecuter
Undocumented
def set_filter_columns(self, search_filter, columns):
Undocumented
def search(self, states):
overridden in kiwi.db.sqlalch.SQLAlchemyQueryExecuter, kiwi.db.sqlobj.SQLObjectQueryExecuter, kiwi.db.stormintegration.StormQueryExecuter
Execute a search.

Parameters | states | (type: list of `QueryStates` )
Returns | list of objects matching query

def set_limit(self, limit):
Set the maximum number of result items to return in a search query.

Parameters | limit |

def get_limit(self):
Undocumented