org.makumba.providers.query.hql
Class MddObjectType

java.lang.Object
  extended by org.makumba.providers.query.hql.MddObjectType
All Implemented Interfaces:
ObjectType

public class MddObjectType
extends Object
implements ObjectType


Constructor Summary
MddObjectType()
           
 
Method Summary
 Object determineType(String type, String field)
          Based on a type name and a field name, this method attempts to return the type of the field
 int getTypeOf(Object descriptor)
          given a type descriptor, resolve it to an integer for type analysis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MddObjectType

public MddObjectType()
Method Detail

determineType

public Object determineType(String type,
                            String field)
                     throws antlr.RecognitionException,
                            antlr.SemanticException
Based on a type name and a field name, this method attempts to return the type of the field

Specified by:
determineType in interface ObjectType
Parameters:
type - the type name, e.g. "general.Person"
field - the field name, e.g. "age"
Returns:
the type of the field, if it could be computed
Throws:
antlr.RecognitionException
antlr.SemanticException

getTypeOf

public int getTypeOf(Object descriptor)
given a type descriptor, resolve it to an integer for type analysis

Specified by:
getTypeOf in interface ObjectType