Package net.sf.hibernate

Examples of net.sf.hibernate.Session.beginTransaction()


    }

    private void doPersistAction(Object obj, int operation) throws YPersistenceException {
        try {
            Session session = _factory.openSession();
            Transaction tx = session.beginTransaction();
            if (UPDATE_OPERATION == operation) {
                session.update(obj);
            } else if (DELETE_OPERATION == operation) {
                session.delete(obj);
            } else if (SAVE_OPERATION == operation) {
View Full Code Here


    private MetaRepository metaRepository;

    public final ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception {
        Session session = ThreadSession.get();
        Transaction transaction = session.beginTransaction();
        try {
            ActionForward forward = doExecute(mapping, form, request, response);
            Object object = request.getAttribute(TARGET_OBJECT);
            if (object != null) {
                beforeObjectCommit(object, session, mapping, form, request, response);
View Full Code Here

      net.sf.hibernate.Transaction tx = null;

      try
      {
        session = hibernateSessionFactory.openSession();
        tx = session.beginTransaction();

        if(getIsAccessApproved(name, principal))
        {
          WorkflowFacade wf = new WorkflowFacade(principal, name, actionId, inputs, hibernateSessionFactory, session);
          workflowVO = wf.createWorkflowVO();
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();
     
      WorkflowFacade wf = new WorkflowFacade(userPrincipal, hibernateSessionFactory, session);
      final List<WorkflowVO> allWorkflows = wf.getDeclaredWorkflows();
     
      for(final Iterator<WorkflowVO> i = allWorkflows.iterator(); i.hasNext(); )
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, hibernateSessionFactory, session);
      list = wf.getActiveWorkflows(maxNumberOfWorkflows);
     
      session.flush();
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, hibernateSessionFactory, session);
      list = wf.getMyActiveWorkflows(userPrincipal, maxNumberOfWorkflows);
     
      session.flush();
View Full Code Here

    try
    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(principal, workflowId, hibernateSessionFactory, session);
      wf.doAction(actionId, inputs);

      session.flush();
View Full Code Here

     
    try
    {
      session = hibernateSessionFactory.openSession();

      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(principal, workflowId, hibernateSessionFactory, session);

      workflowVO = wf.createWorkflowVO();
     
View Full Code Here

    net.sf.hibernate.Transaction tx = null;

    try
    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();

      WorkflowFacade wf = new WorkflowFacade(userPrincipal, workflowId, hibernateSessionFactory, session);
      propertySet = wf.getPropertySet();
   
      session.flush();
View Full Code Here

    net.sf.hibernate.Transaction tx = null;

    try
    {
      session = hibernateSessionFactory.openSession();
      tx = session.beginTransaction();


      PropertySet propertySet = getPropertySet(userPrincipal, workflowId, session);
      for (Iterator keys = propertySet.getKeys().iterator(); keys.hasNext();)
      {
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.