1 19 20 package org.netbeans.modules.j2ee.dd.api.ejb.j2ee1_3; 21 22 import org.netbeans.modules.schema2beans.Version; 23 import org.netbeans.modules.j2ee.dd.impl.common.ComponentBeanSingle; 24 25 abstract public class EntityBean extends ComponentBeanSingle { 26 27 public EntityBean(java.util.Vector comps, Version version) { 28 super(comps, version); 29 } 30 31 public static final String TRUE = "True"; public static final String FALSE = "False"; 37 public void setReentrant(boolean value) { 38 if (value) { 39 setReentrant(TRUE); 40 } else { 41 setReentrant(FALSE); 42 } 43 } 44 45 public boolean isReentrant() { 46 String value = getReentrant(); 47 if ((value == null) || value.equals(FALSE)) { 48 return false; 49 } else { 50 return true; 51 } 52 } 53 54 abstract public void setReentrant(String value); 55 abstract public String getReentrant(); 56 } 57 | Popular Tags |