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

ar.com.fdvs.dj.util.customexpression.PageNumberCustomExpression Maven / Gradle / Ivy

package ar.com.fdvs.dj.util.customexpression;

import ar.com.fdvs.dj.domain.CustomExpression;
import ar.com.fdvs.dj.domain.entities.Entity;

import java.util.Map;

/**
 * Convenient CustomExpression that returns page number 
 * @author mamana
 *
 */
public class PageNumberCustomExpression implements CustomExpression {
	private static final long serialVersionUID = Entity.SERIAL_VERSION_UID;
	
	public Object evaluate(Map fields, Map variables, Map parameters) {
        return variables.get("PAGE_NUMBER");
	}

	public String getClassName() {
		return Integer.class.getName();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy