1 27 28 34 package olstore.entity; 35 36 import javax.ejb.EntityBean; 38 39 88 89 public abstract class PictureBean implements EntityBean { 90 91 96 97 public java.lang.String ejbCreate(String location, int priority) throws javax.ejb.CreateException{ 98 99 ejbCreate( location, "", priority ); 101 return null; 102 } 103 104 109 public java.lang.String ejbCreate(String location, String altText, String priority) 110 throws javax.ejb.CreateException { 111 int priorityInt = 100; 112 if ( priority != null && ! priority.equals("") ) { 113 priorityInt = Integer.parseInt ( priority ); 114 } 115 116 return ejbCreate (location, altText, priorityInt); 117 } 118 119 124 public java.lang.String ejbCreate(String location, String altText, int priority) 125 throws javax.ejb.CreateException { 126 setLocation (location); 127 setText (altText); 128 setPriority(priority); 129 return null; 130 } 131 132 136 public void ejbPostCreate(String location, int priority) throws javax.ejb.CreateException { 137 } 138 139 public void ejbPostCreate(String location, String altText, String priority) throws javax.ejb.CreateException { 140 } 141 142 public void ejbPostCreate(String location, String altText, int priority) throws javax.ejb.CreateException { 143 } 144 145 157 public abstract java.lang.String getLocation(); 158 159 166 public abstract void setLocation(java.lang.String location); 167 168 180 public abstract java.lang.String getText(); 181 182 189 public abstract void setText(java.lang.String text); 190 191 203 public abstract int getPriority(); 204 205 212 public abstract void setPriority(int priority); 213 214 } 215 | Popular Tags |