Class OdooObjectLoader

java.lang.Object
ch.helvethink.odoo4java.xmlrpc.OdooObjectLoader

public class OdooObjectLoader extends Object
Dedicated Class for loading odoo object fields
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
      Simple logger
  • Constructor Details

    • OdooObjectLoader

      public OdooObjectLoader(OdooClient odooClient)
      Odoo loader
      Parameters:
      odooClient - - Odoo Client to use for finding of objects by ids
  • Method Details

    • fetchRelationShips

      public void fetchRelationShips(Object o, List<Class<? extends OdooObj>> classesToFetch)
      Fetch relationships from an Odoo object, without recursion
      Parameters:
      o - The object to fetch
      classesToFetch - The list of types we want to fetch, If empty everything will be fetched
    • fetchRecursivelyRelationShips

      public void fetchRecursivelyRelationShips(Object o, int depth, List<Class<? extends OdooObj>> classesToFetch)
      The same as fetchRelationShips(Object, List) but recursively Warn! Since there are a lot of relationships, this increases number of calls and might be less performant Ideally when using depth, indicate the classes you want to fetch to avoid wasting time
      Parameters:
      o - The initial object we want to fetch relationships for
      depth - The depth to which we want to fetch Objects
      classesToFetch - The list of types we want to fetch