public abstract class OAbstractDBMSImportStrategy extends Object implements OWorkflowStrategy
Modifier and Type | Field and Description |
---|---|
protected String |
dbName |
protected OER2GraphMapper |
mapper |
protected String |
protocol |
protected String |
serverInitUrl |
Constructor and Description |
---|
OAbstractDBMSImportStrategy(String protocol,
String serverInitUrl,
String dbName) |
Modifier and Type | Method and Description |
---|---|
protected String[][] |
buildAggregationColumnsFromAggregatedVertex(OConfiguredVertexClass configuredVertex) |
protected abstract OConfigurationHandler |
buildConfigurationHandler() |
abstract OER2GraphMapper |
createSchemaMapper(OSourceDatabaseInfo sourceDBInfo,
String chosenMapper,
String xmlPath,
ONameResolver nameResolver,
ODBMSDataTypeHandler handler,
List<String> includedTables,
List<String> excludedTables,
OConfiguration migrationConfig) |
abstract void |
executeImport(OSourceDatabaseInfo sourceDBInfo,
String outOrientGraphUri,
OSource2GraphMapper mapper,
ODBMSDataTypeHandler handler) |
com.orientechnologies.orient.core.record.impl.ODocument |
executeStrategy(OSourceInfo sourceInfo,
String outOrientGraphUri,
String chosenMapper,
String xmlPath,
String nameResolverConvention,
List<String> includedTables,
List<String> excludedTables,
com.orientechnologies.orient.core.record.impl.ODocument migrationConfigDoc) |
protected boolean |
hasGeospatialAttributes(OEntity entity,
ODBMSDataTypeHandler handler) |
protected void |
importEntitiesBelongingToHierarchies(ODBQueryEngine dbQueryEngine,
OGraphEngineForDB graphEngine,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph) |
protected void |
importRecordsFromEntitiesIntoVertexClass(List<OEntity> mappedEntities,
String[][] aggregationColumns,
OVertexType currentOutVertexType,
ODBQueryEngine dbQueryEngine,
OGraphEngineForDB graphEngine,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
It imports all vertices into a Vertex Class (so 1 or more mapped entities).
|
void |
importRecordsFromSplitEntityIntoVertexClasses(List<OEntity> mappedEntities,
List<OVertexType> mappedVertices,
ODBQueryEngine dbQueryEngine,
OGraphEngineForDB graphEngine,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
It imports all the records from a split entity into all the Vertex Classes mapped with it (so 1
entity mapped with several vertex classes).
|
protected void |
tablePerConcreteTypeImport(OHierarchicalBag bag,
OER2GraphMapper mapper,
ODBQueryEngine dbQueryEngine,
OGraphEngineForDB graphDBCommandEngine,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
Performs import of all records of the entities contained in the hierarchical bag passed as
parameter.
|
protected void |
tablePerHierarchyImport(OHierarchicalBag bag,
OER2GraphMapper mapper,
ODBQueryEngine dbQueryEngine,
OGraphEngineForDB graphDBCommandEngine,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
Performs import of all records of the entities contained in the hierarchical bag passed as
parameter.
|
protected void |
tablePerTypeImport(OHierarchicalBag bag,
OER2GraphMapper mapper,
ODBQueryEngine dbQueryEngine,
OGraphEngineForDB graphDBCommandEngine,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
Performs import of all records of the entities contained in the hierarchical bag passed as
parameter.
|
protected OER2GraphMapper mapper
protected String protocol
protected String serverInitUrl
protected String dbName
public com.orientechnologies.orient.core.record.impl.ODocument executeStrategy(OSourceInfo sourceInfo, String outOrientGraphUri, String chosenMapper, String xmlPath, String nameResolverConvention, List<String> includedTables, List<String> excludedTables, com.orientechnologies.orient.core.record.impl.ODocument migrationConfigDoc)
executeStrategy
in interface OWorkflowStrategy
protected abstract OConfigurationHandler buildConfigurationHandler()
public abstract OER2GraphMapper createSchemaMapper(OSourceDatabaseInfo sourceDBInfo, String chosenMapper, String xmlPath, ONameResolver nameResolver, ODBMSDataTypeHandler handler, List<String> includedTables, List<String> excludedTables, OConfiguration migrationConfig)
public abstract void executeImport(OSourceDatabaseInfo sourceDBInfo, String outOrientGraphUri, OSource2GraphMapper mapper, ODBMSDataTypeHandler handler)
protected void importRecordsFromEntitiesIntoVertexClass(List<OEntity> mappedEntities, String[][] aggregationColumns, OVertexType currentOutVertexType, ODBQueryEngine dbQueryEngine, OGraphEngineForDB graphEngine, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph) throws SQLException
mappedEntities
- aggregationColumns
- currentOutVertexType
- dbQueryEngine
- graphEngine
- orientGraph
- SQLException
public void importRecordsFromSplitEntityIntoVertexClasses(List<OEntity> mappedEntities, List<OVertexType> mappedVertices, ODBQueryEngine dbQueryEngine, OGraphEngineForDB graphEngine, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph) throws SQLException
mappedVertices
- dbQueryEngine
- graphEngine
- orientGraph
- SQLException
protected void importEntitiesBelongingToHierarchies(ODBQueryEngine dbQueryEngine, OGraphEngineForDB graphEngine, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
dbQueryEngine
- graphEngine
- orientGraph
- protected void tablePerHierarchyImport(OHierarchicalBag bag, OER2GraphMapper mapper, ODBQueryEngine dbQueryEngine, OGraphEngineForDB graphDBCommandEngine, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
bag
- orientGraph
- protected void tablePerTypeImport(OHierarchicalBag bag, OER2GraphMapper mapper, ODBQueryEngine dbQueryEngine, OGraphEngineForDB graphDBCommandEngine, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
bag
- mapper
- dbQueryEngine
- graphDBCommandEngine
- orientGraph
- protected void tablePerConcreteTypeImport(OHierarchicalBag bag, OER2GraphMapper mapper, ODBQueryEngine dbQueryEngine, OGraphEngineForDB graphDBCommandEngine, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
bag
- dbQueryEngine
- orientGraph
- protected boolean hasGeospatialAttributes(OEntity entity, ODBMSDataTypeHandler handler)
protected String[][] buildAggregationColumnsFromAggregatedVertex(OConfiguredVertexClass configuredVertex)
Copyright © 2015–2024 OrientDB. All rights reserved.