Package de.iritgo.aktera.persist

Examples of de.iritgo.aktera.persist.Persistent.find()


      {
        persistent.setField(properties.getProperty("persistentFilterAttributeName"), properties
                .get("persistentFilterAttribute"));
      }

      if (! persistent.find())
      {
        System.out.println("No Object found:" + persistent);

        return;
      }
View Full Code Here


    Persistent listHeader = getFactory().create("keel.KeelListHeader");

    listHeader.setField("ListName", listName);

    if (! listHeader.find())
    {
      throw new PersistenceException("There is no list name of '" + listName
              + "' defined in KeelListHeader, as specified for field   '" + fieldName + "' in object '"
              + getName() + "'.");
    }
View Full Code Here

      Persistent persistent = persistentDescriptor.getPersistent(persistentName);
      Persistent search = persistentManager.create(persistent.getName());

      search.setField(fieldName, value);

      if (search.find())
      {
        return true;
      }
      else
      {
View Full Code Here

          persistent = persistentManager.create(persistentConfig.get(0).getAttribute("name"));

          persistent.setField(persistentConfig.get(0).getAttribute("key"), NumberTools.toIntInstance(ids[i],
                  - 1));

          persistent.find();
        }

        ValidationResult result = new ValidationResult();

        if (handler.canDeletePersistent(req, ids[i], persistent, NumberTools.toBool(req
View Full Code Here

        pf = (PersistentFactory) getService(PersistentFactory.ROLE, pf1.getSecurity());
        myUser = pf.create("keel.user");
        myUser.setBypassAuthorizationManager(bypassAm);
        myUser.setField("name", loginName);

        if (! myUser.find())
        {
          log.debug("Bad login name '" + loginName + "' - no such user");
          throw new FailedLoginException("Bad login name");
        }
View Full Code Here

        if (log.isDebugEnabled())
        {
          log.debug("Looking for " + serviceSecurity.toString());
        }

        if (serviceSecurity.find())
        {
          log.debug("Found componentsecurity record, checking operation " + operationCode);

          if (operationCode.equals("*"))
          {
 
View Full Code Here

        if (log.isDebugEnabled())
        {
          log.debug("Looking for " + serviceSecurity.toString());
        }

        if (serviceSecurity.find())
        {
          if (operationCode.equals("*"))
          {
            return true;
          }
View Full Code Here

                      PersistentFactory.ROLE, req.getDomain());

              Persistent preferences = persistentManager.create("aktera.Preferences");

              preferences.setField("userId", new Integer(userEnv.getUid()));
              preferences.find();
              userEnv.setAttribute("sessionPreferences", preferences.getBean());

              Persistent party = persistentManager.create("aktera.Party");

              party.setField("userId", new Integer(userEnv.getUid()));
View Full Code Here

              Persistent party = persistentManager.create("aktera.Party");

              party.setField("userId", new Integer(userEnv.getUid()));

              if (party.find())
              {
                Persistent address = persistentManager.create("aktera.Address");

                address.setField("partyId", party.getField("partyId"));
View Full Code Here

              {
                Persistent address = persistentManager.create("aktera.Address");

                address.setField("partyId", party.getField("partyId"));

                if (address.find())
                {
                  String firstName = address.getFieldString("firstName");
                  String lastName = address.getFieldString("lastName");
                  String displayName = (firstName != null ? firstName + " " : "") + lastName;
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.