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