public static void save ( ) throws EFapsException { try { Context . TRANSMANAG . commit ( ) ; Context . TRANSMANAG . begin ( ) ; final Context context = Context . getThreadContext ( ) ; context . connectionResource = null ; context . setTransaction ( Context . TRANSMANAG . getTransaction ( ) ) ; } catch ( final SecurityException e ) { throw new EFapsException ( Context . class , "save.SecurityException" , e ) ; } catch ( final IllegalStateException e ) { throw new EFapsException ( Context . class , "save.IllegalStateException" , e ) ; } catch ( final RollbackException e ) { throw new EFapsException ( Context . class , "save.RollbackException" , e ) ; } catch ( final HeuristicMixedException e ) { throw new EFapsException ( Context . class , "save.HeuristicMixedException" , e ) ; } catch ( final HeuristicRollbackException e ) { throw new EFapsException ( Context . class , "save.HeuristicRollbackException" , e ) ; } catch ( final SystemException e ) { throw new EFapsException ( Context . class , "save.SystemException" , e ) ; } catch ( final NotSupportedException e ) { throw new EFapsException ( Context . class , "save.NotSupportedException" , e ) ; } }
Save the Context by committing and beginning a new Transaction .