User: d_jencks
  Date: 02/01/30 14:55:18

  Modified:    src/main/org/jboss/metadata EntityMetaData.java
  Log:
  Added read-only tag to jboss.xml entities. This is handled in the interceptor stack 
rather than the pm
  
  Revision  Changes    Path
  1.14      +22 -2     jboss/src/main/org/jboss/metadata/EntityMetaData.java
  
  Index: EntityMetaData.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/metadata/EntityMetaData.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- EntityMetaData.java       2001/11/26 03:17:47     1.13
  +++ EntityMetaData.java       2002/01/30 22:55:18     1.14
  @@ -18,7 +18,7 @@
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Dain Sundstrom</a>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Bill Burke</a>
  - *   @version $Revision: 1.13 $
  + *   @version $Revision: 1.14 $
    *
    *  <p><b>Revisions:</b><br>
    *  <p><b>2001/10/16: billb</b>
  @@ -40,6 +40,7 @@
      private ArrayList cmpFields = new ArrayList();
      private String primKeyField;
      private ArrayList queries = new ArrayList();
  +   private boolean readOnly = false;
   
      // Static --------------------------------------------------------
       
  @@ -77,6 +78,11 @@
         return abstractSchemaName;
      }
   
  +   public boolean isReadOnly()
  +   {
  +      return readOnly;
  +   }
  +
      /**
       * Gets the container managed fields.
       * @returns iterator over Strings containing names of the fields
  @@ -207,8 +213,22 @@
            }
         }
      }
  -
   
  +   public void importJbossXml(Element element) throws DeploymentException
  +   {
  +      super.importJbossXml(element);
  +      // set readonly
  +      String readOnlyString = getElementContent(getOptionalChild(element, 
"read-only"));
  +      if (readOnlyString != null)
  +      {
  +      readOnly = Boolean.valueOf(readOnlyString).booleanValue();
  +      System.out.println("!!!!!!!!read-only set to " + readOnly);
  +      }
  +      else
  +      {
  +      System.out.println("!!!!!!!!read-only element NOT found");
  +      }
  +   }
   
      // Package protected ---------------------------------------------
       
  
  
  

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

Reply via email to