public class IntraDatabaseEntityGraph extends RemoteEntityGraph
RemoteEntityGraph for exporting data into a different
schema within the same database.birthdayOfSubject, rowIdSupport, session, universalPrimaryKeydataModel, 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, shutDownaddExportedCount, checkExist, copy, createUniqueGraphID, delete, deleteRows, dmlTableReference, getExportedCount, getImportFilterManager, getSelectionClause, getTransformerFactory, incLobCount, removeDependencies, setDeleteMode, setImportFilterManager, setTransformerFactory, truncate, typeNamepublic 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.SQLExceptionpublic EntityGraph copy(int newGraphID, Session session) throws java.sql.SQLException
copy in class RemoteEntityGraphnewGraphID - the unique ID of the new graphsession - for executing SQL-Statementsjava.sql.SQLExceptionpublic EntityGraph createNewGraph() throws java.sql.SQLException
createNewGraph in class RemoteEntityGraphjava.sql.SQLExceptionpublic void readMarkedEntities(Table table, boolean orderByPK) throws java.sql.SQLException
readMarkedEntities in class RemoteEntityGraphtable - the tableorderByPK - not usedjava.sql.SQLExceptionpublic void readEntities(Table table, boolean orderByPK) throws java.sql.SQLException
readEntities in class RemoteEntityGraphtable - the tableorderByPK - not usedjava.sql.SQLExceptionpublic 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 RemoteEntityGraphtable - the tablecolumns - the columns;inSourceSchema - if true, use source-schema-mapping, else use schema-mappingreason - to be written as commentjava.sql.SQLExceptionpublic 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 EntityGraphjava.io.IOExceptionjava.sql.SQLExceptionpublic void dropMappingTables(java.io.OutputStreamWriter result,
DBMS targetDBMSConfiguration)
throws java.io.IOException,
java.sql.SQLException
dropMappingTables in class EntityGraphjava.io.IOExceptionjava.sql.SQLException