Package org.hibernate.query.spi
Class NamedQueryRepository
- java.lang.Object
-
- org.hibernate.query.spi.NamedQueryRepository
-
public class NamedQueryRepository extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NamedQueryRepository(java.lang.Iterable<NamedQueryDefinition> namedQueryDefinitions, java.lang.Iterable<NamedSQLQueryDefinition> namedSqlQueryDefinitions, java.lang.Iterable<ResultSetMappingDefinition> namedSqlResultSetMappings, java.util.Map<java.lang.String,ProcedureCallMemento> namedProcedureCalls)
NamedQueryRepository(java.util.Map<java.lang.String,NamedQueryDefinition> namedQueryDefinitionMap, java.util.Map<java.lang.String,NamedSQLQueryDefinition> namedSqlQueryDefinitionMap, java.util.Map<java.lang.String,ResultSetMappingDefinition> namedSqlResultSetMappingMap, java.util.Map<java.lang.String,ProcedureCallMemento> namedProcedureCallMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,HibernateException>
checkNamedQueries(QueryPlanCache queryPlanCache)
ProcedureCallMemento
getNamedProcedureCallMemento(java.lang.String name)
NamedQueryDefinition
getNamedQueryDefinition(java.lang.String queryName)
NamedSQLQueryDefinition
getNamedSQLQueryDefinition(java.lang.String queryName)
ResultSetMappingDefinition
getResultSetMappingDefinition(java.lang.String mappingName)
void
registerNamedProcedureCallMemento(java.lang.String name, ProcedureCallMemento memento)
void
registerNamedQueryDefinition(java.lang.String name, NamedQueryDefinition definition)
void
registerNamedSQLQueryDefinition(java.lang.String name, NamedSQLQueryDefinition definition)
-
-
-
Constructor Detail
-
NamedQueryRepository
public NamedQueryRepository(java.lang.Iterable<NamedQueryDefinition> namedQueryDefinitions, java.lang.Iterable<NamedSQLQueryDefinition> namedSqlQueryDefinitions, java.lang.Iterable<ResultSetMappingDefinition> namedSqlResultSetMappings, java.util.Map<java.lang.String,ProcedureCallMemento> namedProcedureCalls)
-
NamedQueryRepository
public NamedQueryRepository(java.util.Map<java.lang.String,NamedQueryDefinition> namedQueryDefinitionMap, java.util.Map<java.lang.String,NamedSQLQueryDefinition> namedSqlQueryDefinitionMap, java.util.Map<java.lang.String,ResultSetMappingDefinition> namedSqlResultSetMappingMap, java.util.Map<java.lang.String,ProcedureCallMemento> namedProcedureCallMap)
-
-
Method Detail
-
getNamedQueryDefinition
public NamedQueryDefinition getNamedQueryDefinition(java.lang.String queryName)
-
getNamedSQLQueryDefinition
public NamedSQLQueryDefinition getNamedSQLQueryDefinition(java.lang.String queryName)
-
getNamedProcedureCallMemento
public ProcedureCallMemento getNamedProcedureCallMemento(java.lang.String name)
-
getResultSetMappingDefinition
public ResultSetMappingDefinition getResultSetMappingDefinition(java.lang.String mappingName)
-
registerNamedQueryDefinition
public void registerNamedQueryDefinition(java.lang.String name, NamedQueryDefinition definition)
-
registerNamedSQLQueryDefinition
public void registerNamedSQLQueryDefinition(java.lang.String name, NamedSQLQueryDefinition definition)
-
registerNamedProcedureCallMemento
public void registerNamedProcedureCallMemento(java.lang.String name, ProcedureCallMemento memento)
-
checkNamedQueries
public java.util.Map<java.lang.String,HibernateException> checkNamedQueries(QueryPlanCache queryPlanCache)
-
-