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

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

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

import java.util.Map;

import org.onetwo.dbm.event.internal.DbmSessionEventSource;

public class DbmExtQueryEvent extends DbmSessionEvent {
	
	public enum ExtQueryType {
		DEFUALT,
		PAGINATION,
		UNIQUE,
		COUNT
	}

	private final Map properties;
	private Object resultObject;
	private final ExtQueryType extQueryType;
	
	public DbmExtQueryEvent(ExtQueryType extQueryType, Class entityClass, Map properties, DbmSessionEventSource eventSource) {
		this(null, extQueryType, entityClass, properties, eventSource);
	}
	public DbmExtQueryEvent(Object obj, ExtQueryType extQueryType, Class entityClass, Map properties, DbmSessionEventSource eventSource) {
		super(obj, DbmEventAction.extQuery, eventSource);
		this.setEntityClass(entityClass);
		this.properties = properties;
		this.extQueryType = extQueryType;
	}

	public Object getResultObject() {
		return resultObject;
	}

	public void setResultObject(Object resultObject) {
		this.resultObject = resultObject;
	}

	public Map getProperties() {
		return properties;
	}

	public ExtQueryType getExtQueryType() {
		return extQueryType;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy