db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql SqlQueryStatement.java
Date Sun, 06 Apr 2003 19:27:55 GMT
brj         2003/04/06 12:27:55

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  use pathHints in getAttributeDescriptorsForPath
  
  Revision  Changes    Path
  1.32      +5 -5      db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
  
  Index: SqlQueryStatement.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- SqlQueryStatement.java	3 Apr 2003 19:11:19 -0000	1.31
  +++ SqlQueryStatement.java	6 Apr 2003 19:27:55 -0000	1.32
  @@ -87,7 +87,7 @@
       /** the target table of the query */
       private TableAlias m_root;
       /** the query */
  -    private Query m_query;
  +    private QueryByCriteria m_query;
       /** the columns to select (null means all) */
       private String[] m_columns;
       /** the mapping of paths to TableAliases */
  @@ -105,7 +105,7 @@
       {
           this.m_logger = logger;
           this.m_root = createTableAlias(cld, "");
  -        this.m_query = query;
  +        this.m_query = (QueryByCriteria)query;
           this.m_columns = columns;
           this.pf = pf;
           this.m_cld = cld;
  @@ -715,7 +715,7 @@
           curr = getTableAliasForPath(aPath, aUserAlias);
           if (curr == null)
           {
  -            descriptors = getRoot().cld.getAttributeDescriptorsForPath(aPath);
  +            descriptors = getRoot().cld.getAttributeDescriptorsForPath(aPath, getQuery().getPathClasses());
               prev = getRoot();
   
               for (int i = 0; i < descriptors.size(); i++)
  @@ -1239,7 +1239,7 @@
        * Gets the query.
        * @return Returns a Query
        */
  -    protected Query getQuery()
  +    protected QueryByCriteria getQuery()
       {
           return m_query;
       }
  
  
  

Mime
View raw message