original_string: public function getCreateTriggerSQL($xmldb_table, $xmldb_field, $sequence_name) {
  
          $trigger_name = $this->getNameForObject($xmldb_table->getName(), $xmldb_field->getName(), 'trg');
  
          $trigger = "CREATE TRIGGER " . $trigger_name;
          $trigger.= "\n    BEFORE INSERT";
          $trigger.= "\nON " . $this->getTableName($xmldb_table);
          $trigger.= "\n    FOR EACH ROW";
          $trigger.= "\nBEGIN";
          $trigger.= "\n    IF :new." . $this->getEncQuoted($xmldb_field->getName()) . ' IS NULL THEN';
          $trigger.= "\n        SELECT " . $sequence_name . '.nextval INTO :new.' . $this->getEncQuoted($xmldb_field->getName()) . " FROM dual;";
          $trigger.= "\n    END IF;";
          $trigger.= "\nEND;";
  
          return array($trigger);
      }
code: public function getCreateTriggerSQL($xmldb_table, $xmldb_field, $sequence_name) {
  
          $trigger_name = $this->getNameForObject($xmldb_table->getName(), $xmldb_field->getName(), 'trg');
  
          $trigger = "CREATE TRIGGER " . $trigger_name;
          $trigger.= "\n    BEFORE INSERT";
          $trigger.= "\nON " . $this->getTableName($xmldb_table);
          $trigger.= "\n    FOR EACH ROW";
          $trigger.= "\nBEGIN";
          $trigger.= "\n    IF :new." . $this->getEncQuoted($xmldb_field->getName()) . ' IS NULL THEN';
          $trigger.= "\n        SELECT " . $sequence_name . '.nextval INTO :new.' . $this->getEncQuoted($xmldb_field->getName()) . " FROM dual;";
          $trigger.= "\n    END IF;";
          $trigger.= "\nEND;";
  
          return array($trigger);
      }
code_tokens: public function getCreateTriggerSQL ( $ xmldb_table , $ xmldb_field , $ sequence_name ) { $ trigger_name = $ this -> getNameForObject ( $ xmldb_table -> getName ( ) , $ xmldb_field -> getName ( ) , 'trg' ) ; $ trigger = "CREATE TRIGGER " . $ trigger_name ; $ trigger .= "\n    BEFORE INSERT" ; $ trigger .= "\nON " . $ this -> getTableName ( $ xmldb_table ) ; $ trigger .= "\n    FOR EACH ROW" ; $ trigger .= "\nBEGIN" ; $ trigger .= "\n    IF :new." . $ this -> getEncQuoted ( $ xmldb_field -> getName ( ) ) . ' IS NULL THEN' ; $ trigger .= "\n        SELECT " . $ sequence_name . '.nextval INTO :new.' . $ this -> getEncQuoted ( $ xmldb_field -> getName ( ) ) . " FROM dual;" ; $ trigger .= "\n    END IF;" ; $ trigger .= "\nEND;" ; return array ( $ trigger ) ; }
docstring: Returns the code needed to create one trigger for the xmldb_table and xmldb_field passed
  
  @param xmldb_table $xmldb_table The xmldb_table object instance.
  @param xmldb_field $xmldb_field The xmldb_field object instance.
  @param string $sequence_name
  @return array Array of SQL statements to create the sequence.
docstring_tokens: Returns the code needed to create one trigger for the xmldb_table and xmldb_field passed