
org.nuiton.util.pagination.PaginationOrder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nuiton-utils Show documentation
Show all versions of nuiton-utils Show documentation
Library of usefull class to be used in any project.
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