public function executeInsert($connection, $parameter)
{
$generatedKey = $this->getPreGeneratedSelectKey($connection, $parameter);
$command = $this->_command->create($this->_manager, $connection, $this->_statement, $parameter);
// var_dump($command,$parameter);
$result = $command->execute();
if ($generatedKey === null) {
$generatedKey = $this->getPostGeneratedSelectKey($connection, $parameter);
}
$this->executePostSelect($connection);
$this->onExecuteQuery($command);
return $generatedKey;
}