Top Description Fields Constructors Methods
org.hibernate.hql

public final Class QuerySplitter

extends Object
Class Inheritance
Imports
org.slf4j.Logger, .LoggerFactory, org.hibernate.MappingException, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.hql.classic.ParserHelper, org.hibernate.util.StringHelper, java.util.ArrayList, .HashSet, .Set

Provides query splitting methods, which were originally in QueryTranslator.
TODO: This will need to be refactored at some point.
Author
josh

Field Summary

Modifier and TypeField and Description
private static final Set<E>
private static final Logger
private static final Set<E>

Constructor Summary

AccessConstructor and Description
private
QuerySplitter()

Private empty constructor.

Method Summary

Modifier and TypeMethod and Description
public static String[]
concreteQueries(String query, SessionFactoryImplementor factory)

Handle Hibernate "implicit" polymorphism, by translating the query string into several "concrete" queries against mapped classes.

public static String
private static boolean
private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BEFORE_CLASS_TOKENSback to summary
private static final Set<E> BEFORE_CLASS_TOKENS
logback to summary
private static final Logger log
NOT_AFTER_CLASS_TOKENSback to summary
private static final Set<E> NOT_AFTER_CLASS_TOKENS

Constructor Detail

QuerySplitterback to summary
private QuerySplitter()

Private empty constructor. (or else checkstyle says: 'warning: Utility classes should not have a public or default constructor.')

Method Detail

concreteQueriesback to summary
public static String[] concreteQueries(String query, SessionFactoryImplementor factory) throws MappingException

Handle Hibernate "implicit" polymorphism, by translating the query string into several "concrete" queries against mapped classes.

getImportedClassback to summary
public static String getImportedClass(String name, SessionFactoryImplementor factory)
isJavaIdentifierback to summary
private static boolean isJavaIdentifier(String token)
isPossiblyClassNameback to summary
private static boolean isPossiblyClassName(String last, String next)