Package org.apache.ojb.broker.query

Examples of org.apache.ojb.broker.query.UserAlias


      if ((tableAlias == null) && (colName.lastIndexOf(".") == -1))
      {
        /**
         * pathName might be an alias, so check this first
         */
        tableAlias = getTableAlias(pathName, useOuterJoins, new UserAlias(pathName, pathName, pathName), null, pathClasses);
      }

      if (tableAlias != null)
      {
        // correct column name to match the alias
View Full Code Here


   */
  public void testThreeSegmentsAliasOnSegment2And3UserAlias() throws Exception
  {
    try
    {
      UserAlias userAlias1 = new UserAlias("alias1");
      userAlias1.add("bSet.cSet");
      userAlias1.add("bSet.cSet.d");
     
      // d1 criteria
      Criteria crit1 = new Criteria();
      crit1.addEqualTo("bSet.cSet.d.dAttrib", new Integer("10010"));
      crit1.setAlias(userAlias1);

      // d2 criteria
      UserAlias userAlias2 = new UserAlias("alias2");
      userAlias2.add("bSet.cSet");
      userAlias2.add("bSet.cSet.d");

      Criteria crit2 = new Criteria();
      crit2.addEqualTo("bSet.cSet.d.dAttrib", new Integer("10110"));
      crit2.setAlias(userAlias2);

View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.query.UserAlias

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.