Prado\Data\TDbCommand::prepare PHP Method

prepare() public method

For complex SQL statement that is to be executed multiple times, this may improve performance. For SQL statement with binding parameters, this method is invoked automatically.
public prepare ( )
    public function prepare()
    {
        if ($this->_statement == null) {
            try {
                $this->_statement = $this->getConnection()->getPdoInstance()->prepare($this->getText());
            } catch (Exception $e) {
                throw new TDbException('dbcommand_prepare_failed', $e->getMessage(), $this->getText());
            }
        }
    }