Uses of Class
net.sf.jailer.database.Session
Packages that use Session
Package
Description
-
Uses of Session in net.sf.jailer.database
Fields in net.sf.jailer.database declared as SessionMethods in net.sf.jailer.database that return SessionModifier and TypeMethodDescriptionLocalDatabase.getSession()Gets theSessionfor the local database.Methods in net.sf.jailer.database with parameters of type SessionModifier and TypeMethodDescriptionprotected QuotingDMLTransformer.createQuoting(Session session) Creates aQuotinginstance for the given session.static StringSQLDialect.dmlTableReference(String tableName, Session session, ExecutionContext executionContext) Gets table reference for DML statements for a given working table.static InlineViewStyleInlineViewStyle.forSession(Session session) Gets a suitable inline-view style for a session.protected CellContentConverterSession.AbstractResultSetReader.getCellContentConverter(ResultSet resultSet, Session session, DBMS targetDBMSConfiguration) Gets and caches theCellContentConverterfor the result set.protected StringDB2ShellScriptBasedStatisticRenovator.getScriptInvocation(Session session) Gets shell-invocation.protected StringShellScriptBasedStatisticRenovator.getScriptInvocation(Session session) Gets shell-invocation.voidShellScriptBasedStatisticRenovator.renew(Session session, ExecutionContext executionContext) Renews the DB table statistics for the working-tables by executing the shell-script.voidSqlScriptBasedStatisticRenovator.renew(Session session, ExecutionContext executionContext) Renews the DB table statistics for the working-tables by executing the SQL-script.voidStatisticRenovator.renew(Session session, ExecutionContext executionContext) Renews the DB table statistics for the working-tables.voidPrimaryKeyValidator.validatePrimaryKey(Session session, Set<Table> tables, JobManager jobManager) Validates all primary keys of a set of tables.Constructors in net.sf.jailer.database with parameters of type SessionModifierConstructorDescriptionprotectedDMLTransformer(Table table, OutputStreamWriter scriptFileWriter, boolean upsertOnly, int maxBodySize, Session session, DBMS targetDBMSConfiguration, ImportFilterTransformer importFilterTransformer, AtomicReference<Table> identityInsertTable, ExecutionContext executionContext) Constructor.Factory(OutputStreamWriter scriptFileWriter, int maxBodySize, Session session, DBMS targetDBMSConfiguration, ExecutionContext executionContext) Constructor.Factory(OutputStreamWriter scriptFileWriter, boolean upsertOnly, int maxBodySize, Session session, DBMS targetDBMSConfiguration, ExecutionContext executionContext) Constructor.InlineViewBuilder(InlineViewStyle style, String name, Session session, String[] columnNames) Constructor.InlineViewBuilder(InlineViewStyle style, Session session, String[] columnNames) Creates anInlineViewBuilderwithInlineViewBuilder.DEFAULT_NAME.UpdateTransformer(Table table, Set<Column> columns, OutputStreamWriter scriptFileWriter, int maxBodySize, Session session, DBMS targetDBMSConfiguration, ImportFilterTransformer importFilterTransformer, boolean inSourceSchema, String reason, ExecutionContext executionContext) Constructor. -
Uses of Session in net.sf.jailer.datamodel
Methods in net.sf.jailer.datamodel with parameters of type SessionModifier and TypeMethodDescriptionstatic voidTable.clearSessionProperties(Session session) Clears all session properties associated with this class.RowIdSupport.getColumns(Table table, Session session) Gets the columns with additional rowid-column of a table.RowIdSupport.getColumns(Table table, Session session, boolean exact) Gets the columns with additional rowid-column of a table.Table.getNonVirtualPKColumns(Session session) Gets non-virtual and non-filtered primary-key columns.RowIdSupport.getPrimaryKey(Table table, Session session) Gets the primary key of a table.RowIdSupport.getPrimaryKey(Table table, Session session, boolean exact) Gets the primary key of a table.PrimaryKeyFactory.getUniversalPrimaryKey(Session session) Gets the primary-key to be used for the entity-table and closes the factory.RowIdSupport.getUniversalPrimaryKey(Session session) Gets the universal primary key. -
Uses of Session in net.sf.jailer.ddl
Methods in net.sf.jailer.ddl with parameters of type SessionModifier and TypeMethodDescriptionvoidDDLCreator.createDDL(Session localSession, WorkingTableScope temporaryTableScope, String workingTableSchema) Creates the DDL for the working-tables.booleanDDLCreator.createDDL(DataModel datamodel, Session session, WorkingTableScope temporaryTableScope, String workingTableSchema) Creates the DDL for the working-tables.booleanDDLCreator.createDDL(DataModel datamodel, Session session, WorkingTableScope temporaryTableScope, RowIdSupport rowIdSupport, String workingTableSchema) Creates the DDL for the working-tables.booleanDDLCreator.isUptodate(Session session, boolean useRowId, boolean useRowIdsOnlyForTablesWithoutPK, String workingTableSchema) Checks whether working-tables schema is up-to-date. -
Uses of Session in net.sf.jailer.enhancer
Methods in net.sf.jailer.enhancer with parameters of type SessionModifier and TypeMethodDescriptionvoidFileBasedScriptEnhancer.addComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds nothing.voidHelperTableEnhancer.addComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds nothing.voidScriptEnhancer.addComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds comments to the script.voidFileBasedScriptEnhancer.addEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds epilogs.voidHelperTableEnhancer.addEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Drops the JL_DUAL helper table at the bottom of the script if it was needed.voidScriptEnhancer.addEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds statements at bottom of the script.voidFileBasedScriptEnhancer.addProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds prologs.voidHelperTableEnhancer.addProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Creates and populates the JL_DUAL helper table at the top of the script if needed.voidScriptEnhancer.addProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds statements at top of the script. -
Uses of Session in net.sf.jailer.entitygraph
Methods in net.sf.jailer.entitygraph that return SessionModifier and TypeMethodDescriptionabstract SessionEntityGraph.getSession()Gets the session.abstract SessionEntityGraph.getTargetSession()Gets the target session.Methods in net.sf.jailer.entitygraph with parameters of type SessionModifier and TypeMethodDescriptionabstract EntityGraphCopies an entity-graph.protected longEntityGraph.deleteRows(Session session, String table, String where) Deletes rows from table.protected StringEntityGraph.dmlTableReference(String tableName, Session session) Gets table reference for DML statements for a given working table.voidEntityGraph.fillAndWriteMappingTables(JobManager jobManager, OutputStreamWriter dmlResultWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration, DBMS dbmsConfiguration) Inserts the values of columns with non-derived import-filters into the local database. -
Uses of Session in net.sf.jailer.entitygraph.intradatabase
Methods in net.sf.jailer.entitygraph.intradatabase with parameters of type SessionModifier and TypeMethodDescriptionCopies an entity-graph.static IntraDatabaseEntityGraphIntraDatabaseEntityGraph.create(DataModel dataModel, int graphID, Session session, PrimaryKey universalPrimaryKey, Runnable updateStatistics, ExecutionContext executionContext) Creates a new entity-graph.voidIntraDatabaseEntityGraph.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. -
Uses of Session in net.sf.jailer.entitygraph.local
Methods in net.sf.jailer.entitygraph.local that return SessionModifier and TypeMethodDescriptionLocalEntityGraph.getSession()Gets the session.LocalEntityGraph.getTargetSession()Gets the target session.Methods in net.sf.jailer.entitygraph.local with parameters of type SessionModifier and TypeMethodDescriptionCopies an entity-graph.static LocalEntityGraphLocalEntityGraph.create(DataModel dataModel, int graphID, Session remoteSession, ExecutionContext executionContext) Creates a new entity-graph. -
Uses of Session in net.sf.jailer.entitygraph.remote
Fields in net.sf.jailer.entitygraph.remote declared as SessionModifier and TypeFieldDescriptionfinal SessionRemoteEntityGraph.sessionFor executing SQL-Statements.Methods in net.sf.jailer.entitygraph.remote that return SessionModifier and TypeMethodDescriptionRemoteEntityGraph.getSession()Gets the session.RemoteEntityGraph.getTargetSession()Gets the target session.Methods in net.sf.jailer.entitygraph.remote with parameters of type SessionModifier and TypeMethodDescriptionCopies an entity-graph.static RemoteEntityGraphRemoteEntityGraph.create(DataModel dataModel, int graphID, Session session, PrimaryKey universalPrimaryKey, Runnable updateStatistics, ExecutionContext executionContext) Creates a new entity-graph.protected static voidRemoteEntityGraph.init(int graphID, Session session, ExecutionContext executionContext) Initializes a new entity-graph.Constructors in net.sf.jailer.entitygraph.remote with parameters of type SessionModifierConstructorDescriptionprotectedRemoteEntityGraph(DataModel dataModel, int graphID, Session session, PrimaryKey universalPrimaryKey, Runnable updateStatistics, ExecutionContext executionContext) Constructor. -
Uses of Session in net.sf.jailer.importfilter
Methods in net.sf.jailer.importfilter with parameters of type SessionModifier and TypeMethodDescriptionvoidImportFilterManager.fillAndWriteMappingTables(EntityGraph entityGraph, JobManager jobManager, OutputStreamWriter dmlResultWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration) Inserts the values of columns with non-derived import-filters into the local database and writes the mapping table DML to the given writer.Constructors in net.sf.jailer.importfilter with parameters of type SessionModifierConstructorDescriptionImportFilterManager(Session localSession, OutputStreamWriter result, Set<Table> progress, Quoting targetQuoting, ExecutionContext executionContext) Constructor. -
Uses of Session in net.sf.jailer.liquibase
Constructors in net.sf.jailer.liquibase with parameters of type SessionModifierConstructorDescriptionFactory(TransformerHandler transformerHandler, DatabaseMetaData metaData, EntityGraph entityGraph, String scriptFile, Session session, ExecutionContext executionContext) Constructor. -
Uses of Session in net.sf.jailer.modelbuilder
Methods in net.sf.jailer.modelbuilder that return SessionModifier and TypeMethodDescriptionJDBCMetaDataBasedModelElementFinder.PrivilegedSessionProvider.askForSessionWithPermissionToReadSchema(Session session, Table view, String schema, String tableName, ExecutionContext executionContext) Returns a session with permission to read the given schema, ornullif not available.Methods in net.sf.jailer.modelbuilder with parameters of type SessionModifier and TypeMethodDescriptionJDBCMetaDataBasedModelElementFinder.PrivilegedSessionProvider.askForSessionWithPermissionToReadSchema(Session session, Table view, String schema, String tableName, ExecutionContext executionContext) Returns a session with permission to read the given schema, ornullif not available.JDBCMetaDataBasedModelElementFinder.findAssociations(DataModel dataModel, Map<Association, String[]> namingSuggestion, Session session, ExecutionContext executionContext) Finds associations by reading the databases meta-data.ModelElementFinder.findAssociations(DataModel dataModel, Map<Association, String[]> namingSuggestions, Session session, ExecutionContext executionContext) Finds a set ofAssociations.JDBCMetaDataBasedModelElementFinder.findColumns(Table table, Session session, ExecutionContext executionContext) ModelElementFinder.findColumns(Table table, Session session, ExecutionContext executionContext) JDBCMetaDataBasedModelElementFinder.findPartitions(Session session, String introspectionSchema) Finds all table names that are partitions in the given schema.JDBCMetaDataBasedModelElementFinder.findTables(Session session, ExecutionContext executionContext) Finds all tables in the DB schema.ModelElementFinder.findTables(Session session, ExecutionContext executionContext) Finds a set ofTables.JDBCMetaDataBasedModelElementFinder.getCatalogsWithSchemas(Session session) Finds all catalogs with all schemas in DB.static ResultSetJDBCMetaDataBasedModelElementFinder.getColumns(Session session, String schemaPattern, String tableNamePattern, String columnNamePattern, boolean withCaching, boolean onlyIfCached, String tableType) static StringJDBCMetaDataBasedModelElementFinder.getDefaultSchema(Session session, String userName) Gets default schema of DB.static StringJDBCMetaDataBasedModelElementFinder.getDefaultSchema(Session session, String userName, List<String> schemaNames) Gets default schema of DB.static ResultSetJDBCMetaDataBasedModelElementFinder.getExportedKeys(Session session, String schema, String table) Gets the exported keys (referenced by foreign keys in other tables) for a table.static ResultSetJDBCMetaDataBasedModelElementFinder.getImportedKeys(Session session, String schema, String table, boolean withCaching) Gets the imported keys (foreign keys) for a table, optionally using a cache.static ResultSetJDBCMetaDataBasedModelElementFinder.getIndexes(Session session, String schemaPattern, String tableNamePattern) static ResultSetJDBCMetaDataBasedModelElementFinder.getPrimaryKeys(Session session, String schema, String table, boolean withCaching) Retrieves primary key information for a given table.static ResultSetJDBCMetaDataBasedModelElementFinder.getProcedures(Session session, String schemaPattern, String functionPattern) JDBCMetaDataBasedModelElementFinder.getSchemas(Session session, String userName) Finds all schemas in DB.static ResultSetJDBCMetaDataBasedModelElementFinder.getTables(Session session, String schemaPattern, String tableNamePattern, String[] types) static MetaDataCacheMetaDataCache.readColumns(Session session, String schema) Reads column infos.static MetaDataCacheMetaDataCache.readImportedKeys(Session session, String schema) Reads imported keys (FKs).static MetaDataCacheMetaDataCache.readIndexInfo(Session session, String schema) Reads index infos.static MetaDataCacheMetaDataCache.readPrimaryKeys(Session session, String schema) Reads primary keys.static voidJDBCMetaDataBasedModelElementFinder.resetCaches(Session session) Resets all cached metadata for the given session.static ColumnJDBCMetaDataBasedModelElementFinder.toColumn(ResultSetMetaData metaData, int i, Session session) Converts a column fromResultSetMetaDatainto aColumnmodel object.Constructors in net.sf.jailer.modelbuilder with parameters of type Session -
Uses of Session in net.sf.jailer.util
Methods in net.sf.jailer.util with parameters of type SessionModifier and TypeMethodDescriptionstatic StringSqlUtil.columnLabel(Quoting quoting, Session session, DBMS targetDBMSConfiguration, Table table, String columnLabel) Gets the properly quoted column label for use in a SQL statement.static QuotingQuoting.getQuoting(Session session) Gets theQuotingfor a given session.static StringCellContentConverter.prepareForComparison(Session session, Column column) Returns a SQL expression for a column that can be used in a comparison, applying any necessary type cast for DBMS-specific non-comparable types.Constructors in net.sf.jailer.util with parameters of type SessionModifierConstructorDescriptionCellContentConverter(ResultSetMetaData resultSetMetaData, Session session, DBMS targetConfiguration) Constructor.Constructor.SqlScriptExecutor(Session session, int threads) Constructor.SqlScriptExecutor(Session session, int threads, boolean logStatements) Constructor. -
Uses of Session in net.sf.jailer.xml
Constructors in net.sf.jailer.xml with parameters of type SessionModifierConstructorDescriptionXmlExportTransformer(OutputStream out, String commentHeader, EntityGraph entityGraph, Set<Table> totalProgress, Set<Table> cyclicAggregatedTables, String rootTag, String datePattern, String timestampPattern, Session session, ScriptFormat scriptFormat, Charset charset, ExecutionContext executionContext) Constructor.XmlWritingNodeVisitor(ResultSet resultSet, ResultSetMetaData resultSetMetaData, Table table, Association association, Session session) Constructor.