Class QueryName
- java.lang.Object
-
- org.jboss.as.jpa.hibernate5.management.QueryName
-
public class QueryName extends java.lang.Object
Represents the Hibernate query name which is passed in as a parameter. The displayQuery can be obtained which has spaces and other symbols replaced with a textual description (which shouldn't be changed or localized. The localization rule is so that one set of admin scripts will work against any back end system. If it becomes more important to localize the textual descriptions, care should be taken to avoid duplicate values when doing so.
-
-
Constructor Summary
Constructors Constructor Description QueryName(java.lang.String query)
Construct
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getDisplayName()
int
hashCode()
static QueryName
queryName(java.lang.String query)
-
-
-
Method Detail
-
queryName
public static QueryName queryName(java.lang.String query)
-
getDisplayName
public java.lang.String getDisplayName()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-