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

com.envision.eos.event.api.expression.OrderBy Maven / Gradle / Ivy

The newest version!
package com.envision.eos.event.api.expression;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.envision.eos.event.api.bo.EventVisitor;

public class OrderBy implements Element {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private List orders = new ArrayList();

	public OrderBy() {

	}

	public void setOrders(List orders) {
		this.orders = orders;
	}

	public OrderBy addOrder(Order order) {
		if (order == null) {
			throw new NullPointerException("Please do not pass null");
		}
		orders.add(order);
		return this;
	}

	public void accept(EventVisitor visitor) throws IOException {
		visitor.visit(this);
	}

	public List getOrders() {
		return orders;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy