コード例 #1
0
 public void startTx(String reason) {
   times++;
   Object pm = null;
   if (getEM() != null) {
     pm = getEM().getActualEM();
   }
   Err.pr(
       JDONote.RELOAD_PM_KODO_BUG,
       reason + " in " + this + " with pm: " + pm + " times " + times + " isOnTxn " + isOnTx());
   super.startTx(reason);
 }
コード例 #2
0
 /**
  * Get the connection properties depending on which enumIdWombat are connecting to. Also there are
  * two types of connections. One, the server, is to the actual database. The other type of
  * connection is a client connection, which connects to the server. From the client's point of
  * view this server is know as a host. (The host serves the guest/client). If
  * !fromJDOConnectionServer then we are currently at a client. There is only ever one server for a
  * client, so the logic in here sets the host property in this case.
  *
  * @param connectionInfo
  */
 public CayenneWombatDataStore(CayenneSecureConnectionInfo connectionInfo) {
   Err.pr("Creating a CayenneWombatDataStore");
   boolean client = connectionInfo.getORMType() == ORMTypeEnum.CAYENNE_CLIENT;
   // boolean client = true;
   super.setClasses(CayenneWombatData.getInstance(client).getClasses());
   Assert.isTrue(connectionInfo.getORMType().isCayenne());
   setEstimatedConnectDuration(connectionInfo.getEstimatedConnectDuration());
   setEstimatedLookupDataDuration(connectionInfo.getEstimatedLoadLookupDataDuration());
   setErrorThrower(Session.getErrorThrower());
   setConnectionConfigString(connectionInfo.getConfigStringName());
   setCayenneORMType(connectionInfo.getORMType());
   setDomainQueries(new CayenneWombatDomainQueries(client));
   setName(connectionInfo.getName());
 }
コード例 #3
0
 public void startTx() {
   if (JDONote.RELOAD_PM_KODO_BUG.isVisible()) {
     Err.pr("Would be nice to provide a reason when JDONote.RELOAD_PM_KODO_BUG.isVisible()");
   }
   super.startTx();
 }
コード例 #4
0
 protected void initLookups() {
   // Err.stack();
   super.initLookups();
 }