Class PersistenceUtil
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.commercial.sync.PersistenceUtil
-
public class PersistenceUtil extends Object
- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description PersistenceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SyncDataSourceConfiguration
createSyncDataSourceConfigFromNode(org.neo4j.graphdb.Node syncDataSourceConfigNode)
Converts a node to a SyncDataSourceConfiguration objectstatic SynchronizationGroup
createSyncGroupFromNode(org.neo4j.graphdb.Node syncGroupNode)
Converts a node representing a Node into a SynchronizationGroup object
-
-
-
Method Detail
-
createSyncGroupFromNode
public static SynchronizationGroup createSyncGroupFromNode(org.neo4j.graphdb.Node syncGroupNode) throws InvalidArgumentException, MetadataObjectNotFoundException, UnsupportedPropertyException
Converts a node representing a Node into a SynchronizationGroup object- Parameters:
syncGroupNode
- The source node- Returns:
- A SynchronizationGroup object built from the source node information
- Throws:
InvalidArgumentException
- if some element of the list of syncDataSourceConfiguration has more paramNames than paramValuesMetadataObjectNotFoundException
UnsupportedPropertyException
-
createSyncDataSourceConfigFromNode
public static SyncDataSourceConfiguration createSyncDataSourceConfigFromNode(org.neo4j.graphdb.Node syncDataSourceConfigNode) throws UnsupportedPropertyException, InvalidArgumentException
Converts a node to a SyncDataSourceConfiguration object- Parameters:
syncDataSourceConfigNode
- The source node- Returns:
- A SyncDataSourceConfiguration object built from the source node information
- Throws:
InvalidArgumentException
- if the size of the list of paramNames and paramValues are not the sameUnsupportedPropertyException
- if any property of the sync data source node is malformed or if there is an error with the relationship between the syncNode an it InventoryObjectNode
-
-