Top Description Methods
org.hibernate.engine.spi

public Interface ComparableExecutable

extends Executable, Comparable<ComparableExecutable>, Serializable
Known Direct Implementers
org.hibernate.action.internal.CollectionAction, org.hibernate.action.internal.EntityAction
Imports
java.io.Serializable, org.hibernate.action.spi.Executable

We frequently need the union type of Executable, Comparable of ComparableExecutable, Serializable; this interface represents such union; this helps to simplify several generic signatures. Secondarily, it helps to avoid triggering type pollution by not needing to typecheck for a very specific Comparable type; we represent the common needs to resolve sorting by exposing primary and secondary sorting attributes.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the primary sorting attribute; typically the entity name or collection role.
getPrimarySortClassifier
()

This affect sorting order of the executables, when sorting is enabled.

public Object

Returns:

the secondary sorting attribute, applied when getPrimarySortClassifier matches during a comparison; typically the entity key or collection key.
getSecondarySortIndex
()

This affect sorting order of the executables, when sorting is enabled.

Inherited from java.lang.Comparable:
compareTo
Inherited from org.hibernate.action.spi.Executable:
afterDeserializebeforeExecutionsexecutegetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetPropertySpaces

Method Detail

getPrimarySortClassifierback to summary
public String getPrimarySortClassifier()

This affect sorting order of the executables, when sorting is enabled.

Returns:String

the primary sorting attribute; typically the entity name or collection role.

getSecondarySortIndexback to summary
public Object getSecondarySortIndex()

This affect sorting order of the executables, when sorting is enabled.

Returns:Object

the secondary sorting attribute, applied when getPrimarySortClassifier matches during a comparison; typically the entity key or collection key.