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

org.nuiton.util.pagination.PaginationOrder Maven / Gradle / Ivy

There is a newer version: 3.1
Show newest version
package org.nuiton.util.pagination;

/*
 * #%L
 * Nuiton Utils
 * %%
 * Copyright (C) 2004 - 2014 CodeLutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

import java.io.Serializable;

/**
 * This class represents an 'order' information : order clause and asc/desc
 *
 * @author Arnaud Thimel (Code Lutin)
 * @since 3.0
 */
public class PaginationOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    protected String clause;
    protected boolean desc;

    public PaginationOrder(String clause, boolean desc) {
        this.clause = clause;
        this.desc = desc;
    }

    public String getClause() {
        return clause;
    }

    public void setClause(String clause) {
        this.clause = clause;
    }

    public boolean isDesc() {
        return desc;
    }

    public void setDesc(boolean desc) {
        this.desc = desc;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy