Ejemplo n.º 1
0
  public NSArray<org.pachyderm.foundation.eof.PDBScreen> everyScreen(
      EOQualifier qualifier, NSArray<EOSortOrdering> sortOrderings, boolean fetch) {
    NSArray<org.pachyderm.foundation.eof.PDBScreen> results;
    if (fetch) {
      EOQualifier fullQualifier;
      EOQualifier inverseQualifier =
          ERXQ.equals(org.pachyderm.foundation.eof.PDBScreen.PRESENTATION_KEY, this);

      if (qualifier == null) {
        fullQualifier = inverseQualifier;
      } else {
        fullQualifier = ERXQ.and(qualifier, inverseQualifier);
      }

      results =
          org.pachyderm.foundation.eof.PDBScreen.fetchPDBScreens(
              editingContext(), fullQualifier, sortOrderings);
    } else {
      results = everyScreen();
      if (qualifier != null) {
        results =
            (NSArray<org.pachyderm.foundation.eof.PDBScreen>)
                EOQualifier.filteredArrayWithQualifier(results, qualifier);
      }
      if (sortOrderings != null) {
        results =
            (NSArray<org.pachyderm.foundation.eof.PDBScreen>)
                EOSortOrdering.sortedArrayUsingKeyOrderArray(results, sortOrderings);
      }
    }
    return results;
  }
  public NSArray<EOFormationPersonnel> getFormationPersonnelArray() {
    NSArray<EOFormationPersonnel> array = feveSession().getAllFormationPersonnelArray();

    array =
        EOQualifier.filteredArrayWithQualifier(
            array, ERXQ.contains(EOFormationPersonnel.FOR_LIBELLE_KEY, value()));

    return array;
  }
Ejemplo n.º 3
0
 public static PDBPresentation fetchRequiredPDBPresentation(
     EOEditingContext editingContext, String keyName, Object value) {
   return _PDBPresentation.fetchRequiredPDBPresentation(
       editingContext, ERXQ.equals(keyName, value));
 }
Ejemplo n.º 4
0
 public <T> T requiredOne(NSArray<T> array) {
   return ERXQ.requiredOne(array, this);
 }
Ejemplo n.º 5
0
 public <T> T one(NSArray<T> array) {
   return ERXQ.one(array, this);
 }
Ejemplo n.º 6
0
 public <T> T first(NSArray<T> array) {
   return ERXQ.first(array, this);
 }
Ejemplo n.º 7
0
 public <T> NSArray<T> filtered(NSArray<T> array) {
   return ERXQ.filtered(array, this);
 }
Ejemplo n.º 8
0
 public void filter(NSMutableArray<?> array) {
   ERXQ.filter(array, this);
 }
Ejemplo n.º 9
0
 public ERXNotQualifier not() {
   return ERXQ.not(this);
 }