//----------------------------BEGIN LICENSE----------------------------
/*
* Willow : the Open Source WorkFlow Project
* Distributable under GNU LGPL license by gun.org
*
* Copyright (C) 2004-2010 huihoo.org
* Copyright (C) 2004-2010 ZosaTapo <dertyang@hotmail.com>
*
* ====================================================================
* Project Homepage : http://www.huihoo.org/willow
* Source Forge : http://sourceforge.net/projects/huihoo
* Mailing list : willow@lists.sourceforge.net
*/
//----------------------------END LICENSE-----------------------------
package org.huihoo.workflow.impl.xpdl.parser;
import java.sql.Connection;
import org.huihoo.workflow.xpdl.WorkflowPackage;
import org.huihoo.workflow.xpdl.parser.XPDLParser;
import org.huihoo.workflow.xpdl.parser.XPDLParserException;
import com.zosatapo.commons.store.ConnUtils;
import com.zosatapo.commons.store.Store;
/**
* @author zosatapo
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class XPDLParserJDBC
{
public static WorkflowPackage parseJDBC(XPDLParser parser,Store store,String packageID)
throws XPDLParserException
{
WorkflowPackage workflowPackage=null;
Connection conn=null;
try
{
conn=ConnUtils.getConnection(store);
ConnUtils.cleanupNoThrow(conn);
}
catch(Exception ex)
{
ConnUtils.cleanupNoThrow(conn);
throw new XPDLParserException(ex);
}
return workflowPackage;
}
}