net.sf.csutils.core.query.impl
Class SqlQueryGenerator
java.lang.Object
net.sf.csutils.core.query.impl.AbstractQueryGenerator
net.sf.csutils.core.query.impl.SqlQueryGenerator
public class SqlQueryGenerator
- extends AbstractQueryGenerator
Converts a CSQL query into XQuery.
Methods inherited from class net.sf.csutils.core.query.impl.AbstractQueryGenerator |
createJoin, findMatchingObjectType, findObjectTypes, getAlias, getModel, getObjectType, getParameters, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parseExpression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlQueryGenerator
public SqlQueryGenerator()
newObjectTypeInfo
protected AbstractQueryGenerator.ObjectTypeInfo newObjectTypeInfo(java.lang.String pAlias,
ROType pType,
AbstractQueryGenerator.ObjectTypeInfo pSourceType,
RORelation pAttribute)
throws javax.xml.registry.JAXRException
- Description copied from class:
AbstractQueryGenerator
- Creates a new instance of
AbstractQueryGenerator.ObjectTypeInfo
. This is invoked for the
main registry object type in the query as well as for any JOIN clause.
- Overrides:
newObjectTypeInfo
in class AbstractQueryGenerator
- Parameters:
pAlias
- The alias to use for the registry object type.pType
- The registry object type.pSourceType
- Contains the left hand side of the join clause
(the source type of a relationship attribute), if the method is
invoked to implement such a clause, otherwise null.pAttribute
- Contains the relationship attribute of the
join clause, if the method is invoked to implement such a clause,
otherwise null.
- Returns:
- The created object.
- Throws:
javax.xml.registry.JAXRException
- Creating the ObjectTypeInfo failed.
parse
protected void parse(Parameter pParameter)
throws javax.xml.registry.JAXRException
- Description copied from class:
AbstractQueryGenerator
- Adds the given parameter to the query.
- Overrides:
parse
in class AbstractQueryGenerator
- Parameters:
pParameter
- The parameter to add to the query.
- Throws:
javax.xml.registry.JAXRException
- Failed to add the parameter.
parse
protected void parse(Like pLike)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(In pIn)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(And pAnd)
throws javax.xml.registry.JAXRException
- Overrides:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(Or pOr)
throws javax.xml.registry.JAXRException
- Overrides:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(RelationalExpression pExpr,
java.lang.String pOp)
throws javax.xml.registry.JAXRException
- Overrides:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parseRoAlias
protected AbstractQueryGenerator.ObjectTypeInfo parseRoAlias(java.lang.String pPath,
java.lang.String pAlias)
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
parseAlias
protected AbstractQueryGenerator.ObjectTypeInfo parseAlias(java.lang.String pPath,
java.lang.String pAlias)
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
parseNameOrDescription
protected void parseNameOrDescription(org.apache.labs.jaxmas.registry.infomodel.InternationalStringImpl.Type pType,
java.lang.String pPath,
java.util.List<java.lang.Object> pArgs)
throws javax.xml.registry.JAXRException
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(MethodCall pMethodCall)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected CsqlStatement parse(SelectStatement pQuery)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(Identifier pIdentifier)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(FunctionCall pFunctionCall)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(IsNull pIsNull)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(Negation pNegation)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(java.lang.String pString)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(java.util.Calendar pCalendar)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
parse
protected void parse(java.lang.Boolean pBoolean)
throws javax.xml.registry.JAXRException
- Specified by:
parse
in class AbstractQueryGenerator
- Throws:
javax.xml.registry.JAXRException
Copyright © 2009-2010. All Rights Reserved.