User: dsundstrom
  Date: 02/02/26 15:59:27

  Modified:    src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata
                        JDBCDeclaredQueryMetaData.java
  Log:
  Removed code that attempted to load resultTypeMappingLocal from the
  declared-sql element.  This was an obvious error.
  
  Revision  Changes    Path
  1.10      +2 -17     
jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCDeclaredQueryMetaData.java
  
  Index: JDBCDeclaredQueryMetaData.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCDeclaredQueryMetaData.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- JDBCDeclaredQueryMetaData.java    17 Jan 2002 17:26:12 -0000      1.9
  +++ JDBCDeclaredQueryMetaData.java    26 Feb 2002 23:59:27 -0000      1.10
  @@ -19,7 +19,7 @@
    * Imutable class contains information about a declated query.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Dain Sundstrom</a>
  - *   @version $Revision: 1.9 $
  + *   @version $Revision: 1.10 $
    */
   public final class JDBCDeclaredQueryMetaData implements JDBCQueryMetaData {
      /**
  @@ -94,22 +94,7 @@
         order = MetaData.getOptionalChildContent(queryElement, "order");
         other = MetaData.getOptionalChildContent(queryElement, "other");
   
  -
  -             String resultTypeMappingString = MetaData.getOptionalChildContent(
  -            queryElement,
  -            "result-type-mapping");
  -            
  -             if(QueryMetaData.LOCAL.equals(resultTypeMappingString)) {
  -         resultTypeMappingLocal = true;
  -      } else if(QueryMetaData.REMOTE.equals(resultTypeMappingString)) {
  -         resultTypeMappingLocal = false;
  -      } else if(resultTypeMappingString == null) {
  -         resultTypeMappingLocal = jdbcQueryMetaData.isResultTypeMappingLocal();
  -      } else {
  -                     throw new DeploymentException("result-type-mapping, if 
specified, " +
  -               "must be '" + QueryMetaData.REMOTE + "' or '" +
  -               QueryMetaData.LOCAL + "', and it is case sensitive.");
  -             }
  +      resultTypeMappingLocal = jdbcQueryMetaData.isResultTypeMappingLocal();
   
         // load ejbSelect info
         Element selectElement = 
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to