public function select()
    {
        if( !$this->tableName ) {
            throw new LogicException('No table name specified');
        }
        $q = $this->database->select();
        $q->table($this->tableName);
        if( $this->resultClass ) {
            $q->setResultClass($this->resultClass);
            $q->setResultParams($this->resultParams);
        }
        return $q;
    }