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

org.hibernate.boot.model.source.spi.Sortable Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.boot.model.source.spi;

/**
 * Contact to define if the source of plural attribute is sortable or not.
 *
 * @author Steve Ebersole
 */
public interface Sortable {
	/**
	 * If the source of plural attribute is supposed to be sorted.
	 *
	 * @return true the attribute will be sortable or false means not.
	 */
	boolean isSorted();

	/**
	 * The comparator class name which will be used to sort the attribute.
	 *
	 * @return Qualified class name which implements {@link java.util.Comparator} contact.
	 */
	String getComparatorName();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy