Examples of SchemaContext


Examples of info.archinnov.achilles.internal.context.SchemaContext

        verify(boostrapper).buildMetaDatas(configContext, candidateClasses);
        verify(boostrapper).validateOrCreateTables(contextCaptor.capture());
        verify(boostrapper).addInterceptorsToEntityMetas(interceptors, entityMetaMap);
        verify(proxyClassFactory).createProxyClass(CompleteBean.class, configContext);

        SchemaContext schemaContext = contextCaptor.getValue();

        assertThat(Whitebox.getInternalState(schemaContext, Cluster.class)).isSameAs(cluster);
        assertThat(Whitebox.getInternalState(schemaContext, Session.class)).isSameAs(session);
        assertThat(Whitebox.getInternalState(schemaContext, "entityMetaMap")).isSameAs(entityMetaMap);
        assertThat(Whitebox.getInternalState(schemaContext, "keyspaceName")).isEqualTo("keyspace");
View Full Code Here

Examples of info.archinnov.achilles.internal.context.SchemaContext

        ParsingResult parsingResult = parseEntities(candidateClasses);
        this.entityMetaMap = parsingResult.getMetaMap();

        bootstrapper.addInterceptorsToEntityMetas(interceptors, parsingResult.getMetaMap());

        SchemaContext schemaContext = new SchemaContext(configContext, session, keyspaceName, cluster, parsingResult);
        bootstrapper.validateOrCreateTables(schemaContext);

        daoContext = bootstrapper.buildDaoContext(session, parsingResult, configContext);
        contextFactory = new PersistenceContextFactory(daoContext, configContext, parsingResult.getMetaMap());
View Full Code Here

Examples of org.exolab.castor.xml.schema.SchemaContext

        if (parser == null) {
            fail("Unable to create SAX parser.");
        }

        SchemaContext schemaContext = new SchemaContextImpl();
        SchemaUnmarshaller schemaUnmarshaller = null;
        try {
            schemaUnmarshaller = new SchemaUnmarshaller(schemaContext);
        } catch (XMLException e) {
            fail(e.getMessage());
View Full Code Here

Examples of org.exolab.castor.xml.schema.SchemaContext

            }
            if (parser == null) {
                throw new BuildException("Unable to create SAX parser.");
            }

            SchemaContext schemaContext = new SchemaContextImpl();
            SchemaUnmarshaller schemaUnmarshaller = null;
            try {
                schemaUnmarshaller = new SchemaUnmarshaller(schemaContext);
            } catch (XMLException e) {
                throw new BuildException("Unable to create schema unmarshaller.", e);
View Full Code Here

Examples of org.exolab.castor.xml.schema.SchemaContext

        if (parser == null) {
            _dialog.notify("fatal error: unable to create SAX parser.");
            return;
        }

        SchemaContext schemaContext = new SchemaContextImpl();
        SchemaUnmarshaller schemaUnmarshaller = null;
        try {
           schemaUnmarshaller = new SchemaUnmarshaller(schemaContext);
        } catch (XMLException e) {
            //--The default constructor cannot throw exception so this should never happen
View Full Code Here

Examples of org.huihoo.workflow.store.SchemaContext

          caseStore = WorkflowProperties.getCaseStore();
        }
        env.put(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_STORE_CASE, caseStore);
        caseDatabase = dbFactory.newCaseDatabase(env);
        caseDatabase.setWorkflowService(context);
        SchemaContext schemaContext = new SchemaContext(schemaConextBase);
        if (userDatabase.getSchemaContext() == null)
        {
          userDatabase.setSchemaContext(schemaContext);
        }
        if (caseDatabase.getSchemaContext() == null)
View Full Code Here

Examples of org.huihoo.workflow.store.SchemaContext

{
  public static void main(String[] args)
  {
    try
    {
      SchemaContext schemaContext=new SchemaContext("D:\\project\\org.huihoo.workflow\\conf\\org.huihoo.workflow-schema.properties");
      Store storeConfig=new Store("DriverManager","dbc:oracle:thin:@zosatapo:1521:org.huihoo.workflow","org.huihoo.workflow","org.huihoo.workflow","oracle.jdbc.driver.OracleDriver");
      //SpiUserDatabaseImpl userDatabase=new SpiUserDatabaseImpl(schemaContext,storeConfig);
      SpiUserDatabase userDatabase=DatabaseRegistry.getUserDatabase(storeConfig.getDriverClass());
      userDatabase.setSchemaContext(schemaContext);
      userDatabase.setStore(storeConfig);
View Full Code Here

Examples of org.huihoo.workflow.store.SchemaContext

    {
      try
      {
        userDatabase = (SpiUserDatabase) gudb.clone();
       
        SchemaContext schemaContext = new SchemaContext(WorkflowProperties.getSchemaContextFile());
        userDatabase.setSchemaContext(schemaContext);
       
        Store tmpStore=(this.store==null?WorkflowProperties.getUserStore():this.store);
        userDatabase.setStore(tmpStore);
       
View Full Code Here

Examples of org.huihoo.workflow.store.SchemaContext

    PreparedStatement pstmt = null;
    try
    {
     
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();

      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_DATAFIELD)
          + "(vc_packageid,vc_processid,vc_caseid,vc_uuid,vc_type,vc_value) "
          + "VALUES(?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, packageId);
      pstmt.setString(2, processId);
View Full Code Here

Examples of org.huihoo.workflow.store.SchemaContext

  {
    PreparedStatement pstmt = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
       

      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
      String paramId = parameter.getUUID();
      String strSQL =
        "UPDATE "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_DATAFIELD)
          + " "
          + "SET      vc_value=? "
          + "WHERE    vc_packageId='"
          + packageId
          + "' "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.