The parameter object is TDataGatewayEventParameter of which the
{@link TDataGatewayEventParameter::getCommand Command} property can be
inspected to obtain the sql query to be executed.
public function onCreateCommand($command, $criteria)
{
$this->raiseEvent('OnCreateCommand', $this, new TDataGatewayEventParameter($command, $criteria));
}