java.lang.Object
org.jooq.SchemaMapping
- All Implemented Interfaces:
- Serializable
@Deprecated(forRemoval=true,
            since="2.0")
public class SchemaMapping
extends Object
implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
General mapping of generated artefacts onto run-time substitutes.
 
 There are several use cases, when the run-time schema configuration may be
 different from the compile-time (or code-generation-time) schema
 configuration. Say, you develop a schema called DEV. It contains
 a table DEV.T. When you install your database on a productive
 system, you might have two schemata:
 
- PROD: The productive schema. It contains the table- PROD.T
- BACKUP: The productive backup schema. This schema might be shared with other applications, so you might have table name collisions. Therefore, you'd want to map your table- DEV.Tonto- BACKUP.MY_T
 This can be achieved with the SchemaMapping, where you can map
 schemata and tables, for them to render different names at run-time, than at
 compile-time.
- Since:
- 1.5.2, 1.6.0
- Author:
- Lukas Eder
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSchemaMapping(Configuration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Construct a mapping from aConfigurationobject
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mappingvoidDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mappingvoidDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mappingvoidDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mappingvoidDeprecated, for removal: This API element is subject to removal in a future version.Add tables to this mappingvoidDeprecated, for removal: This API element is subject to removal in a future version.Add tables to this mapping@Nullable CatalogDeprecated, for removal: This API element is subject to removal in a future version.@Nullable SchemaDeprecated, for removal: This API element is subject to removal in a future version.Apply mapping to a given schemaDeprecated, for removal: This API element is subject to removal in a future version.Apply mapping to a given tableDeprecated, for removal: This API element is subject to removal in a future version.Apply mapping to a given UDTvoidsetDefaultSchema(String schema) Deprecated, for removal: This API element is subject to removal in a future version.Synonym foruse(String).voidsetSchemaMapping(Map<String, String> schemaMap) Deprecated, for removal: This API element is subject to removal in a future version.Initialise SchemaMapping.toString()Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Set a schema as the default schema.voidDeprecated, for removal: This API element is subject to removal in a future version.Set a schema as the default schema.
- 
Constructor Details- 
SchemaMappingDeprecated, for removal: This API element is subject to removal in a future version.Construct a mapping from aConfigurationobject
 
- 
- 
Method Details- 
useDeprecated, for removal: This API element is subject to removal in a future version.Set a schema as the default schema. This results in the supplied schema being omitted in generated SQL.If the supplied mapping has already been added using add(Schema, Schema), thenuse()has no effect.- Parameters:
- schema- the default schema
 
- 
useDeprecated, for removal: This API element is subject to removal in a future version.Set a schema as the default schema. This results in the supplied schema being omitted in generated SQL.If the supplied mapping has already been added using add(Schema, Schema), thenuse()has no effect.- Parameters:
- schemaName- the default schema
 
- 
addDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mapping- Parameters:
- inputSchema- The schema known at codegen time to be mapped
- outputSchema- The schema configured at run time to be mapped
 
- 
addDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mapping- Parameters:
- inputSchema- The schema known at codegen time to be mapped
- outputSchema- The schema configured at run time to be mapped
 
- 
addDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mapping- Parameters:
- inputSchema- The schema known at codegen time to be mapped
- outputSchema- The schema configured at run time to be mapped
 
- 
addDeprecated, for removal: This API element is subject to removal in a future version.Add schemata to this mapping- Parameters:
- inputSchema- The schema known at codegen time to be mapped
- outputSchema- The schema configured at run time to be mapped
 
- 
addDeprecated, for removal: This API element is subject to removal in a future version.Add tables to this mapping- Parameters:
- inputTable- The table known at codegen time to be mapped
- outputTable- The table configured at run time to be mapped
 
- 
addDeprecated, for removal: This API element is subject to removal in a future version.Add tables to this mapping- Parameters:
- inputTable- The table known at codegen time to be mapped
- outputTable- The table configured at run time to be mapped
 
- 
mapDeprecated, for removal: This API element is subject to removal in a future version.
- 
mapDeprecated, for removal: This API element is subject to removal in a future version.Apply mapping to a given schema- Parameters:
- schema- The schema to be mapped
- Returns:
- The configured schema
 
- 
mapDeprecated, for removal: This API element is subject to removal in a future version.Apply mapping to a given table- Parameters:
- table- The generated table to be mapped
- Returns:
- The configured table
 
- 
mapDeprecated, for removal: This API element is subject to removal in a future version.Apply mapping to a given UDT- Parameters:
- udt- The generated udt to be mapped
- Returns:
- The configured udt
 
- 
setDefaultSchemaDeprecated, for removal: This API element is subject to removal in a future version.Synonym foruse(String). Added for better interoperability with Spring
- 
setSchemaMappingDeprecated, for removal: This API element is subject to removal in a future version.Initialise SchemaMapping. Added for better interoperability with Spring
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.
 
- 
Settingsinstead