diff --git a/build/src/main/resources/modules/org/jboss/as/jaxr/main/module.xml b/build/src/main/resources/modules/org/jboss/as/jaxr/main/module.xml index 209df6d379b4..d92376f1d70f 100644 --- a/build/src/main/resources/modules/org/jboss/as/jaxr/main/module.xml +++ b/build/src/main/resources/modules/org/jboss/as/jaxr/main/module.xml @@ -1,16 +1,15 @@ - + - + - - - + + diff --git a/build/src/main/resources/standalone/configuration/standalone.xml b/build/src/main/resources/standalone/configuration/standalone.xml index 1abc59ab0e59..4791c52d1ebc 100644 --- a/build/src/main/resources/standalone/configuration/standalone.xml +++ b/build/src/main/resources/standalone/configuration/standalone.xml @@ -30,6 +30,7 @@ + @@ -184,6 +185,38 @@ + + + + + + + + + + + + diff --git a/jaxr/pom.xml b/jaxr/pom.xml index 83a19024c7aa..df0aa25a5059 100644 --- a/jaxr/pom.xml +++ b/jaxr/pom.xml @@ -23,6 +23,7 @@ 4.0.0 + jboss-as-parent org.jboss.as @@ -31,52 +32,15 @@ org.jboss.as jboss-as-jaxr - 7.1.0.Alpha2-SNAPSHOT + jar JBoss Application Server: JAXR Subsystem - jar - - - @@ -85,6 +49,10 @@ org.jboss.as jboss-as-controller + + org.jboss.as + jboss-as-naming + org.jboss.as jboss-as-server diff --git a/jaxr/src/main/java/org/jboss/as/jaxr/extension/JAXRSubsystemAdd.java b/jaxr/src/main/java/org/jboss/as/jaxr/extension/JAXRSubsystemAdd.java index a43a08c0dda1..19b4dc41d373 100644 --- a/jaxr/src/main/java/org/jboss/as/jaxr/extension/JAXRSubsystemAdd.java +++ b/jaxr/src/main/java/org/jboss/as/jaxr/extension/JAXRSubsystemAdd.java @@ -1,20 +1,18 @@ package org.jboss.as.jaxr.extension; -import java.util.List; - import org.jboss.as.controller.AbstractBoottimeAddStepHandler; import org.jboss.as.controller.OperationContext; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.controller.OperationStepHandler; import org.jboss.as.controller.ServiceVerificationHandler; -import org.jboss.as.jaxr.service.JAXRServerService; -import org.jboss.as.server.AbstractDeploymentChainStep; -import org.jboss.as.server.DeploymentProcessorTarget; +import org.jboss.as.jaxr.service.JAXRConfiguration; +import org.jboss.as.jaxr.service.JUDDIService; import org.jboss.dmr.ModelNode; -import org.jboss.logging.Logger; import org.jboss.msc.service.ServiceController; import org.jboss.msc.service.ServiceTarget; +import java.util.List; + /** * Handler responsible for adding the subsystem resource to the model * @@ -25,8 +23,6 @@ class JAXRSubsystemAdd extends AbstractBoottimeAddStepHandler { static final JAXRSubsystemAdd INSTANCE = new JAXRSubsystemAdd(); - private final Logger log = Logger.getLogger(JAXRSubsystemAdd.class); - private JAXRSubsystemAdd() { } @@ -43,8 +39,10 @@ public void performBoottime(final OperationContext context, final ModelNode oper context.addStep(new OperationStepHandler() { @Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { + // [TODO] AS7-2278 JAXR configuration through the domain model + JAXRConfiguration config = new JAXRConfiguration(); ServiceTarget serviceTarget = context.getServiceTarget(); - newControllers.add(JAXRServerService.addService(serviceTarget)); + newControllers.add(JUDDIService.addService(serviceTarget, config)); context.completeStep(); } }, OperationContext.Stage.RUNTIME); diff --git a/jaxr/src/main/java/org/jboss/as/jaxr/service/JAXRConfiguration.java b/jaxr/src/main/java/org/jboss/as/jaxr/service/JAXRConfiguration.java new file mode 100644 index 000000000000..1cce4b795988 --- /dev/null +++ b/jaxr/src/main/java/org/jboss/as/jaxr/service/JAXRConfiguration.java @@ -0,0 +1,82 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2010, Red Hat, Inc., and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package org.jboss.as.jaxr.service; + +import org.jboss.msc.service.ServiceName; + +/** + * The configuration of the JAXR subsystem. + * + * [TODO] AS7-2278 JAXR configuration through the domain model + * + * @author Thomas.Diesler@jboss.com + * @since 26-Oct-2011 + */ +public class JAXRConfiguration { + + public static final ServiceName SERVICE_BASE_NAME = ServiceName.JBOSS.append("jaxr", "as"); + public static final ServiceName JUDDI_SERVICE_NAME = SERVICE_BASE_NAME.append("service"); + + // Should all tables be created on Start + private boolean createOnStart=true; + // Should all tables be dropped on Stop + private boolean dropOnStop=true; + // Should all tables be dropped on Start + private boolean dropOnStart=true; + // Datasource to Database + private String dataSourceUrl="java:jboss/datasources/ExampleDS"; + // Alias to the registry + private String registryOperator="RegistryOperator"; + // Should I bind a Context to which JaxrConnectionFactory bound + private boolean bindJaxr=true; + // Context to which JaxrConnectionFactory to bind to + private String namingContext ="java:/JAXR"; + + boolean isDropOnStop() { + return dropOnStop; + } + + boolean isDropOnStart() { + return dropOnStart; + } + + String getDataSourceUrl() { + return dataSourceUrl; + } + + String getRegistryOperator() { + return registryOperator; + } + + boolean isBindJaxr() { + return bindJaxr; + } + + String getNamingContext() { + return namingContext; + } + + boolean isCreateOnStart() { + return createOnStart; + } +} diff --git a/jaxr/src/main/java/org/jboss/as/jaxr/service/JAXRServerService.java b/jaxr/src/main/java/org/jboss/as/jaxr/service/JAXRServerService.java deleted file mode 100644 index f52bf96a230f..000000000000 --- a/jaxr/src/main/java/org/jboss/as/jaxr/service/JAXRServerService.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * JBoss, Home of Professional Open Source. - * Copyright 2010, Red Hat, Inc., and individual contributors - * as indicated by the @author tags. See the copyright.txt file in the - * distribution for a full listing of individual contributors. - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. - */ - -package org.jboss.as.jaxr.service; - -import org.jboss.as.server.ServerEnvironment; -import org.jboss.as.server.ServerEnvironmentService; -import org.jboss.logging.Logger; -import org.jboss.msc.service.Service; -import org.jboss.msc.service.ServiceBuilder; -import org.jboss.msc.service.ServiceController; -import org.jboss.msc.service.ServiceListener; -import org.jboss.msc.service.ServiceName; -import org.jboss.msc.service.ServiceTarget; -import org.jboss.msc.service.StartContext; -import org.jboss.msc.service.StartException; -import org.jboss.msc.service.StopContext; -import org.jboss.msc.value.InjectedValue; - -/** - * Service responsible for creating and managing the life-cycle of the JAXR server. - * - * @author Thomas.Diesler@jboss.com - * @since 26-Oct-2011 - */ -public class JAXRServerService implements Service { - - public static final ServiceName SERVICE_BASE_NAME = ServiceName.JBOSS.append("jaxr", "as"); - public static final ServiceName JAXR_SERVER_NAME = SERVICE_BASE_NAME.append("server"); - - private final Logger log = Logger.getLogger(JAXRServerService.class); - - private final InjectedValue injectedEnvironment = new InjectedValue(); - - public static ServiceController addService(final ServiceTarget target, final ServiceListener... listeners) { - JAXRServerService service = new JAXRServerService(); - ServiceBuilder builder = target.addService(JAXR_SERVER_NAME, service); - builder.addDependency(ServerEnvironmentService.SERVICE_NAME, ServerEnvironment.class, service.injectedEnvironment); - builder.addListener(listeners); - return builder.install(); - } - - private JAXRServerService() { - } - - public synchronized void start(StartContext context) throws StartException { - ServiceController controller = context.getController(); - log.infof("Starting JAXR server"); - try { - } catch (Throwable t) { - throw new StartException("Failed to start JAXR server", t); - } - } - - public synchronized void stop(StopContext context) { - ServiceController controller = context.getController(); - log.infof("Stoping JAXR server"); - } - - @Override - public Void getValue() throws IllegalStateException { - return null; - } -} diff --git a/jaxr/src/main/java/org/jboss/as/jaxr/service/JUDDIService.java b/jaxr/src/main/java/org/jboss/as/jaxr/service/JUDDIService.java new file mode 100644 index 000000000000..1f48c50d5439 --- /dev/null +++ b/jaxr/src/main/java/org/jboss/as/jaxr/service/JUDDIService.java @@ -0,0 +1,283 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2006, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.as.jaxr.service; + +import org.jboss.as.naming.NamingStore; +import org.jboss.as.naming.deployment.ContextNames; +import org.jboss.logging.Logger; +import org.jboss.msc.service.AbstractService; +import org.jboss.msc.service.ServiceBuilder; +import org.jboss.msc.service.ServiceController; +import org.jboss.msc.service.ServiceListener; +import org.jboss.msc.service.ServiceName; +import org.jboss.msc.service.ServiceTarget; +import org.jboss.msc.service.StartContext; +import org.jboss.msc.service.StartException; +import org.jboss.msc.service.StopContext; +import org.jboss.msc.value.InjectedValue; + +import javax.naming.CompositeName; +import javax.naming.InitialContext; +import javax.naming.NamingException; +import javax.sql.DataSource; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; + +/** + * The JUDDI Service for the JUDDI open source project + *

+ * Original source at https://svn.jboss.org/repos/jbossas/projects/jaxr/tags/2.0.2 + * + * @author Anil Saldhana + * @author Thomas.Diesler@jboss.com + * @since 26-Oct-2011 + */ +public final class JUDDIService extends AbstractService { + + // [TODO] AS7-2277 JAXR subsystem i18n + private final Logger log = Logger.getLogger(JUDDIService.class); + + private final JAXRConfiguration config; + + private final InjectedValue injectedNamingStore = new InjectedValue(); + private DataSource datasource; + + public static ServiceController addService(final ServiceTarget target, final JAXRConfiguration config, final ServiceListener... listeners) { + JUDDIService service = new JUDDIService(config); + ServiceBuilder builder = target.addService(JAXRConfiguration.JUDDI_SERVICE_NAME, service); + builder.addDependency(ContextNames.JAVA_CONTEXT_SERVICE_NAME, NamingStore.class, service.injectedNamingStore); + builder.addDependency(ServiceName.JBOSS.append("data-source", config.getDataSourceUrl())); + builder.addListener(listeners); + return builder.install(); + } + + JUDDIService(JAXRConfiguration config) { + this.config = config; + } + + @Override + public void start(final StartContext context) throws StartException { + log.infof("Starting JUDDIService"); + try { + + NamingStore namingStore = injectedNamingStore.getValue(); + String lookup = config.getDataSourceUrl(); + if (lookup.startsWith("java:") == false) + throw new IllegalStateException("Datasource lookup expected in java context: %s" + lookup); + + // [TODO] AS7-2302 Potential race condition on DataSource lookup + long timeout = 2000; + while (datasource == null && timeout > 0) { + try { + datasource = (DataSource) namingStore.lookup(new CompositeName(lookup.substring(5))); + } catch (IllegalStateException ex) { + Thread.sleep(200); + timeout -= 200; + } + } + + if (config.isBindJaxr()) { + //bindJAXRConnectionFactory(); + } + if (config.isDropOnStart()) { + runDrop(); + } + if (config.isCreateOnStart()) { + runCreate(); + } + } catch (Exception ex) { + log.errorf(ex, "Cannot start JUDDI service"); + } + } + + @Override + public void stop(final StopContext context) { + log.infof("Stopping JUDDIService"); + try { + if (config.isDropOnStop()) { + runDrop(); + } + //unBindJAXRConnectionFactory(); + } catch (Exception ex) { + log.errorf(ex, "Cannot start JUDDI service"); + } + } + + private void runDrop() throws SQLException, IOException { + log.debug("JUDDIService: Inside runDrop"); + locateAndRunScript("juddi_drop_db.ddl"); + log.debug("JUDDIService: Exit runDrop"); + } + + private void runCreate() throws SQLException, IOException { + log.debug("JUDDIService: Inside runCreate"); + locateAndRunScript("juddi_create_db.ddl"); + locateAndRunScript("juddi_data.ddl"); + } + + private void locateAndRunScript(String name) throws SQLException, IOException { + log.infof("RunScript: %s", name); + InputStream input = getClass().getClassLoader().getResourceAsStream("META-INF/ddl/" + name); + if (input == null) { + log.errorf("Cannot load DDL script: %s", name); + return; + } + try { + runScript(input); + } finally { + input.close(); + } + } + + private void runScript(InputStream stream) throws SQLException, IOException { + boolean firstError = true; + BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); + Connection connection = null; + try { + connection = datasource.getConnection(); + if (connection == null) { + log.errorf("Cannot obtain connection"); + return; + } + Statement statement = connection.createStatement(); + try { + String nextStatement = ""; + String nextLine; + while ((nextLine = reader.readLine()) != null) { + log.debug("Statement Obtained=" + nextLine); + nextLine = nextLine.trim(); + if (nextLine.indexOf("--") != -1) + continue; + int semicolon = nextLine.indexOf(";"); + if (semicolon != -1) { + nextStatement += nextLine.substring(0, semicolon); + try { + log.debug("Statement to execute:" + nextStatement); + statement.execute(nextStatement); + } catch (SQLException e) { + String err = "Could not execute a statement of juddi script::"; + + if (firstError) { + log.debug(err + e.getLocalizedMessage() + " " + + nextStatement); + log.debug("Your settings are:dropOnStart =" + + config.isDropOnStart() + ";createOnStart =" + + config.isCreateOnStart()); + log.debug("dropOnStop = " + config.isDropOnStop()); + + firstError = false; + } + } + nextStatement = nextLine.substring(semicolon + 1); + } else { + nextStatement += nextLine; + } + } + if (!nextStatement.equals("")) { + try { + log.debug("Statement to execute:" + nextStatement); + statement.execute(nextStatement); + } catch (SQLException e) { + log + .debug("Could not execute last statement of a juddi init script: " + + e.getLocalizedMessage()); + log.debug("Your settings are:dropOnStart =" + + config.isDropOnStart() + ";createOnStart =" + + config.isCreateOnStart()); + log.debug("dropOnStop = " + config.isDropOnStop()); + } + } + } finally { + if (statement != null) + statement.close(); + } + } finally { + if (connection != null) + connection.close(); + } + } + + /* + private void bindJAXRConnectionFactory() { + if (this.bindJaxr == null || jndiAlreadyBound) + return;// We will wait for it to be set + + // Bind a ConnectionFactory object to JNDI + InitialContext ctx = null; + try { + ctx = new InitialContext(); + } catch (NamingException e) { + log.error("JNDI InitialContext Failed"); + e.printStackTrace(); + } + ConnectionFactory factory = (ConnectionFactory) ConnectionFactoryImpl + .newInstance(); + + try { + if (bindJaxr.indexOf('/') != -1) + { + StringTokenizer st = new StringTokenizer(bindJaxr, "/"); + String subContext = null; + while (st.hasMoreTokens()) + { + subContext = st.nextToken(); + if (st.hasMoreTokens()) + { + ctx.createSubcontext(subContext); + } + } + } + ctx.rebind(bindJaxr, factory); + jndiAlreadyBound = true; + } catch (NamingException e) { + log.error("JNDI Bind Failed:" + bindJaxr); + e.printStackTrace(); + } + + } + + private void unBindJAXRConnectionFactory() { + if (this.bindJaxr == null || jndiAlreadyBound) + return;// We will wait for it to be set + + // Bind a ConnectionFactory object to JNDI + InitialContext ctx = null; + try { + ctx = new InitialContext(); + } catch (NamingException e) { + log.error("JNDI InitialContext Failed"); + e.printStackTrace(); + } + try { + ctx.unbind(bindJaxr); + } catch (NamingException e) { + // Ignore + } + + } + */ +} diff --git a/jaxr/src/main/resources/META-INF/ddl/juddi_create_db.ddl b/jaxr/src/main/resources/META-INF/ddl/juddi_create_db.ddl new file mode 100644 index 000000000000..c414e339768e --- /dev/null +++ b/jaxr/src/main/resources/META-INF/ddl/juddi_create_db.ddl @@ -0,0 +1,365 @@ +CREATE TABLE BUSINESS_ENTITY +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + AUTHORIZED_NAME VARCHAR(255) NOT NULL, + PUBLISHER_ID VARCHAR(20) NULL, + OPERATOR VARCHAR(255) NOT NULL, + LAST_UPDATE TIMESTAMP NOT NULL, + PRIMARY KEY (BUSINESS_KEY) +); + +CREATE TABLE BUSINESS_DESCR +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + BUSINESS_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,BUSINESS_DESCR_ID), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE BUSINESS_CATEGORY +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CATEGORY_ID INT NOT NULL, + TMODEL_KEY_REF VARCHAR(41) NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,CATEGORY_ID), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE BUSINESS_IDENTIFIER +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + IDENTIFIER_ID INT NOT NULL, + TMODEL_KEY_REF VARCHAR(41) NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,IDENTIFIER_ID), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE BUSINESS_NAME +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + BUSINESS_NAME_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + NAME VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,BUSINESS_NAME_ID), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE CONTACT +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CONTACT_ID INT NOT NULL, + USE_TYPE VARCHAR(255) NULL, + PERSON_NAME VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,CONTACT_ID), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE CONTACT_DESCR +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CONTACT_ID INT NOT NULL, + CONTACT_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,CONTACT_ID,CONTACT_DESCR_ID), + FOREIGN KEY (BUSINESS_KEY,CONTACT_ID) + REFERENCES CONTACT (BUSINESS_KEY,CONTACT_ID) +); + +CREATE TABLE ADDRESS +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CONTACT_ID INT NOT NULL, + ADDRESS_ID INT NOT NULL, + USE_TYPE VARCHAR(255) NULL, + SORT_CODE VARCHAR(10) NULL, + TMODEL_KEY VARCHAR(41) NULL, + PRIMARY KEY (BUSINESS_KEY,CONTACT_ID,ADDRESS_ID), + FOREIGN KEY (BUSINESS_KEY,CONTACT_ID) + REFERENCES CONTACT (BUSINESS_KEY,CONTACT_ID) +); + +CREATE TABLE ADDRESS_LINE +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CONTACT_ID INT NOT NULL, + ADDRESS_ID INT NOT NULL, + ADDRESS_LINE_ID INT NOT NULL, + LINE VARCHAR(80) NOT NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NULL, + PRIMARY KEY (BUSINESS_KEY,CONTACT_ID,ADDRESS_ID,ADDRESS_LINE_ID), + FOREIGN KEY (BUSINESS_KEY,CONTACT_ID,ADDRESS_ID) + REFERENCES ADDRESS (BUSINESS_KEY,CONTACT_ID,ADDRESS_ID) +); + +CREATE TABLE EMAIL +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CONTACT_ID INT NOT NULL, + EMAIL_ID INT NOT NULL, + USE_TYPE VARCHAR(255) NULL, + EMAIL_ADDRESS VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,CONTACT_ID,EMAIL_ID), + FOREIGN KEY (BUSINESS_KEY,CONTACT_ID) + REFERENCES CONTACT (BUSINESS_KEY,CONTACT_ID) +); + +CREATE TABLE PHONE +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + CONTACT_ID INT NOT NULL, + PHONE_ID INT NOT NULL, + USE_TYPE VARCHAR(255) NULL, + PHONE_NUMBER VARCHAR(50) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,CONTACT_ID,PHONE_ID), + FOREIGN KEY (BUSINESS_KEY,CONTACT_ID) + REFERENCES CONTACT (BUSINESS_KEY,CONTACT_ID) +); + +CREATE TABLE DISCOVERY_URL +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + DISCOVERY_URL_ID INT NOT NULL, + USE_TYPE VARCHAR(255) NOT NULL, + URL VARCHAR(255) NOT NULL, + PRIMARY KEY (BUSINESS_KEY,DISCOVERY_URL_ID), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE BUSINESS_SERVICE +( + BUSINESS_KEY VARCHAR(41) NOT NULL, + SERVICE_KEY VARCHAR(41) NOT NULL, + LAST_UPDATE TIMESTAMP NOT NULL, + PRIMARY KEY (SERVICE_KEY), + FOREIGN KEY (BUSINESS_KEY) + REFERENCES BUSINESS_ENTITY (BUSINESS_KEY) +); + +CREATE TABLE SERVICE_DESCR +( + SERVICE_KEY VARCHAR(41) NOT NULL, + SERVICE_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (SERVICE_KEY,SERVICE_DESCR_ID), + FOREIGN KEY (SERVICE_KEY) + REFERENCES BUSINESS_SERVICE (SERVICE_KEY) +); + +CREATE TABLE SERVICE_CATEGORY +( + SERVICE_KEY VARCHAR(41) NOT NULL, + CATEGORY_ID INT NOT NULL, + TMODEL_KEY_REF VARCHAR(41) NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + PRIMARY KEY (SERVICE_KEY,CATEGORY_ID), + FOREIGN KEY (SERVICE_KEY) + REFERENCES BUSINESS_SERVICE (SERVICE_KEY) +); + +CREATE TABLE SERVICE_NAME +( + SERVICE_KEY VARCHAR(41) NOT NULL, + SERVICE_NAME_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + NAME VARCHAR(255) NOT NULL, + PRIMARY KEY (SERVICE_KEY,SERVICE_NAME_ID), + FOREIGN KEY (SERVICE_KEY) + REFERENCES BUSINESS_SERVICE (SERVICE_KEY) +); + +CREATE TABLE BINDING_TEMPLATE +( + SERVICE_KEY VARCHAR(41) NOT NULL, + BINDING_KEY VARCHAR(41) NOT NULL, + ACCESS_POINT_TYPE VARCHAR(20) NULL, + ACCESS_POINT_URL VARCHAR(2000) NULL, + HOSTING_REDIRECTOR VARCHAR(255) NULL, + LAST_UPDATE TIMESTAMP NOT NULL, + PRIMARY KEY (BINDING_KEY), + FOREIGN KEY (SERVICE_KEY) + REFERENCES BUSINESS_SERVICE (SERVICE_KEY) +); + +CREATE TABLE BINDING_CATEGORY +( + BINDING_KEY VARCHAR(41) NOT NULL, + CATEGORY_ID INT NOT NULL, + TMODEL_KEY_REF VARCHAR(41) NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + PRIMARY KEY (BINDING_KEY,CATEGORY_ID), + FOREIGN KEY (BINDING_KEY) + REFERENCES BINDING_TEMPLATE (BINDING_KEY) +); + +CREATE TABLE BINDING_DESCR +( + BINDING_KEY VARCHAR(41) NOT NULL, + BINDING_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (BINDING_KEY,BINDING_DESCR_ID), + FOREIGN KEY (BINDING_KEY) + REFERENCES BINDING_TEMPLATE (BINDING_KEY) +); + +CREATE TABLE TMODEL_INSTANCE_INFO +( + BINDING_KEY VARCHAR(41) NOT NULL, + TMODEL_INSTANCE_INFO_ID INT NOT NULL, + TMODEL_KEY VARCHAR(41) NOT NULL, + OVERVIEW_URL VARCHAR(255) NULL, + INSTANCE_PARMS VARCHAR(255) NULL, + PRIMARY KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID), + FOREIGN KEY (BINDING_KEY) + REFERENCES BINDING_TEMPLATE (BINDING_KEY) +); + +CREATE TABLE TMODEL_INSTANCE_INFO_DESCR +( + BINDING_KEY VARCHAR(41) NOT NULL, + TMODEL_INSTANCE_INFO_ID INT NOT NULL, + TMODEL_INSTANCE_INFO_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID,TMODEL_INSTANCE_INFO_DESCR_ID), + FOREIGN KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID) + REFERENCES TMODEL_INSTANCE_INFO (BINDING_KEY,TMODEL_INSTANCE_INFO_ID) +); + +CREATE TABLE INSTANCE_DETAILS_DESCR +( + BINDING_KEY VARCHAR(41) NOT NULL, + TMODEL_INSTANCE_INFO_ID INT NOT NULL, + INSTANCE_DETAILS_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID,INSTANCE_DETAILS_DESCR_ID), + FOREIGN KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID) + REFERENCES TMODEL_INSTANCE_INFO (BINDING_KEY,TMODEL_INSTANCE_INFO_ID) +); + +CREATE TABLE INSTANCE_DETAILS_DOC_DESCR +( + BINDING_KEY VARCHAR(41) NOT NULL, + TMODEL_INSTANCE_INFO_ID INT NOT NULL, + INSTANCE_DETAILS_DOC_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID,INSTANCE_DETAILS_DOC_DESCR_ID), + FOREIGN KEY (BINDING_KEY,TMODEL_INSTANCE_INFO_ID) + REFERENCES TMODEL_INSTANCE_INFO (BINDING_KEY,TMODEL_INSTANCE_INFO_ID) +); + +CREATE TABLE TMODEL +( + TMODEL_KEY VARCHAR(41) NOT NULL, + AUTHORIZED_NAME VARCHAR(255) NOT NULL, + PUBLISHER_ID VARCHAR(20) NULL, + OPERATOR VARCHAR(255) NOT NULL, + NAME VARCHAR(255) NOT NULL, + LANG_CODE VARCHAR(5) NULL, + OVERVIEW_URL VARCHAR(255) NULL, + DELETED VARCHAR(5) NULL, + LAST_UPDATE TIMESTAMP NOT NULL, + PRIMARY KEY (TMODEL_KEY) +); + +CREATE TABLE TMODEL_DESCR +( + TMODEL_KEY VARCHAR(41) NOT NULL, + TMODEL_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (TMODEL_KEY,TMODEL_DESCR_ID), + FOREIGN KEY (TMODEL_KEY) + REFERENCES TMODEL (TMODEL_KEY) +); + +CREATE TABLE TMODEL_CATEGORY +( + TMODEL_KEY VARCHAR(41) NOT NULL, + CATEGORY_ID INT NOT NULL, + TMODEL_KEY_REF VARCHAR(255) NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + PRIMARY KEY (TMODEL_KEY,CATEGORY_ID), + FOREIGN KEY (TMODEL_KEY) + REFERENCES TMODEL (TMODEL_KEY) +); + +CREATE TABLE TMODEL_IDENTIFIER +( + TMODEL_KEY VARCHAR(41) NOT NULL, + IDENTIFIER_ID INT NOT NULL, + TMODEL_KEY_REF VARCHAR(255) NULL, + KEY_NAME VARCHAR(255) NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + PRIMARY KEY (TMODEL_KEY,IDENTIFIER_ID), + FOREIGN KEY (TMODEL_KEY) + REFERENCES TMODEL (TMODEL_KEY) +); + +CREATE TABLE TMODEL_DOC_DESCR +( + TMODEL_KEY VARCHAR(41) NOT NULL, + TMODEL_DOC_DESCR_ID INT NOT NULL, + LANG_CODE VARCHAR(5) NULL, + DESCR VARCHAR(255) NOT NULL, + PRIMARY KEY (TMODEL_KEY,TMODEL_DOC_DESCR_ID), + FOREIGN KEY (TMODEL_KEY) + REFERENCES TMODEL (TMODEL_KEY) +); + +CREATE TABLE PUBLISHER_ASSERTION +( + FROM_KEY VARCHAR(41) NOT NULL, + TO_KEY VARCHAR(41) NOT NULL, + TMODEL_KEY VARCHAR(41) NOT NULL, + KEY_NAME VARCHAR(255) NOT NULL, + KEY_VALUE VARCHAR(255) NOT NULL, + FROM_CHECK VARCHAR(5) NOT NULL, + TO_CHECK VARCHAR(5) NOT NULL +); + +CREATE TABLE PUBLISHER +( + PUBLISHER_ID VARCHAR(20) NOT NULL, + PUBLISHER_NAME VARCHAR(255) NOT NULL, + EMAIL_ADDRESS VARCHAR(255) NULL, + IS_ADMIN VARCHAR(5) NULL, + IS_ENABLED VARCHAR(5) NULL, + MAX_BUSINESSES INT NULL, + MAX_SERVICES_PER_BUSINESS INT NULL, + MAX_BINDINGS_PER_SERVICE INT NULL, + MAX_TMODELS INT NULL, + PRIMARY KEY (PUBLISHER_ID) +); + +CREATE TABLE AUTH_TOKEN +( + AUTH_TOKEN VARCHAR(51) NOT NULL, + PUBLISHER_ID VARCHAR(20) NOT NULL, + PUBLISHER_NAME VARCHAR(255) NOT NULL, + CREATED TIMESTAMP NOT NULL, + LAST_USED TIMESTAMP NOT NULL, + NUMBER_OF_USES INT NOT NULL, + TOKEN_STATE INT NOT NULL, + PRIMARY KEY (AUTH_TOKEN) +); diff --git a/jaxr/src/main/resources/META-INF/ddl/juddi_data.ddl b/jaxr/src/main/resources/META-INF/ddl/juddi_data.ddl new file mode 100644 index 000000000000..fc13910cf7d5 --- /dev/null +++ b/jaxr/src/main/resources/META-INF/ddl/juddi_data.ddl @@ -0,0 +1,326 @@ +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','Administrator','admin','jUDDI.org','uddi-org:types','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#UDDItypes',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4',0,'en','UDDI Type Taxonomy'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4',0,'en','Taxonomy used to categorize Service Descriptions.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:DB77450D-9FA8-45D4-A7BC-04411D14E384','Administrator','admin','jUDDI.org','unspsc-org:unspsc:3-1','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#UNSPSC31',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:DB77450D-9FA8-45D4-A7BC-04411D14E384',0,'en','Product Taxonomy: UNSPSC (Version 3.1)'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:DB77450D-9FA8-45D4-A7BC-04411D14E384',0,'en','This tModel defines the UNSPSC product taxonomy.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:DB77450D-9FA8-45D4-A7BC-04411D14E384',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:CD153257-086A-4237-B336-6BDCBDCC6634','Administrator','admin','jUDDI.org','unspsc-org:unspsc','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#UNSPSC',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:CD153257-086A-4237-B336-6BDCBDCC6634',0,'en','Product Taxonomy: UNSPSC (Version 7.3)'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:CD153257-086A-4237-B336-6BDCBDCC6634',0,'en','This tModel defines Version 7.3 of the UNSPSC product taxonomy.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:CD153257-086A-4237-B336-6BDCBDCC6634',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:CD153257-086A-4237-B336-6BDCBDCC6634',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','Checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2','Administrator','admin','jUDDI.org','ntis-gov:naics:1997','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#NAICS',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2',0,'en','Business Taxonomy: NAICS(1997 Release)'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2',0,'en','This tModel defines the NAICS industry taxonomy.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:C0B9FE13-179F-413D-8A5B-5004DB8E5BB2',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:4E49A8D6-D5A2-4FC2-93A0-0411D8D19E88','Administrator','admin','jUDDI.org','uddi-org:iso-ch:3166-1999','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#ISO3166',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:4E49A8D6-D5A2-4FC2-93A0-0411D8D19E88',0,'en','ISO 3166-1:1997 and 3166-2:1998. Codes for names of countries and their subdivisions. Part 1: Country codes. Part 2:Country subdivision codes. Update newsletters include ISO 3166-1 V-1 (1998-02-05), V-2 (1999-10-01), ISO 3166-2 I-1 (1998)'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:4E49A8D6-D5A2-4FC2-93A0-0411D8D19E88',0,'en','Taxonomy used to categorize entries by geographic location.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:4E49A8D6-D5A2-4FC2-93A0-0411D8D19E88',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:4E49A8D6-D5A2-4FC2-93A0-0411D8D19E88',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4','Administrator','admin','jUDDI.org','uddi-org:general_keywords','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#GenKW',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4',0,'en','Special taxonomy consisting of namespace identifiers and the keywords associated with the namespaces'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4',0,'en','This tModel defines an unidentified taxonomy.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:4064C064-6D14-4F35-8953-9652106476A9','Administrator','admin','jUDDI.org','uddi-org:owningBusiness','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#owningBusiness',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:4064C064-6D14-4F35-8953-9652106476A9',0,'en','A pointer to a businessEntity that owns the tagged data.'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:4064C064-6D14-4F35-8953-9652106476A9',0,'en','This tModel indicates the businessEntity that published or owns the tagged tModel. Used with tModels to establish an "owned" relationship with a registered businessEntity.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:4064C064-6D14-4F35-8953-9652106476A9',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:4064C064-6D14-4F35-8953-9652106476A9',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:807A2C6A-EE22-470D-ADC7-E0424A337C03','Administrator','admin','jUDDI.org','uddi-org:relationships','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#Relationships',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:807A2C6A-EE22-470D-ADC7-E0424A337C03',0,'en','Starter set classifications of businessEntity relationships'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:807A2C6A-EE22-470D-ADC7-E0424A337C03',0,'en','This tModel is used to describe business relationships. Used in the publisher assertion messages.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:807A2C6A-EE22-470D-ADC7-E0424A337C03',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','relationship'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:327A56F0-3299-4461-BC23-5CD513E95C55','Administrator','admin','jUDDI.org','uddi-org:operators','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#Operators',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:327A56F0-3299-4461-BC23-5CD513E95C55',0,'en','Taxonomy for categorizing the businessEntity of an operator of a registry.'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:327A56F0-3299-4461-BC23-5CD513E95C55',0,'en','This checked value set is used to identify UDDI operators.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:327A56F0-3299-4461-BC23-5CD513E95C55',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:327A56F0-3299-4461-BC23-5CD513E95C55',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:E59AE320-77A5-11D5-B898-0004AC49CC1E','Administrator','admin','jUDDI.org','uddi-org:isReplacedBy','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#IsReplacedBy',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:E59AE320-77A5-11D5-B898-0004AC49CC1E',0,'en','An identifier system used to point (using UDDI keys) to the tModel (or businessEntity) that is the logical replacement for the one in which isReplacedBy is used'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:E59AE320-77A5-11D5-B898-0004AC49CC1E',0,'en','This is a checked value set.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:E59AE320-77A5-11D5-B898-0004AC49CC1E',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','identifier'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:E59AE320-77A5-11D5-B898-0004AC49CC1E',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','checked'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:8609C81E-EE1F-4D5A-B202-3EB13AD01823','Administrator','admin','jUDDI.org','dnb-com:D-U-N-S','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#D-U-N-S',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:8609C81E-EE1F-4D5A-B202-3EB13AD01823',0,'en','Dun&Bradstreet D-U-N-S� Number'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:8609C81E-EE1F-4D5A-B202-3EB13AD01823',0,'en','This tModel is used for the Dun&Bradstreet D-U-N-S� Number identifier.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:8609C81E-EE1F-4D5A-B202-3EB13AD01823',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','identifier'); + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:B1B1BAF5-2329-43E6-AE13-BA8E97195039','Administrator','admin','jUDDI.org','thomasregister-com:supplierID','http://www.uddi.org/taxonomies/UDDI_Taxonomy_tModels.htm#Thomas',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:B1B1BAF5-2329-43E6-AE13-BA8E97195039',0,'en','Thomas Registry Suppliers'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:B1B1BAF5-2329-43E6-AE13-BA8E97195039',0,'en','This tModel is used for the Thomas Register supplier identifier codes.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:B1B1BAF5-2329-43E6-AE13-BA8E97195039',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','identifier'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457','Administrator','admin','jUDDI.org','uddi-org:wsdl:types','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#wsdlTypes',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457',0,'en','WSDL Type Category System'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457',0,'en','The WSDL Entity Type tModel uses a number of UDDI entities to represent the various entities within a WSDL document.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','unchecked'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:6E090AFA-33E5-36EB-81B7-1CA18373F457',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','categorization'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824','Administrator','admin','jUDDI.org','uddi-org:xml:namespace','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#xmlNamespace',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824',0,'en','A category system used to indicate namespaces'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824',0,'en','A namespace provides necessary qualifying information about a technical concept or model. The XML Namespace tModel provides a mechanism to associate a namespace with a UDDI entity.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','unchecked'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:D01987D1-AB2E-3013-9BE2-2A66EB99D824',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','categorization'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:2EC65201-9109-3919-9BEC-C9DBEFCACCF6','Administrator','admin','jUDDI.org','uddi-org:xml:localName','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#xmlLocalName',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:2EC65201-9109-3919-9BEC-C9DBEFCACCF6',0,'en','A category system used to indicate XML local names'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:2EC65201-9109-3919-9BEC-C9DBEFCACCF6',0,'en','The XML Local Name tModel provides a mechanism to indicate the name attribute for the uddi:businessService.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:2EC65201-9109-3919-9BEC-C9DBEFCACCF6',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','unchecked'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:2EC65201-9109-3919-9BEC-C9DBEFCACCF6',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','categorization'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:082B0851-25D8-303C-B332-F24A6D53E38E','Administrator','admin','jUDDI.org','uddi-org:wsdl:portTypeReference','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#portTypeReference',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:082B0851-25D8-303C-B332-F24A6D53E38E',0,'en','A category system used to reference a wsdl:portType tModel'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:082B0851-25D8-303C-B332-F24A6D53E38E',0,'en','The WSDL portType Reference category system provides a mechanism to indicate that a UDDI entity has a relationship with a certain wsdl:portType tModel.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:082B0851-25D8-303C-B332-F24A6D53E38E',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','checked'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:082B0851-25D8-303C-B332-F24A6D53E38E',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','categorization'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:AA254698-93DE-3870-8DF3-A5C075D64A0E','Administrator','admin','jUDDI.org','uddi-org:protocol:soap','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#soap',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:AA254698-93DE-3870-8DF3-A5C075D64A0E',0,'en','A tModel that represents the SOAP 1.1 protocol'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:AA254698-93DE-3870-8DF3-A5C075D64A0E',0,'en','The SOAP Protocol tModel can be used to indicate that a Web service supports the SOAP 1.1 protocol.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:AA254698-93DE-3870-8DF3-A5C075D64A0E',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','protocol'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:6E10B91B-BABC-3442-B8FC-5A3C8FDE0794','Administrator','admin','jUDDI.org','uddi-org:protocol:http','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#http',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:6E10B91B-BABC-3442-B8FC-5A3C8FDE0794',0,'en','A tModel that represents the HTTP protocol'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:6E10B91B-BABC-3442-B8FC-5A3C8FDE0794',0,'en','The HTTP Protocol tModel can be used to indicate that a Web service supports the HTTP protocol.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:6E10B91B-BABC-3442-B8FC-5A3C8FDE0794',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','protocol'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:4DC74177-7806-34D9-AECD-33C57DC3A865','Administrator','admin','jUDDI.org','uddi-org:wsdl:categorization:protocol','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#protocol',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:4DC74177-7806-34D9-AECD-33C57DC3A865',0,'en','Category system used to describe the protocol supported by a wsdl:binding.'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:4DC74177-7806-34D9-AECD-33C57DC3A865',0,'en','The Protocol Categorization tModel provides a mechanism to capture this protocol information in the UDDI binding tModel.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:4DC74177-7806-34D9-AECD-33C57DC3A865',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:4DC74177-7806-34D9-AECD-33C57DC3A865',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','checked'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:E5C43936-86E4-37BF-8196-1D04B35C0099','Administrator','admin','jUDDI.org','uddi-org:wsdl:categorization:transport','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#transport',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:E5C43936-86E4-37BF-8196-1D04B35C0099',0,'en','Category system used to describe the transport supported by a wsdl:binding.'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:E5C43936-86E4-37BF-8196-1D04B35C0099',0,'en','The Transport Categorization tModel provides a mechanism to capture transport information in the UDDI binding tModel which allows a user to search for bindings that implement a specific transport protocol.'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:E5C43936-86E4-37BF-8196-1D04B35C0099',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','categorization'); + +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:E5C43936-86E4-37BF-8196-1D04B35C0099',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','uddi-org:types','checked'); + + +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:AD61DE98-4DB8-31B2-A299-A2373DC97212','Administrator','admin','jUDDI.org','uddi-org:wsdl:address','http://www.oasis-open.org/committees/uddi-spec/doc/tn/uddi-spec-tc-tn-wsdl-v2.htm#Address',CURDATE()); + +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:AD61DE98-4DB8-31B2-A299-A2373DC97212',0,'en','A tModel used to indicate the WSDL address option.'); + +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:AD61DE98-4DB8-31B2-A299-A2373DC97212',0,'en','The WSDL Address tModel provides A mechanism to indicate that the endpoint address should be obtained from a WSDL document.'); + +-- ** http transport ** +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:68DE9E80-AD09-469D-8A37-088422BFBC36','Administrator','admin','jUDDI.org','uddi-org:http','http://www.uddi.org/taxonomies/UDDI_CoreOther_tModels.htm#overHTTP',CURDATE()); +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:68DE9E80-AD09-469D-8A37-088422BFBC36',0,'en','An HTTP or web browser-based web service'); +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:68DE9E80-AD09-469D-8A37-088422BFBC36',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','tModelType','transport'); + +-- ** uddi inquiry ** +INSERT INTO TMODEL (TMODEL_KEY,AUTHORIZED_NAME,PUBLISHER_ID,OPERATOR,NAME,OVERVIEW_URL,LAST_UPDATE) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B','Administrator','admin','jUDDI.org','uddi-org:inquiry_v2','http://www.uddi.org/wsdl/inquire_v2.wsdl',CURDATE()); +INSERT INTO TMODEL_DESCR (TMODEL_KEY,TMODEL_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B',0,'en','UDDI Inquiry API Version 2 - Core Specification'); +INSERT INTO TMODEL_DOC_DESCR (TMODEL_KEY,TMODEL_DOC_DESCR_ID,LANG_CODE,DESCR) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B',0,'en','This tModel defines the inquiry API calls for interacting with a V2 UDDI node.'); +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B',0,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','specification'); +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B',1,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','xmlSpec'); +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B',2,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','soapSpec'); +INSERT INTO TMODEL_CATEGORY (TMODEL_KEY,CATEGORY_ID,TMODEL_KEY_REF,KEY_NAME,KEY_VALUE) +VALUES ('uuid:AC104DCC-D623-452F-88A7-F8ACD94D9B2B',3,'uuid:C1ACF26D-9672-4404-9D70-39B756E62AB4','types','wsdlSpec'); + +INSERT INTO PUBLISHER (PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN) +VALUES ('jboss','JBoss User','jboss@xxx','true','true'); + +INSERT INTO PUBLISHER (PUBLISHER_ID,PUBLISHER_NAME,EMAIL_ADDRESS,IS_ENABLED,IS_ADMIN) +VALUES ('jbosscts','JBoss User','jboss@xxx','true','true'); diff --git a/jaxr/src/main/resources/META-INF/ddl/juddi_drop_db.ddl b/jaxr/src/main/resources/META-INF/ddl/juddi_drop_db.ddl new file mode 100644 index 000000000000..0bc5a90bb8d1 --- /dev/null +++ b/jaxr/src/main/resources/META-INF/ddl/juddi_drop_db.ddl @@ -0,0 +1,31 @@ +DROP TABLE BUSINESS_DESCR; +DROP TABLE BUSINESS_CATEGORY; +DROP TABLE BUSINESS_IDENTIFIER; +DROP TABLE BUSINESS_NAME; +DROP TABLE DISCOVERY_URL; +DROP TABLE ADDRESS_LINE; +DROP TABLE ADDRESS; +DROP TABLE PHONE; +DROP TABLE EMAIL; +DROP TABLE CONTACT_DESCR; +DROP TABLE CONTACT; +DROP TABLE SERVICE_DESCR; +DROP TABLE SERVICE_CATEGORY; +DROP TABLE SERVICE_NAME; +DROP TABLE BINDING_DESCR; +DROP TABLE BINDING_CATEGORY; +DROP TABLE INSTANCE_DETAILS_DESCR; +DROP TABLE INSTANCE_DETAILS_DOC_DESCR; +DROP TABLE TMODEL_CATEGORY; +DROP TABLE TMODEL_DESCR; +DROP TABLE TMODEL_DOC_DESCR; +DROP TABLE TMODEL_IDENTIFIER; +DROP TABLE TMODEL_INSTANCE_INFO_DESCR; +DROP TABLE TMODEL_INSTANCE_INFO; +DROP TABLE PUBLISHER_ASSERTION; +DROP TABLE TMODEL; +DROP TABLE BINDING_TEMPLATE; +DROP TABLE BUSINESS_SERVICE; +DROP TABLE BUSINESS_ENTITY; +DROP TABLE PUBLISHER; +DROP TABLE AUTH_TOKEN;