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, explainIdOfAssociation, graphID, importFilterManager, inDeleteMode, maxTotalRowcount| 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,
ExecutionContext executionContext)
Creates a new entity-graph.
|
void |
dropMappingTables(OutputStreamWriter result,
DBMS targetDBMSConfiguration)
Creates the DROP-statements for the mapping tables.
|
void |
fillAndWriteMappingTables(JobManager jobManager,
OutputStreamWriter receiptWriter,
int numberOfEntities,
Session targetSession,
DBMS targetDBMSConfiguration,
DBMS dbmsConfiguration)
Insert the values of columns with non-derived-import-filters into the local database.
|
EntityGraph |
find(int graphID,
Session session,
PrimaryKey universalPrimaryKey)
Finds an entity-graph.
|
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,
Set<Column> columns,
OutputStreamWriter scriptFileWriter,
DBMS targetConfiguration)
Updates columns of a table.
|
addDependencies, 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, setAge, setBirthdayOfSubject, setExplain, shutDown, uniteWithcreateUniqueGraphID, dmlTableReference, getImportFilterManager, getTransformerFactory, incLobCount, removeDependencies, setDeleteMode, setImportFilterManager, setTransformerFactory, typeNamepublic static IntraDatabaseEntityGraph create(DataModel dataModel, int graphID, Session session, PrimaryKey universalPrimaryKey, ExecutionContext executionContext) throws SQLException
graphID - the unique ID of the graphsession - for executing SQL-StatementsuniversalPrimaryKey - the universal primary keySQLExceptionpublic EntityGraph copy(int newGraphID, Session session) throws SQLException
copy in class RemoteEntityGraphnewGraphID - the unique ID of the new graphsession - for executing SQL-StatementsSQLExceptionpublic EntityGraph find(int graphID, Session session, PrimaryKey universalPrimaryKey) throws SQLException
find in class RemoteEntityGraphgraphID - the unique ID of the graphuniversalPrimaryKey - the universal primary keysession - for executing SQL-StatementsSQLExceptionpublic void readMarkedEntities(Table table, boolean orderByPK) throws SQLException
readMarkedEntities in class RemoteEntityGraphtable - the tableorderByPK - not usedSQLExceptionpublic void readEntities(Table table, boolean orderByPK) throws SQLException
readEntities in class RemoteEntityGraphtable - the tableorderByPK - not usedSQLExceptionpublic void updateEntities(Table table, Set<Column> columns, OutputStreamWriter scriptFileWriter, DBMS targetConfiguration) throws SQLException
updateEntities in class RemoteEntityGraphtable - the tablecolumns - the columns;SQLExceptionpublic void fillAndWriteMappingTables(JobManager jobManager, OutputStreamWriter receiptWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration, DBMS dbmsConfiguration) throws IOException, SQLException
fillAndWriteMappingTables in class EntityGraphIOExceptionSQLExceptionpublic void dropMappingTables(OutputStreamWriter result, DBMS targetDBMSConfiguration) throws IOException, SQLException
dropMappingTables in class EntityGraphIOExceptionSQLException