1 6 7 package com.sun.enterprise.tools.common.dd.ejb; 8 9 import org.w3c.dom.*; 10 import org.netbeans.modules.schema2beans.*; 11 import java.beans.*; 12 import java.util.*; 13 import com.sun.enterprise.tools.common.dd.ResourceRef; 14 import com.sun.enterprise.tools.common.dd.EjbRef; 15 import com.sun.enterprise.tools.common.dd.ResourceEnvRef; 16 import com.sun.enterprise.tools.common.dd.ServiceRef; 17 import com.sun.enterprise.tools.common.dd.WebserviceEndpoint; 18 19 21 public class Ejb extends com.sun.enterprise.tools.common.dd.SunBaseBean 22 { 23 24 static Vector comparators = new Vector(); 25 26 static public final String AVAILABILITYENABLED = "AvailabilityEnabled"; static public final String EJB_NAME = "EjbName"; static public final String JNDI_NAME = "JndiName"; static public final String EJB_REF = "EjbRef"; static public final String RESOURCE_REF = "ResourceRef"; static public final String RESOURCE_ENV_REF = "ResourceEnvRef"; static public final String SERVICE_REF = "ServiceRef"; static public final String PASS_BY_REFERENCE = "PassByReference"; static public final String CMP = "Cmp"; static public final String PRINCIPAL = "Principal"; static public final String MDB_CONNECTION_FACTORY = "MdbConnectionFactory"; static public final String JMS_DURABLE_SUBSCRIPTION_NAME = "JmsDurableSubscriptionName"; static public final String JMS_MAX_MESSAGES_LOAD = "JmsMaxMessagesLoad"; static public final String IOR_SECURITY_CONFIG = "IorSecurityConfig"; static public final String IS_READ_ONLY_BEAN = "IsReadOnlyBean"; static public final String REFRESH_PERIOD_IN_SECONDS = "RefreshPeriodInSeconds"; static public final String COMMIT_OPTION = "CommitOption"; static public final String CMT_TIMEOUT_IN_SECONDS = "CmtTimeoutInSeconds"; static public final String USE_THREAD_POOL_ID = "UseThreadPoolId"; static public final String GEN_CLASSES = "GenClasses"; static public final String BEAN_POOL = "BeanPool"; static public final String BEAN_CACHE = "BeanCache"; static public final String MDB_RESOURCE_ADAPTER = "MdbResourceAdapter"; static public final String WEBSERVICE_ENDPOINT = "WebserviceEndpoint"; static public final String FLUSH_AT_END_OF_METHOD = "FlushAtEndOfMethod"; static public final String CHECKPOINTED_METHODS = "CheckpointedMethods"; static public final String CHECKPOINT_AT_END_OF_METHOD = "CheckpointAtEndOfMethod"; 54 public Ejb() { 55 this(Common.USE_DEFAULT_VALUES); 56 } 57 58 public Ejb(int options) 59 { 60 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 61 this.createProperty("ejb-name", EJB_NAME, 64 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 65 String .class); 66 this.createProperty("jndi-name", JNDI_NAME, 68 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 69 String .class); 70 this.createProperty("ejb-ref", EJB_REF, 72 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 73 EjbRef.class); 74 this.createProperty("resource-ref", RESOURCE_REF, 76 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 77 ResourceRef.class); 78 this.createProperty("resource-env-ref", RESOURCE_ENV_REF, 80 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 81 ResourceEnvRef.class); 82 this.createProperty("service-ref", SERVICE_REF, 84 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 85 ServiceRef.class); 86 this.createProperty("pass-by-reference", PASS_BY_REFERENCE, 88 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 89 String .class); 90 this.createProperty("cmp", CMP, 92 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 93 Cmp.class); 94 this.createProperty("principal", PRINCIPAL, 96 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 97 Principal.class); 98 this.createProperty("mdb-connection-factory", MDB_CONNECTION_FACTORY, 100 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 101 MdbConnectionFactory.class); 102 this.createProperty("jms-durable-subscription-name", JMS_DURABLE_SUBSCRIPTION_NAME, 104 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 105 String .class); 106 this.createProperty("jms-max-messages-load", JMS_MAX_MESSAGES_LOAD, 108 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 109 String .class); 110 this.createProperty("ior-security-config", IOR_SECURITY_CONFIG, 112 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 113 IorSecurityConfig.class); 114 this.createProperty("is-read-only-bean", IS_READ_ONLY_BEAN, 116 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 117 String .class); 118 this.createProperty("refresh-period-in-seconds", REFRESH_PERIOD_IN_SECONDS, 120 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 121 String .class); 122 this.createProperty("commit-option", COMMIT_OPTION, 124 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 125 String .class); 126 this.createProperty("cmt-timeout-in-seconds", CMT_TIMEOUT_IN_SECONDS, 128 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 129 String .class); 130 this.createProperty("use-thread-pool-id", USE_THREAD_POOL_ID, 132 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 133 String .class); 134 this.createProperty("gen-classes", GEN_CLASSES, 136 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 137 GenClasses.class); 138 this.createProperty("bean-pool", BEAN_POOL, 140 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 141 BeanPool.class); 142 this.createProperty("bean-cache", BEAN_CACHE, 144 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 145 BeanCache.class); 146 this.createProperty("mdb-resource-adapter", MDB_RESOURCE_ADAPTER, 148 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 149 MdbResourceAdapter.class); 150 this.createProperty("webservice-endpoint", WEBSERVICE_ENDPOINT, 152 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 153 WebserviceEndpoint.class); 154 this.createProperty("flush-at-end-of-method", FLUSH_AT_END_OF_METHOD, 156 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 157 FlushAtEndOfMethod.class); 158 this.createProperty("checkpointed-methods", CHECKPOINTED_METHODS, 160 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 161 String .class); 162 this.createProperty("checkpoint-at-end-of-method", CHECKPOINT_AT_END_OF_METHOD, 164 Common.TYPE_0_1 | Common.TYPE_BEAN | Common.TYPE_KEY, 165 CheckpointAtEndOfMethod.class); 166 this.initialize(options); 167 } 168 169 void initialize(int options) 171 { 172 173 } 174 175 public void setAvailabilityEnabled(java.lang.String value) { 177 setAttributeValue(AVAILABILITYENABLED, value); 178 } 179 180 public java.lang.String getAvailabilityEnabled() { 182 return getAttributeValue(AVAILABILITYENABLED); 183 } 184 185 public void setEjbName(String value) { 187 this.setValue(EJB_NAME, value); 188 } 189 190 public String getEjbName() { 192 return (String )this.getValue(EJB_NAME); 193 } 194 195 public void setJndiName(String value) { 197 this.setValue(JNDI_NAME, value); 198 } 199 200 public String getJndiName() { 202 return (String )this.getValue(JNDI_NAME); 203 } 204 205 public void setEjbRef(int index, EjbRef value) { 207 this.setValue(EJB_REF, index, value); 208 } 209 210 public EjbRef getEjbRef(int index) { 212 return (EjbRef)this.getValue(EJB_REF, index); 213 } 214 215 public void setEjbRef(EjbRef[] value) { 217 this.setValue(EJB_REF, value); 218 } 219 220 public EjbRef[] getEjbRef() { 222 return (EjbRef[])this.getValues(EJB_REF); 223 } 224 225 public int sizeEjbRef() { 227 return this.size(EJB_REF); 228 } 229 230 public int addEjbRef(EjbRef value) { 232 return this.addValue(EJB_REF, value); 233 } 234 235 public int removeEjbRef(EjbRef value) { 240 return this.removeValue(EJB_REF, value); 241 } 242 243 public void setResourceRef(int index, ResourceRef value) { 245 this.setValue(RESOURCE_REF, index, value); 246 } 247 248 public ResourceRef getResourceRef(int index) { 250 return (ResourceRef)this.getValue(RESOURCE_REF, index); 251 } 252 253 public void setResourceRef(ResourceRef[] value) { 255 this.setValue(RESOURCE_REF, value); 256 } 257 258 public ResourceRef[] getResourceRef() { 260 return (ResourceRef[])this.getValues(RESOURCE_REF); 261 } 262 263 public int sizeResourceRef() { 265 return this.size(RESOURCE_REF); 266 } 267 268 public int addResourceRef(ResourceRef value) { 270 return this.addValue(RESOURCE_REF, value); 271 } 272 273 public int removeResourceRef(ResourceRef value) { 278 return this.removeValue(RESOURCE_REF, value); 279 } 280 281 public void setResourceEnvRef(int index, ResourceEnvRef value) { 283 this.setValue(RESOURCE_ENV_REF, index, value); 284 } 285 286 public ResourceEnvRef getResourceEnvRef(int index) { 288 return (ResourceEnvRef)this.getValue(RESOURCE_ENV_REF, index); 289 } 290 291 public void setResourceEnvRef(ResourceEnvRef[] value) { 293 this.setValue(RESOURCE_ENV_REF, value); 294 } 295 296 public ResourceEnvRef[] getResourceEnvRef() { 298 return (ResourceEnvRef[])this.getValues(RESOURCE_ENV_REF); 299 } 300 301 public int sizeResourceEnvRef() { 303 return this.size(RESOURCE_ENV_REF); 304 } 305 306 public int addResourceEnvRef(ResourceEnvRef value) { 308 return this.addValue(RESOURCE_ENV_REF, value); 309 } 310 311 public int removeResourceEnvRef(ResourceEnvRef value) { 316 return this.removeValue(RESOURCE_ENV_REF, value); 317 } 318 319 public void setServiceRef(int index, ServiceRef value) { 321 this.setValue(SERVICE_REF, index, value); 322 } 323 324 public ServiceRef getServiceRef(int index) { 326 return (ServiceRef)this.getValue(SERVICE_REF, index); 327 } 328 329 public void setServiceRef(ServiceRef[] value) { 331 this.setValue(SERVICE_REF, value); 332 } 333 334 public ServiceRef[] getServiceRef() { 336 return (ServiceRef[])this.getValues(SERVICE_REF); 337 } 338 339 public int sizeServiceRef() { 341 return this.size(SERVICE_REF); 342 } 343 344 public int addServiceRef(ServiceRef value) { 346 return this.addValue(SERVICE_REF, value); 347 } 348 349 public int removeServiceRef(ServiceRef value) { 354 return this.removeValue(SERVICE_REF, value); 355 } 356 357 public void setPassByReference(String value) { 359 this.setValue(PASS_BY_REFERENCE, value); 360 } 361 362 public String getPassByReference() { 364 return (String )this.getValue(PASS_BY_REFERENCE); 365 } 366 367 public void setCmp(Cmp value) { 369 this.setValue(CMP, value); 370 } 371 372 public Cmp getCmp() { 374 return (Cmp)this.getValue(CMP); 375 } 376 377 public void setPrincipal(Principal value) { 379 this.setValue(PRINCIPAL, value); 380 } 381 382 public Principal getPrincipal() { 384 return (Principal)this.getValue(PRINCIPAL); 385 } 386 387 public void setMdbConnectionFactory(MdbConnectionFactory value) { 389 this.setValue(MDB_CONNECTION_FACTORY, value); 390 } 391 392 public MdbConnectionFactory getMdbConnectionFactory() { 394 return (MdbConnectionFactory)this.getValue(MDB_CONNECTION_FACTORY); 395 } 396 397 public void setJmsDurableSubscriptionName(String value) { 399 this.setValue(JMS_DURABLE_SUBSCRIPTION_NAME, value); 400 } 401 402 public String getJmsDurableSubscriptionName() { 404 return (String )this.getValue(JMS_DURABLE_SUBSCRIPTION_NAME); 405 } 406 407 public void setJmsMaxMessagesLoad(String value) { 409 this.setValue(JMS_MAX_MESSAGES_LOAD, value); 410 } 411 412 public String getJmsMaxMessagesLoad() { 414 return (String )this.getValue(JMS_MAX_MESSAGES_LOAD); 415 } 416 417 public void setIorSecurityConfig(IorSecurityConfig value) { 419 this.setValue(IOR_SECURITY_CONFIG, value); 420 } 421 422 public IorSecurityConfig getIorSecurityConfig() { 424 return (IorSecurityConfig)this.getValue(IOR_SECURITY_CONFIG); 425 } 426 427 public void setIsReadOnlyBean(String value) { 429 this.setValue(IS_READ_ONLY_BEAN, value); 430 } 431 432 public String getIsReadOnlyBean() { 434 return (String )this.getValue(IS_READ_ONLY_BEAN); 435 } 436 437 public void setRefreshPeriodInSeconds(String value) { 439 this.setValue(REFRESH_PERIOD_IN_SECONDS, value); 440 } 441 442 public String getRefreshPeriodInSeconds() { 444 return (String )this.getValue(REFRESH_PERIOD_IN_SECONDS); 445 } 446 447 public void setCommitOption(String value) { 449 this.setValue(COMMIT_OPTION, value); 450 } 451 452 public String getCommitOption() { 454 return (String )this.getValue(COMMIT_OPTION); 455 } 456 457 public void setCmtTimeoutInSeconds(String value) { 459 this.setValue(CMT_TIMEOUT_IN_SECONDS, value); 460 } 461 462 public String getCmtTimeoutInSeconds() { 464 return (String )this.getValue(CMT_TIMEOUT_IN_SECONDS); 465 } 466 467 public void setUseThreadPoolId(String value) { 469 this.setValue(USE_THREAD_POOL_ID, value); 470 } 471 472 public String getUseThreadPoolId() { 474 return (String )this.getValue(USE_THREAD_POOL_ID); 475 } 476 477 public void setGenClasses(GenClasses value) { 479 this.setValue(GEN_CLASSES, value); 480 } 481 482 public GenClasses getGenClasses() { 484 return (GenClasses)this.getValue(GEN_CLASSES); 485 } 486 487 public void setBeanPool(BeanPool value) { 489 this.setValue(BEAN_POOL, value); 490 } 491 492 public BeanPool getBeanPool() { 494 return (BeanPool)this.getValue(BEAN_POOL); 495 } 496 497 public void setBeanCache(BeanCache value) { 499 this.setValue(BEAN_CACHE, value); 500 } 501 502 public BeanCache getBeanCache() { 504 return (BeanCache)this.getValue(BEAN_CACHE); 505 } 506 507 public void setMdbResourceAdapter(MdbResourceAdapter value) { 509 this.setValue(MDB_RESOURCE_ADAPTER, value); 510 } 511 512 public MdbResourceAdapter getMdbResourceAdapter() { 514 return (MdbResourceAdapter)this.getValue(MDB_RESOURCE_ADAPTER); 515 } 516 517 public void setWebserviceEndpoint(int index, WebserviceEndpoint value) { 519 this.setValue(WEBSERVICE_ENDPOINT, index, value); 520 } 521 522 public WebserviceEndpoint getWebserviceEndpoint(int index) { 524 return (WebserviceEndpoint)this.getValue(WEBSERVICE_ENDPOINT, index); 525 } 526 527 public void setWebserviceEndpoint(WebserviceEndpoint[] value) { 529 this.setValue(WEBSERVICE_ENDPOINT, value); 530 } 531 532 public WebserviceEndpoint[] getWebserviceEndpoint() { 534 return (WebserviceEndpoint[])this.getValues(WEBSERVICE_ENDPOINT); 535 } 536 537 public int sizeWebserviceEndpoint() { 539 return this.size(WEBSERVICE_ENDPOINT); 540 } 541 542 public int addWebserviceEndpoint(WebserviceEndpoint value) { 544 return this.addValue(WEBSERVICE_ENDPOINT, value); 545 } 546 547 public int removeWebserviceEndpoint(WebserviceEndpoint value) { 552 return this.removeValue(WEBSERVICE_ENDPOINT, value); 553 } 554 555 public void setFlushAtEndOfMethod(FlushAtEndOfMethod value) { 557 this.setValue(FLUSH_AT_END_OF_METHOD, value); 558 } 559 560 public FlushAtEndOfMethod getFlushAtEndOfMethod() { 562 return (FlushAtEndOfMethod)this.getValue(FLUSH_AT_END_OF_METHOD); 563 } 564 565 public void setCheckpointedMethods(String value) { 567 this.setValue(CHECKPOINTED_METHODS, value); 568 } 569 570 public String getCheckpointedMethods() { 572 return (String )this.getValue(CHECKPOINTED_METHODS); 573 } 574 575 public void setCheckpointAtEndOfMethod(CheckpointAtEndOfMethod value) { 577 this.setValue(CHECKPOINT_AT_END_OF_METHOD, value); 578 } 579 580 public CheckpointAtEndOfMethod getCheckpointAtEndOfMethod() { 582 return (CheckpointAtEndOfMethod)this.getValue(CHECKPOINT_AT_END_OF_METHOD); 583 } 584 585 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 587 comparators.add(c); 588 } 589 590 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 592 comparators.remove(c); 593 } 594 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 595 boolean restrictionFailure = false; 596 if (getAvailabilityEnabled() != null) { 598 } 599 if (getEjbName() == null) { 601 throw new org.netbeans.modules.schema2beans.ValidateException("getEjbName() == null", "ejbName", this); } 603 if (getJndiName() != null) { 605 } 606 for (int _index = 0; _index < sizeEjbRef(); ++_index) { 608 EjbRef element = getEjbRef(_index); 609 if (element != null) { 610 element.validate(); 611 } 612 } 613 for (int _index = 0; _index < sizeResourceRef(); ++_index) { 615 ResourceRef element = getResourceRef(_index); 616 if (element != null) { 617 element.validate(); 618 } 619 } 620 for (int _index = 0; _index < sizeResourceEnvRef(); ++_index) { 622 ResourceEnvRef element = getResourceEnvRef(_index); 623 if (element != null) { 624 element.validate(); 625 } 626 } 627 for (int _index = 0; _index < sizeServiceRef(); ++_index) { 629 ServiceRef element = getServiceRef(_index); 630 if (element != null) { 631 element.validate(); 632 } 633 } 634 if (getPassByReference() != null) { 636 } 637 if (getCmp() != null) { 639 getCmp().validate(); 640 } 641 if (getPrincipal() != null) { 643 getPrincipal().validate(); 644 } 645 if (getMdbConnectionFactory() != null) { 647 getMdbConnectionFactory().validate(); 648 } 649 if (getJmsDurableSubscriptionName() != null) { 651 } 652 if (getJmsMaxMessagesLoad() != null) { 654 } 655 if (getIorSecurityConfig() != null) { 657 getIorSecurityConfig().validate(); 658 } 659 if (getIsReadOnlyBean() != null) { 661 } 662 if (getRefreshPeriodInSeconds() != null) { 664 } 665 if (getCommitOption() != null) { 667 } 668 if (getCmtTimeoutInSeconds() != null) { 670 } 671 if (getUseThreadPoolId() != null) { 673 } 674 if (getGenClasses() != null) { 676 getGenClasses().validate(); 677 } 678 if (getBeanPool() != null) { 680 getBeanPool().validate(); 681 } 682 if (getBeanCache() != null) { 684 getBeanCache().validate(); 685 } 686 if (getMdbResourceAdapter() != null) { 688 getMdbResourceAdapter().validate(); 689 } 690 for (int _index = 0; _index < sizeWebserviceEndpoint(); ++_index) { 692 WebserviceEndpoint element = getWebserviceEndpoint(_index); 693 if (element != null) { 694 element.validate(); 695 } 696 } 697 if (getFlushAtEndOfMethod() != null) { 699 getFlushAtEndOfMethod().validate(); 700 } 701 if (getCheckpointedMethods() != null) { 703 } 704 if (getCheckpointAtEndOfMethod() != null) { 706 getCheckpointAtEndOfMethod().validate(); 707 } 708 } 709 710 public void dump(StringBuffer str, String indent){ 712 String s; 713 Object o; 714 org.netbeans.modules.schema2beans.BaseBean n; 715 str.append(indent); 716 str.append("EjbName"); str.append(indent+"\t"); str.append("<"); s = this.getEjbName(); 720 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(EJB_NAME, 0, str, indent); 723 724 str.append(indent); 725 str.append("JndiName"); str.append(indent+"\t"); str.append("<"); s = this.getJndiName(); 729 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(JNDI_NAME, 0, str, indent); 732 733 str.append(indent); 734 str.append("EjbRef["+this.sizeEjbRef()+"]"); for(int i=0; i<this.sizeEjbRef(); i++) 736 { 737 str.append(indent+"\t"); 738 str.append("#"+i+":"); 739 n = (org.netbeans.modules.schema2beans.BaseBean) this.getEjbRef(i); 740 if (n != null) 741 n.dump(str, indent + "\t"); else 743 str.append(indent+"\tnull"); this.dumpAttributes(EJB_REF, i, str, indent); 745 } 746 747 str.append(indent); 748 str.append("ResourceRef["+this.sizeResourceRef()+"]"); for(int i=0; i<this.sizeResourceRef(); i++) 750 { 751 str.append(indent+"\t"); 752 str.append("#"+i+":"); 753 n = (org.netbeans.modules.schema2beans.BaseBean) this.getResourceRef(i); 754 if (n != null) 755 n.dump(str, indent + "\t"); else 757 str.append(indent+"\tnull"); this.dumpAttributes(RESOURCE_REF, i, str, indent); 759 } 760 761 str.append(indent); 762 str.append("ResourceEnvRef["+this.sizeResourceEnvRef()+"]"); for(int i=0; i<this.sizeResourceEnvRef(); i++) 764 { 765 str.append(indent+"\t"); 766 str.append("#"+i+":"); 767 n = (org.netbeans.modules.schema2beans.BaseBean) this.getResourceEnvRef(i); 768 if (n != null) 769 n.dump(str, indent + "\t"); else 771 str.append(indent+"\tnull"); this.dumpAttributes(RESOURCE_ENV_REF, i, str, indent); 773 } 774 775 str.append(indent); 776 str.append("ServiceRef["+this.sizeServiceRef()+"]"); for(int i=0; i<this.sizeServiceRef(); i++) 778 { 779 str.append(indent+"\t"); 780 str.append("#"+i+":"); 781 n = (org.netbeans.modules.schema2beans.BaseBean) this.getServiceRef(i); 782 if (n != null) 783 n.dump(str, indent + "\t"); else 785 str.append(indent+"\tnull"); this.dumpAttributes(SERVICE_REF, i, str, indent); 787 } 788 789 str.append(indent); 790 str.append("PassByReference"); str.append(indent+"\t"); str.append("<"); s = this.getPassByReference(); 794 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(PASS_BY_REFERENCE, 0, str, indent); 797 798 str.append(indent); 799 str.append("Cmp"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getCmp(); 801 if (n != null) 802 n.dump(str, indent + "\t"); else 804 str.append(indent+"\tnull"); this.dumpAttributes(CMP, 0, str, indent); 806 807 str.append(indent); 808 str.append("Principal"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getPrincipal(); 810 if (n != null) 811 n.dump(str, indent + "\t"); else 813 str.append(indent+"\tnull"); this.dumpAttributes(PRINCIPAL, 0, str, indent); 815 816 str.append(indent); 817 str.append("MdbConnectionFactory"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getMdbConnectionFactory(); 819 if (n != null) 820 n.dump(str, indent + "\t"); else 822 str.append(indent+"\tnull"); this.dumpAttributes(MDB_CONNECTION_FACTORY, 0, str, indent); 824 825 str.append(indent); 826 str.append("JmsDurableSubscriptionName"); str.append(indent+"\t"); str.append("<"); s = this.getJmsDurableSubscriptionName(); 830 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(JMS_DURABLE_SUBSCRIPTION_NAME, 0, str, indent); 833 834 str.append(indent); 835 str.append("JmsMaxMessagesLoad"); str.append(indent+"\t"); str.append("<"); s = this.getJmsMaxMessagesLoad(); 839 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(JMS_MAX_MESSAGES_LOAD, 0, str, indent); 842 843 str.append(indent); 844 str.append("IorSecurityConfig"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getIorSecurityConfig(); 846 if (n != null) 847 n.dump(str, indent + "\t"); else 849 str.append(indent+"\tnull"); this.dumpAttributes(IOR_SECURITY_CONFIG, 0, str, indent); 851 852 str.append(indent); 853 str.append("IsReadOnlyBean"); str.append(indent+"\t"); str.append("<"); s = this.getIsReadOnlyBean(); 857 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(IS_READ_ONLY_BEAN, 0, str, indent); 860 861 str.append(indent); 862 str.append("RefreshPeriodInSeconds"); str.append(indent+"\t"); str.append("<"); s = this.getRefreshPeriodInSeconds(); 866 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(REFRESH_PERIOD_IN_SECONDS, 0, str, indent); 869 870 str.append(indent); 871 str.append("CommitOption"); str.append(indent+"\t"); str.append("<"); s = this.getCommitOption(); 875 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(COMMIT_OPTION, 0, str, indent); 878 879 str.append(indent); 880 str.append("CmtTimeoutInSeconds"); str.append(indent+"\t"); str.append("<"); s = this.getCmtTimeoutInSeconds(); 884 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(CMT_TIMEOUT_IN_SECONDS, 0, str, indent); 887 888 str.append(indent); 889 str.append("UseThreadPoolId"); str.append(indent+"\t"); str.append("<"); s = this.getUseThreadPoolId(); 893 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(USE_THREAD_POOL_ID, 0, str, indent); 896 897 str.append(indent); 898 str.append("GenClasses"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getGenClasses(); 900 if (n != null) 901 n.dump(str, indent + "\t"); else 903 str.append(indent+"\tnull"); this.dumpAttributes(GEN_CLASSES, 0, str, indent); 905 906 str.append(indent); 907 str.append("BeanPool"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getBeanPool(); 909 if (n != null) 910 n.dump(str, indent + "\t"); else 912 str.append(indent+"\tnull"); this.dumpAttributes(BEAN_POOL, 0, str, indent); 914 915 str.append(indent); 916 str.append("BeanCache"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getBeanCache(); 918 if (n != null) 919 n.dump(str, indent + "\t"); else 921 str.append(indent+"\tnull"); this.dumpAttributes(BEAN_CACHE, 0, str, indent); 923 924 str.append(indent); 925 str.append("MdbResourceAdapter"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getMdbResourceAdapter(); 927 if (n != null) 928 n.dump(str, indent + "\t"); else 930 str.append(indent+"\tnull"); this.dumpAttributes(MDB_RESOURCE_ADAPTER, 0, str, indent); 932 933 str.append(indent); 934 str.append("WebserviceEndpoint["+this.sizeWebserviceEndpoint()+"]"); for(int i=0; i<this.sizeWebserviceEndpoint(); i++) 936 { 937 str.append(indent+"\t"); 938 str.append("#"+i+":"); 939 n = (org.netbeans.modules.schema2beans.BaseBean) this.getWebserviceEndpoint(i); 940 if (n != null) 941 n.dump(str, indent + "\t"); else 943 str.append(indent+"\tnull"); this.dumpAttributes(WEBSERVICE_ENDPOINT, i, str, indent); 945 } 946 947 str.append(indent); 948 str.append("FlushAtEndOfMethod"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getFlushAtEndOfMethod(); 950 if (n != null) 951 n.dump(str, indent + "\t"); else 953 str.append(indent+"\tnull"); this.dumpAttributes(FLUSH_AT_END_OF_METHOD, 0, str, indent); 955 956 str.append(indent); 957 str.append("CheckpointedMethods"); str.append(indent+"\t"); str.append("<"); s = this.getCheckpointedMethods(); 961 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(CHECKPOINTED_METHODS, 0, str, indent); 964 965 str.append(indent); 966 str.append("CheckpointAtEndOfMethod"); n = (org.netbeans.modules.schema2beans.BaseBean) this.getCheckpointAtEndOfMethod(); 968 if (n != null) 969 n.dump(str, indent + "\t"); else 971 str.append(indent+"\tnull"); this.dumpAttributes(CHECKPOINT_AT_END_OF_METHOD, 0, str, indent); 973 974 } 975 public String dumpBeanNode(){ 976 StringBuffer str = new StringBuffer (); 977 str.append("Ejb\n"); this.dump(str, "\n "); return str.toString(); 980 }} 981 982 984 985 1007 | Popular Tags |