Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredForEachRow()
  */
 public boolean isFiredForEachRow() throws SQLException {
   return (call.getRowmode() == TriggerCallRequest.TRIGGER_ROWMODE_ROW);
 }
Exemplo n.º 3
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredBefore()
  */
 public boolean isFiredBefore() throws SQLException {
   return (call.getType() == TriggerCallRequest.TRIGGER_FIRED_BEFORE);
 }
Exemplo n.º 4
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredAfter()
  */
 public boolean isFiredAfter() throws SQLException {
   return (call.getType() == TriggerCallRequest.TRIGGER_FIRED_AFTER);
 }
Exemplo n.º 5
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredByUpdate()
  */
 public boolean isFiredByUpdate() throws SQLException {
   return (call.getReason() == TriggerCallRequest.TRIGGER_REASON_UPDATE);
 }
Exemplo n.º 6
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredByInsert()
  */
 public boolean isFiredByInsert() throws SQLException {
   return (call.getReason() == TriggerCallRequest.TRIGGER_REASON_INSERT);
 }
Exemplo n.º 7
0
 /* (non-Javadoc)
  * @see org.postgresql.pljava.TriggerData#isFiredForStatement()
  */
 public boolean isFiredForStatement() throws SQLException {
   return (call.getRowmode() == TriggerCallRequest.TRIGGER_ROWMODE_STATEMENT);
 }