Exemple #1
0
 @SuppressWarnings("unchecked")
 private static void fetchMapRidMap(
     Map<String, Integer> iFetchPlan,
     Object fieldValue,
     String fieldName,
     final int iCurrentLevel,
     final int iLevelFromRoot,
     final int iFieldDepthLevel,
     final Map<ORID, Integer> parsedRecords,
     final String iFieldPathFromRoot,
     final OFetchContext iContext)
     throws IOException {
   final Map<String, ODocument> linked = (Map<String, ODocument>) fieldValue;
   for (ODocument d : (linked).values())
     // GO RECURSIVELY
     updateRidMap(
         iFetchPlan,
         (ODocument) d,
         iCurrentLevel,
         iLevelFromRoot,
         iFieldDepthLevel,
         parsedRecords,
         iFieldPathFromRoot,
         iContext);
 }
Exemple #2
0
  @SuppressWarnings("unchecked")
  private static void fetchCollectionRidMap(
      final ODatabaseRecord iDatabase,
      final Map<String, Integer> iFetchPlan,
      final Object fieldValue,
      final String fieldName,
      final int iCurrentLevel,
      final int iLevelFromRoot,
      final int iFieldDepthLevel,
      final Map<ORID, Integer> parsedRecords,
      final String iFieldPathFromRoot,
      final OFetchContext iContext)
      throws IOException {
    final Iterable<OIdentifiable> linked = (Iterable<OIdentifiable>) fieldValue;
    for (OIdentifiable d : linked) {
      // GO RECURSIVELY
      d = d.getRecord();

      updateRidMap(
          iFetchPlan,
          (ODocument) d,
          iCurrentLevel,
          iLevelFromRoot,
          iFieldDepthLevel,
          parsedRecords,
          iFieldPathFromRoot,
          iContext);
    }
  }
Exemple #3
0
 private static void fetchArrayRidMap(
     final Map<String, Integer> iFetchPlan,
     final Object fieldValue,
     final String fieldName,
     final int iCurrentLevel,
     final int iLevelFromRoot,
     final int iFieldDepthLevel,
     final Map<ORID, Integer> parsedRecords,
     final String iFieldPathFromRoot,
     final OFetchContext iContext)
     throws IOException {
   if (fieldValue instanceof ODocument[]) {
     final ODocument[] linked = (ODocument[]) fieldValue;
     for (ODocument d : linked)
       // GO RECURSIVELY
       updateRidMap(
           iFetchPlan,
           (ODocument) d,
           iCurrentLevel,
           iLevelFromRoot,
           iFieldDepthLevel,
           parsedRecords,
           iFieldPathFromRoot,
           iContext);
   }
 }
Exemple #4
0
 private static void fetchDocumentRidMap(
     Map<String, Integer> iFetchPlan,
     Object fieldValue,
     String fieldName,
     final int iCurrentLevel,
     final int iLevelFromRoot,
     final int iFieldDepthLevel,
     final Map<ORID, Integer> parsedRecords,
     final String iFieldPathFromRoot,
     final OFetchContext iContext)
     throws IOException {
   updateRidMap(
       iFetchPlan,
       (ODocument) fieldValue,
       iCurrentLevel,
       iLevelFromRoot,
       iFieldDepthLevel,
       parsedRecords,
       iFieldPathFromRoot,
       iContext);
 }