Package com.zosatapo.commons.store

Examples of com.zosatapo.commons.store.Store


      return null;
    }
    String connDriver = props.getProperty(prefix + "." + Store.STORE_DRIVER);
    String connUSR = props.getProperty(prefix + "." + Store.STORE_USERNAME);
    String connPWD = props.getProperty(prefix + "." + Store.STORE_PASSWORD);
    return new Store(connType, connURL, connUSR, connPWD, connDriver);
  }
View Full Code Here


    super();
  }
 
  public  UserDatabase  newUserDatabase(Hashtable env)throws WorkflowException
  {
    Store store=(Store)env.get(Constants.WORKFLOW_STORE_USER)
    SpiUserDatabase gudb=DatabaseRegistry.getUserDatabase(store.getDriverClass());
    try
    {
      SpiUserDatabase gudb_clone=(SpiUserDatabase)gudb.clone();
      gudb_clone.setStore(store);     
      return new UserDatabaseImpl(gudb_clone);
View Full Code Here

    }
  }
 
  public  CaseDatabase  newCaseDatabase(Hashtable env)throws WorkflowException
  {
    Store store=(Store)env.get(Constants.WORKFLOW_STORE_CASE);
    SpiCaseDatabase gcdb=DatabaseRegistry.getCaseDatabase(store.getDriverClass());

    try
    {
      SpiCaseDatabase gcdb_clone=(SpiCaseDatabase)gcdb.clone();
      gcdb_clone.setStore(store)
View Full Code Here

    this.xpf = xpf;
  }

  public WorkflowPackage parse(Hashtable env) throws XPDLParserException,IOException
  {
    Store store = (Store) env.get(Constants.WORKFLOW_STORE_XPDL);
    String storeType = store.getType();
    if (Store.TYPE_XML.equals(storeType))
    {
      return parse(new File(store.getURL()));
    }
    else
    {
      return XPDLParserJDBC.parseJDBC(this, store, (String) env.get(Constants.WORKFLOW_PACKAGE_ID));
    }
View Full Code Here

          env.put(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_FACTORY_STORE, storeFactoryClass);
        }
        DatabaseFactory dbFactory = DatabaseFactory.newInstance(env);
        env.clear();
       
        Store userStore = context.findStore(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_STORE_USER);
        if (userStore == null)
        {
          userStore = WorkflowProperties.getUserStore();
        }
        env.put(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_STORE_USER, userStore);
        userDatabase = dbFactory.newUserDatabase(env);
        env.clear();
        userDatabase.setWorkflowService(context);
        Store caseStore = context.findStore(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_STORE_CASE);
        if (caseStore == null)
        {
          caseStore = WorkflowProperties.getCaseStore();
        }
        env.put(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_STORE_CASE, caseStore);
View Full Code Here

  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);
     
      userDatabase.start();
     
View Full Code Here

        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);
       
        userDatabase.start();
      }
      catch (Throwable ex)
View Full Code Here

    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String strSQL = null;
View Full Code Here

    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 strSQL =
View Full Code Here

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

      if (canRelease)
View Full Code Here

TOP

Related Classes of com.zosatapo.commons.store.Store

Copyright © 2018 www.massapicom. 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.