All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.dbm.event.spi.JdbcOperationEvent Maven / Gradle / Ivy

The newest version!
package org.onetwo.dbm.event.spi;

import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.jdbc.core.JdbcOperations;

@Deprecated
public class JdbcOperationEvent implements DbmEvent {
	
	final private DbmEventAction action;
	final private JdbcOperations eventSource;
	final private ProceedingJoinPoint pjp;

	public JdbcOperationEvent(DbmEventAction action, ProceedingJoinPoint pjp) {
		super();
		this.action = action;
		this.pjp = pjp;
		this.eventSource = (JdbcOperations)this.pjp.getTarget();
	}

	@Override
	public DbmEventAction getAction() {
		return action;
	}

	@Override
	public JdbcOperations getEventSource() {
		return eventSource;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy