Examples of find()


Examples of es.udc.tfg.journals.model.user.UserDao.find()

      System.out.println("User with userId '" + userId
          + "' has been created");
      System.out.println(userProfile);

      // Find user.
      userProfile = userProfileDao.find(userId);
      System.out.println("User with userId '" + userId
          + "' has been retrieved");
      System.out.println(userProfile);

      // ... proceed in the same way for other entities / methods / use
View Full Code Here

Examples of games.stendhal.common.parser.WordList.find()

   */
  @Test
  public final void testPrepositions() {
    final WordList wl = WordList.getInstance();

    WordEntry w = wl.find("with");
    assertNotNull(w);
    assertTrue(w.getType().isPreposition());
    assertEquals(ExpressionType.PREPOSITION, w.getTypeString());

    w = wl.find("on");
View Full Code Here

Examples of hidb2.kern.AttributedDescription.find()

   */
  public static void BrowseCard(Shell parent, Folder f)
    {
    AttributedDescription descr = ((FolderDescription) f.getDescription()).getCardDescription();

    Attribut a1 = descr.find(AttrType.T_Image);
    if (a1 != null)
      {
      int attrIdx = descr.getAttributList().indexOf(a1);

      List<Card> lstCard = f.getLstCard();
View Full Code Here

Examples of hidb2.kern.DataStore.find()

                  FolderDescription fd = null;
                  CardDescription cd = null;
                  boolean isCard = false;

                  // Retrieve FolderDescription
                  AttributedDescription ad = das.find(fsr.getTableName());

                  if (ad instanceof CardDescription)
                    {
                    cd = (CardDescription) ad;
                    fd = cd.getParent();
View Full Code Here

Examples of hudson.search.SearchIndex.find()

        // make and index with sib
        SearchIndex index = sib.make();
       
        // now make sure we can fetch item1 from the index
        List<SearchItem> result = new ArrayList<SearchItem>();
        index.find(displayName1, result);
        Assert.assertEquals(1, result.size());
        SearchItem actual = result.get(0);
        Assert.assertEquals(actual.getSearchName(), item1.getDisplayName());
        Assert.assertEquals(actual.getSearchUrl(), item1.getSearchUrl());
View Full Code Here

Examples of in.partake.model.dao.access.IConfigurationItemAccess.find()

        new DBAccess<Void>() {
            @Override
            protected Void doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException {
                IConfigurationItemAccess dao = daos.getConfiguraitonItemAccess();

                toppath = getValue(dao.find(con, ConfigurationKeyConstants.TOPPATH));
                daemonEnabled = getValue(dao.find(con, ConfigurationKeyConstants.DAEMON_ENABLED));
                twitterBotId = getValue(dao.find(con, ConfigurationKeyConstants.TWITTER_BOT_ID));
                luceneIndexDir = getValue(dao.find(con, ConfigurationKeyConstants.LUCENE_INDEX_DIX));
                googleAnalyticsId = getValue(dao.find(con, ConfigurationKeyConstants.GOOGLE_ANALYTICS_ID));
                twitter4jConsumerKey = getValue(dao.find(con, ConfigurationKeyConstants.TWITTER4J_CONSUMER_KEY));
View Full Code Here

Examples of in.partake.model.dao.access.IEventAccess.find()

    @Override
    protected Void doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException {
        IEventAccess dao = daos.getEventAccess();

        Event event = dao.find(con, eventId);
        if (event == null)
            throw new PartakeException(UserErrorCode.INVALID_EVENT_ID);

        if (!EventRemovePermission.check(event, user))
            throw new PartakeException(UserErrorCode.FORBIDDEN_EVENT_EDIT);
View Full Code Here

Examples of in.partake.model.dao.access.IEventFeedAccess.find()

    }

    @Override
    protected InputStream doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException {
        IEventFeedAccess feedAccess = daos.getEventFeedAccess();
        EventFeed linkage = feedAccess.find(con, feedId);
        if (linkage == null)
            return null;

        event = EventDAOFacade.getEventEx(con, daos, linkage.getEventId());
        if (event == null)
View Full Code Here

Examples of in.partake.model.dao.access.IUserAccess.find()

    }

    @Override
    protected User doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException {
        IUserAccess access = daos.getUserAccess();
        User targetUser = access.find(con, targetUserId);
        if (targetUser == null) {
            Logger.info("No user has specified ID: " + targetUserId);
            return null;
        }
View Full Code Here

Examples of info.archinnov.achilles.internal.context.facade.PersistenceManagerOperations.find()

        Validator.validateNotNull(primaryKey, "Entity primaryKey should not be null for find by id");
        Validator.validateTrue(entityMetaMap.containsKey(entityClass), "The entity class '%s' is not managed by Achilles", entityClass.getCanonicalName());
        Validator.validateTrue(entityMetaMap.containsKey(entityClass), "The entity class '%s' is not managed by Achilles", entityClass.getCanonicalName());
        PersistenceManagerOperations context = initPersistenceContext(entityClass, primaryKey, options);
        entityValidator.validatePrimaryKey(context.getIdMeta(), primaryKey);
        return context.find(entityClass);
    }

    protected <T> AchillesFuture<T> asyncGetProxy(final Class<T> entityClass, final Object primaryKey, Options options) {
        Validator.validateNotNull(entityClass, "Entity class should not be null for get reference");
        Validator.validateNotNull(primaryKey, "Entity primaryKey should not be null for get reference");
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.