コード例 #1
0
 /** @param call trigger call request */
 public PLJavaTriggerData(TriggerCallRequest call) {
   super();
   Tuple old = call.getOld();
   Tuple _new = call.getNew();
   this.call = call;
   this.old = old;
   oldRs = new PLJavaTupleResultSet(old);
   this._new = _new;
   newRs = new PLJavaTupleResultSet(_new);
 }
コード例 #2
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredForEachRow()
  */
 public boolean isFiredForEachRow() throws SQLException {
   return (call.getRowmode() == TriggerCallRequest.TRIGGER_ROWMODE_ROW);
 }
コード例 #3
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredBefore()
  */
 public boolean isFiredBefore() throws SQLException {
   return (call.getType() == TriggerCallRequest.TRIGGER_FIRED_BEFORE);
 }
コード例 #4
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredAfter()
  */
 public boolean isFiredAfter() throws SQLException {
   return (call.getType() == TriggerCallRequest.TRIGGER_FIRED_AFTER);
 }
コード例 #5
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredByUpdate()
  */
 public boolean isFiredByUpdate() throws SQLException {
   return (call.getReason() == TriggerCallRequest.TRIGGER_REASON_UPDATE);
 }
コード例 #6
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredByInsert()
  */
 public boolean isFiredByInsert() throws SQLException {
   return (call.getReason() == TriggerCallRequest.TRIGGER_REASON_INSERT);
 }
コード例 #7
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredForStatement()
  */
 public boolean isFiredForStatement() throws SQLException {
   return (call.getRowmode() == TriggerCallRequest.TRIGGER_ROWMODE_STATEMENT);
 }