Package ch.helvethink.odoo4java.xmlrpc
Class OdooObjectLoader
java.lang.Object
ch.helvethink.odoo4java.xmlrpc.OdooObjectLoader
Dedicated Class for loading odoo object fields
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfetchRecursivelyRelationShips(Object o, int depth, List<Class<? extends OdooObj>> classesToFetch) The same asfetchRelationShips(Object, List)but recursively Warn!voidfetchRelationShips(Object o, List<Class<? extends OdooObj>> classesToFetch) Fetch relationships from an Odoo object, without recursion
-
Field Details
-
LOG
public static final org.slf4j.Logger LOGSimple logger
-
-
Constructor Details
-
OdooObjectLoader
Odoo loader- Parameters:
odooClient- - Odoo Client to use for finding of objects by ids
-
-
Method Details
-
fetchRelationShips
Fetch relationships from an Odoo object, without recursion- Parameters:
o- The object to fetchclassesToFetch- 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 asfetchRelationShips(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 fordepth- The depth to which we want to fetch ObjectsclassesToFetch- The list of types we want to fetch
-