Examples of newQuery()


Examples of javax.jdo.PersistenceManager.newQuery()

       
          try {
            for (String user  : listIdUsers) {
            /// query
          Query query = pm.newQuery(DaoCommunityAccount2.class);
            query.setFilter("idUser == nameParam");
            query.setOrdering("name desc");
            query.setOrdering("dateCommunityAccount desc");
            query.setRange(0, range); //only 6 results
            //query.setOrdering("hireDate desc");
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

       
          try {
            for (String user  : listIdUsers) {
            /// query
          Query query = pm.newQuery(DaoCommunityAccount2.class);
            query.setFilter("idUser == nameParam");
            query.setOrdering("name desc");
            query.setOrdering("dateCommunityAccount desc");
            query.setRange(0, 6); //only 6 results
            //query.setOrdering("hireDate desc");
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

             PersistenceManager pm = null;
            pm = PMF.get().getPersistenceManager();
           
                try {
              Query query = pm.newQuery(DaoCommunityClan2.class);
                query.setFilter("idClan == nameParam");
                //query.setOrdering("name desc");
                query.setOrdering("dateCommunityClan desc");
                query.setRange(0, 30); //only 30 results
                //query.setOrdering("hireDate desc");
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

           
             PersistenceManager pm = null;
            pm = PMF.get().getPersistenceManager();
           
                try {
              Query query = pm.newQuery(DaoRecruistation.class);
                //query.setFilter("idClan == nameParam");
                //query.setOrdering("name desc");
                query.setOrdering("date desc");
                query.setRange(0, Long.valueOf(nbSave)); //only nbJours results
                //query.setOrdering("hireDate desc");
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

     
      PersistenceManager pm =null;
      pm = PMF.get().getPersistenceManager();
      try {
        //some cleaning in stats
        Query query = pm.newQuery(DaoCommunityAccount2.class);
          query.setOrdering("dateCommunityAccount asc");
          query.setRange(0, nb); //only nb results
          List<DaoCommunityAccount2> resultsTmp = (List<DaoCommunityAccount2>) query.execute();
         
          try {
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

            log.log(Level.SEVERE, "Exception while deleting daoCommunityAccount", e);
              pm.currentTransaction().rollback();
            }
         
          //DaoDataCommunityAccountStatsVehicules - On peut tout supprimer
          query = pm.newQuery(DaoDataCommunityAccountStatsVehicules.class);
          query.setRange(0, nb); //only nb results
          List<DaoDataCommunityAccountStatsVehicules> resultsVeh = (List<DaoDataCommunityAccountStatsVehicules>) query.execute();
         
          try {
             if (!resultsVeh.isEmpty()) {
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

              java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyyMMdd hh:mm");
             
                try {
                 
                  /// query
                Query query = pm.newQuery(DaoCommunityAccount2.class);
                  query.setFilter("idUser == nameParam");
                  query.setOrdering("name desc");
                  query.setOrdering("dateCommunityAccount desc");
                  query.setRange(0, 2); //only 2 results
                  //query.setOrdering("hireDate desc");
View Full Code Here

Examples of javax.jdo.PersistenceManager.newQuery()

    //on requête le dernier <DaoCommunityClan2> et on le compare avec le courant (pas encore sauvé)
    //pour constituer une liste des joueurs added et une autre deleted que l'on sauve dans DaoCommunityClan2 courant
    PersistenceManager pm = null;
    pm = PMF.get().getPersistenceManager();
        try {
      Query query = pm.newQuery(DaoCommunityClan2.class);
        query.setFilter("idClan == nameParam");
        //query.setOrdering("name desc");
        query.setOrdering("dateCommunityClan desc"); //recup de la  derniere compo du CLAN  (J-1)
        query.setRange(0, 1); //only 1 results
        //query.setOrdering("hireDate desc");
View Full Code Here

Examples of org.apache.gora.mock.store.MockDataStore.newQuery()

  private Configuration conf = new Configuration();
 
  private List<PartitionQuery<String, MockPersistent>>
    getPartitions() throws IOException {
    MockDataStore store = MockDataStore.get();
    MockQuery query = store.newQuery();

    List<PartitionQuery<String, MockPersistent>> partitions =
      store.getPartitions(query);
    return partitions;
  }
View Full Code Here

Examples of org.apache.jetspeed.components.persistence.store.PersistenceStore.newQuery()

            PersistenceStore store = getPersistenceStore();
            prepareTransaction(store);

            Filter filter = store.newFilter();
            filter.addEqualTo("id", entityId.toString());
            Object q = store.newQuery(PortletEntityImpl.class, filter);
            MutablePortletEntity portletEntity = (MutablePortletEntity) store.getObjectByQuery(q);
            if (portletEntity == null)
            {
                return null;
            }
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.