1 19 20 package org.netbeans.modules.j2ee.persistence.wizard.unit; 21 22 import javax.swing.JPanel ; 23 import org.netbeans.modules.j2ee.persistence.provider.InvalidPersistenceXmlException; 24 import org.netbeans.modules.j2ee.persistence.provider.Provider; 25 26 30 public abstract class PersistenceUnitWizardPanel extends JPanel { 31 32 public static final String IS_VALID = "PersistenceUnitWizardPanel_isValid"; 34 37 public enum TableGeneration { 38 CREATE, DROP_CREATE, NONE 39 } 40 41 public abstract String getPersistenceUnitName(); 42 43 public abstract String getTableGeneration(); 44 45 public abstract boolean isValidPanel(); 46 47 48 public abstract void setPreselectedDB(String db); 49 50 57 public abstract boolean isNameUnique() throws InvalidPersistenceXmlException; 58 59 62 public abstract Provider getSelectedProvider(); 63 64 68 public abstract void setErrorMessage(String msg); 69 70 } 71 | Popular Tags |