public class IntraDatabaseEntityGraph extends RemoteEntityGraph
RemoteEntityGraph
for exporting data into a different
schema within the same database.birthdayOfSubject, rowIdSupport, session, universalPrimaryKey
dataModel, DEPENDENCY, ENTITY, ENTITY_GRAPH, ENTITY_SET_ELEMENT, executionContext, graphID, importFilterManager, inDeleteMode, isTruncated
Modifier and Type | Method and Description |
---|---|
EntityGraph |
copy(int newGraphID,
Session session)
Copies an entity-graph.
|
static IntraDatabaseEntityGraph |
create(DataModel dataModel,
int graphID,
Session session,
PrimaryKey universalPrimaryKey,
java.lang.Runnable updateStatistics,
ExecutionContext executionContext)
Creates a new entity-graph.
|
EntityGraph |
createNewGraph()
Creates a new entity-graph of same type and session.
|
void |
dropMappingTables(java.io.OutputStreamWriter result,
DBMS targetDBMSConfiguration)
Creates the DROP-statements for the mapping tables.
|
void |
fillAndWriteMappingTables(JobManager jobManager,
java.io.OutputStreamWriter receiptWriter,
int numberOfEntities,
Session targetSession,
DBMS targetDBMSConfiguration,
DBMS dbmsConfiguration)
Insert the values of columns with non-derived-import-filters into the local database.
|
void |
readEntities(Table table,
boolean orderByPK)
Reads all entities of a given table.
|
void |
readMarkedEntities(Table table,
boolean orderByPK)
Reads all entities of a given table which are marked as independent or as
roots.
|
void |
updateEntities(Table table,
java.util.Set<Column> columns,
java.io.OutputStreamWriter scriptFileWriter,
DBMS targetConfiguration,
boolean inSourceSchema,
java.lang.String reason)
Updates columns of a table.
|
addDependencies, addEntities, addEntities, close, countEntities, delete, deleteEntities, deleteIndependentEntities, filteredSelectionClause, filteredSelectionClause, getAge, getDatamodel, getDistinctDependencyIDs, getSession, getSize, getSize, getTargetSession, getTotalRowcount, getUniversalPrimaryKey, init, markDependentEntitiesAsTraversed, markIndependentEntities, markRoots, pkEqualsEntityID, prefixColumnName, readDependentEntities, readEntities, readMarkedEntities, readNonTraversedDependencies, readUnfilteredEntityColumns, removeAssociatedDestinations, removeReflexiveDependencies, resolveAssociation, resolveAssociation, setAge, setBirthdayOfSubject, shutDown
addExportedCount, checkExist, copy, createUniqueGraphID, delete, deleteRows, dmlTableReference, getExportedCount, getImportFilterManager, getSelectionClause, getTransformerFactory, incLobCount, removeDependencies, setDeleteMode, setImportFilterManager, setTransformerFactory, truncate, typeName
public static IntraDatabaseEntityGraph create(DataModel dataModel, int graphID, Session session, PrimaryKey universalPrimaryKey, java.lang.Runnable updateStatistics, ExecutionContext executionContext) throws java.sql.SQLException
graphID
- the unique ID of the graphsession
- for executing SQL-StatementsuniversalPrimaryKey
- the universal primary keyjava.sql.SQLException
public EntityGraph copy(int newGraphID, Session session) throws java.sql.SQLException
copy
in class RemoteEntityGraph
newGraphID
- the unique ID of the new graphsession
- for executing SQL-Statementsjava.sql.SQLException
public EntityGraph createNewGraph() throws java.sql.SQLException
createNewGraph
in class RemoteEntityGraph
java.sql.SQLException
public void readMarkedEntities(Table table, boolean orderByPK) throws java.sql.SQLException
readMarkedEntities
in class RemoteEntityGraph
table
- the tableorderByPK
- not usedjava.sql.SQLException
public void readEntities(Table table, boolean orderByPK) throws java.sql.SQLException
readEntities
in class RemoteEntityGraph
table
- the tableorderByPK
- not usedjava.sql.SQLException
public void updateEntities(Table table, java.util.Set<Column> columns, java.io.OutputStreamWriter scriptFileWriter, DBMS targetConfiguration, boolean inSourceSchema, java.lang.String reason) throws java.sql.SQLException
updateEntities
in class RemoteEntityGraph
table
- the tablecolumns
- the columns;inSourceSchema
- if true
, use source-schema-mapping, else use schema-mappingreason
- to be written as commentjava.sql.SQLException
public void fillAndWriteMappingTables(JobManager jobManager, java.io.OutputStreamWriter receiptWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration, DBMS dbmsConfiguration) throws java.io.IOException, java.sql.SQLException
fillAndWriteMappingTables
in class EntityGraph
java.io.IOException
java.sql.SQLException
public void dropMappingTables(java.io.OutputStreamWriter result, DBMS targetDBMSConfiguration) throws java.io.IOException, java.sql.SQLException
dropMappingTables
in class EntityGraph
java.io.IOException
java.sql.SQLException