com.evolveum.midpoint.repo.sql.query
Class QueryRegistry

java.lang.Object
  extended by com.evolveum.midpoint.repo.sql.query.QueryRegistry

public class QueryRegistry
extends java.lang.Object

This registry provides mapping from QName names to real property names in entity classes. This translation is used during query building.

Author:
lazyman

Constructor Summary
QueryRegistry()
           
 
Method Summary
<T extends ObjectType>
EntityDefinition
findDefinition(java.lang.Class<T> type)
           
 EntityDefinition findDefinition(javax.xml.namespace.QName qname)
           
static java.util.List<java.lang.reflect.Field> getFields(java.lang.Class clazz)
          Method returns declared field from class and it's super classes, it skips static fields.
static QueryRegistry getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryRegistry

public QueryRegistry()
Method Detail

getInstance

public static QueryRegistry getInstance()
                                 throws QueryException
Throws:
QueryException

findDefinition

public <T extends ObjectType> EntityDefinition findDefinition(java.lang.Class<T> type)

findDefinition

public EntityDefinition findDefinition(javax.xml.namespace.QName qname)

getFields

public static java.util.List<java.lang.reflect.Field> getFields(java.lang.Class clazz)
Method returns declared field from class and it's super classes, it skips static fields.



Copyright © 2012 evolveum. All Rights Reserved.