Uses of Class
org.apache.ojb.broker.util.SqlHelper.PathInfo

Packages that use SqlHelper.PathInfo
org.apache.ojb.broker.accesslayer.sql This package contains the OJB SQL generator classes. 
org.apache.ojb.broker.util   
 

Uses of SqlHelper.PathInfo in org.apache.ojb.broker.accesslayer.sql
 

Methods in org.apache.ojb.broker.accesslayer.sql with parameters of type SqlHelper.PathInfo
protected  boolean SqlQueryStatement.appendColName(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias aTableAlias, SqlHelper.PathInfo aPathInfo, boolean translate, StringBuffer buf)
          Add the Column to the StringBuffer
protected  void SqlQueryStatement.appendCriteria(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias alias, SqlHelper.PathInfo pathInfo, SelectionCriteria c, StringBuffer buf)
          Answer the SQL-Clause for a SelectionCriteria
protected  String SqlDeleteByQuery.getColName(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias aTableAlias, SqlHelper.PathInfo aPathInfo, boolean translate)
           
protected  String SqlQueryStatement.getColName(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias aTableAlias, SqlHelper.PathInfo aPathInfo, boolean translate)
          Answer the column name for alias and path info
if translate try to convert attribute name into column name otherwise use attribute name
if a FieldDescriptor is found for the attribute name the column name is taken from there prefixed with the alias (firstname -> A0.F_NAME).
protected  FieldDescriptor SqlQueryStatement.getFieldDescriptor(org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.TableAlias aTableAlias, SqlHelper.PathInfo aPathInfo)
          Get the FieldDescriptor for the PathInfo
 

Uses of SqlHelper.PathInfo in org.apache.ojb.broker.util
 

Methods in org.apache.ojb.broker.util that return SqlHelper.PathInfo
static SqlHelper.PathInfo SqlHelper.splitPath(String aPath)
          Split a path into column , prefix and suffix, the prefix contains all info up to the column
ie: avg(amount) -> amount , avg( , )
ie: sum (accounts.amount) as theSum -> accounts.amount , sum( , ) as theSum
ie: count( distinct id ) as bla -> id , count(distinct , ) as bla
Supports simple expressions ie: price * 1.05 TODO: cannot resolve multiple attributes in expression ie: price - bonus
 



Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.