Examples of SelectionCriteria


Examples of org.dmlite.model.selection.SelectionCriteria

   * @return selected links
   */
  public Links getRecentlyCreatedLinks(Date beforeRecentDate) {
    Links recentlyCreatedLinks = null;
    try {
      SelectionCriteria criteria = SelectionCriteria
          .defineGreaterThanCriteria("creationDate", beforeRecentDate);
      recentlyCreatedLinks = (Links) getEntities(criteria);
    } catch (SelectionException e) {
      log.error("Error in Links.getRecentlyCreatedLinks: "
          + e.getMessage());
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

   * @return selected links
   */
  public Links getRecentlyCreatedLinks(EasyDate beforeRecentEasyDate) {
    Links recentlyCreatedLinks = null;
    try {
      SelectionCriteria criteria = SelectionCriteria
          .defineGreaterThanCriteria("creationDate",
              beforeRecentEasyDate.getDate());
      recentlyCreatedLinks = (Links) getEntities(criteria);
    } catch (SelectionException e) {
      log.error("Error in Links.getRecentlyCreatedLinks: "
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

              || (i < categorieParticipante.getPlaqueGeleMin()))
          {

            infosSaisonCriteria = null;

            final SelectionCriteria criteria = SelectionCriteria
                .defineEqualCriteria("plaqueUnique", Integer
                    .toString(i));

            infosSaisonCriteria = (InfosSaison) saison
                .getInfosSaison().getInfoSaisonOfCategorie(
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

   * @return selected links
   */
  public Links getKeywordLinks(String keyword) {
    Links keywordLinks = null;
    try {
      SelectionCriteria criteria = SelectionCriteria
          .defineContainCriteria("description", keyword);
      keywordLinks = (Links) getEntities(criteria);
    } catch (SelectionException e) {
      log.error("Error in Links.getKeywordLinks: " + e.getMessage());
    }
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

   * @return selected links
   */
  public Links getSomeKeywordLinks(String[] keywords) {
    Links someKeywordLinks = null;
    try {
      SelectionCriteria criteria = SelectionCriteria
          .defineContainSomeCriteria("description", keywords);
      someKeywordLinks = (Links) getEntities(criteria);
    } catch (SelectionException e) {
      log.error("Error in Links.getSomeKeywordLinks: " + e.getMessage());
    }
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

   * @return selected links
   */
  public Links getAllKeywordLinks(String[] keywords) {
    Links allKeywordLinks = null;
    try {
      SelectionCriteria criteria = SelectionCriteria
          .defineContainAllCriteria("description", keywords);
      allKeywordLinks = (Links) getEntities(criteria);
    } catch (SelectionException e) {
      log.error("Error in Links.getAllKeywordLinks: " + e.getMessage());
    }
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

  {
    Validate.argNotNull(code, "code");
    Validate.argNotNull(sexe, "sexe");
    Validate.argNotNull(discipline, "discipline");

    final SelectionCriteria criteriaCode = SelectionCriteria.defineEqualCriteria(
        "codeCategorie", code);
    final SelectionCriteria criteriaSexe = SelectionCriteria.defineEqualCriteria(
        "sexe", sexe);
    final SelectionCriteria criteriaDiscipline = SelectionCriteria
        .defineEqualCriteria("discipline", discipline);

    IEntities entities;
    try
    {
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

  public InfosSaison getInfoSaisonOfCategorie(final Categorie categorie)
      throws SelectionException
  {

    final SelectionCriteria saisonCriteria = SelectionCriteria
        .defineEqualCriteria("saison", this.saison);
    final InfosSaison infosSaisonSaison = (InfosSaison) this
        .getEntities(saisonCriteria);

    final SelectionCriteria categorieCriteria = SelectionCriteria
        .defineEqualCriteria("categorie", categorie);
    final InfosSaison infosSaisonCategorie = (InfosSaison) infosSaisonSaison
        .getEntities(categorieCriteria);

    return infosSaisonCategorie;
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

  public InfosSaison getInfoSaisonOfPersonne(final Personne personne)
      throws SelectionException
  {

    final SelectionCriteria saisonCriteria = SelectionCriteria
        .defineEqualCriteria("saison", this.saison);
    final InfosSaison infosSaisonSaison = (InfosSaison) this
        .getEntities(saisonCriteria);

    final SelectionCriteria personneCriteria = SelectionCriteria
        .defineEqualCriteria("personne", personne);
    final InfosSaison infosSaisonPersonne = (InfosSaison) infosSaisonSaison
        .getEntities(personneCriteria);

    return infosSaisonPersonne;
View Full Code Here

Examples of org.dmlite.model.selection.SelectionCriteria

  }
 
  public Boolean Coutains(final String plaqueUnique)
  throws SelectionException
  {
    final SelectionCriteria saisonCriteria = SelectionCriteria
        .defineEqualCriteria("saison", this.saison);
    final InfosSaison infosSaisonSaison = (InfosSaison) this
        .getEntities(saisonCriteria);
   
    for(final InfoSaison infoSaison : this.getList())
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.