Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/POurlFormServicePeer.java

Diff revisions: vs.
  @@ -1,31 +1,31 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.forms.server;
3 -
4 - import org.litesoft.orsup.base.*;
5 - import org.litesoft.orsup.transact.*;
6 -
7 - public class POurlFormServicePeer extends POFormServicePeer {
8 - public POurlFormServicePeer( NonTransactionalFinder pFinder ) {
9 - super( pFinder );
10 - }
11 -
12 - /**
13 - * pNewRootObjectKey - For this type it is actually a PO URL
14 - *
15 - * @return true if succeeded
16 - */
17 - protected boolean LLloadExistingRootObject( String pNewRootObjectKey ) {
18 - PersistentObject zPO = null;
19 - RuntimeException zProblem = null;
20 - try {
21 - Transaction zTransaction = mFinder.createTransaction();
22 -
23 - PersistentObjectURL url = zTransaction.createPersistentObjectURLfrom( pNewRootObjectKey );
24 - zPO = zTransaction.findOne( url );
25 - }
26 - catch ( RuntimeException e ) {
27 - zProblem = e;
28 - }
29 - return LLsharedLoadingExistingRootObject( zPO, zProblem );
30 - }
31 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.forms.server;
3 +
4 + import org.litesoft.orsup.base.*;
5 + import org.litesoft.orsup.transact.*;
6 +
7 + public class POurlFormServicePeer extends POFormServicePeer {
8 + public POurlFormServicePeer( NonTransactionalFinder pFinder ) {
9 + super( pFinder );
10 + }
11 +
12 + /**
13 + * pNewRootObjectKey - For this type it is actually a PO URL
14 + *
15 + * @return true if succeeded
16 + */
17 + protected boolean LLloadExistingRootObject( String pNewRootObjectKey ) {
18 + PersistentObject zPO = null;
19 + RuntimeException zProblem = null;
20 + try {
21 + Transaction zTransaction = mFinder.createTransaction();
22 +
23 + PersistentObjectURL url = zTransaction.createPersistentObjectURLfrom( pNewRootObjectKey );
24 + zPO = zTransaction.findOne( url );
25 + }
26 + catch ( RuntimeException e ) {
27 + zProblem = e;
28 + }
29 + return LLsharedLoadingExistingRootObject( zPO, zProblem );
30 + }
31 + }