public function generateNativeQuery($section, $setupAggs = true)
{
$this->setupAggs = $setupAggs;
// decide if query has special query route to own route
if (preg_match('/journal:/', $this->getQuery())) {
$this->nativeQuery = $this->journalQueryGenerator($section);
} elseif (preg_match('/advanced:/', $this->getQuery())) {
$this->nativeQuery = $this->advancedQueryGenerator($section);
} elseif (preg_match('/tag:/', $this->getQuery())) {
$this->nativeQuery = $this->tagQueryGenerator($section);
} else {
$this->nativeQuery = $this->basicQueryGenerator($section);
}
return $this->nativeQuery;
}