public interface NamingStrategyHelper
Modifier and Type | Method and Description |
---|---|
Identifier |
determineImplicitName(MetadataBuildingContext buildingContext)
Called when the user supplied no explicit name/identifier for the given database object.
|
Identifier |
handleExplicitName(String explicitName,
MetadataBuildingContext buildingContext)
Called when the user has supplied an explicit name for the database object.
|
Identifier |
toPhysicalName(Identifier logicalName,
MetadataBuildingContext buildingContext)
Handle converting a logical name to a physical name
Typically implementations will access the
PhysicalNamingStrategy via
MetadataBuildingContext.getBuildingOptions() ->
MetadataBuildingOptions.getPhysicalNamingStrategy()
For proper quoting, Database.toIdentifier(String)
should be used via
MetadataBuildingContext.getMetadataCollector() ->
InFlightMetadataCollector.getDatabase() |
Identifier determineImplicitName(MetadataBuildingContext buildingContext)
ImplicitNamingStrategy
via
MetadataBuildingContext.getBuildingOptions()
->
MetadataBuildingOptions.getImplicitNamingStrategy()
For proper quoting, Database.toIdentifier(String)
should be used via
MetadataBuildingContext.getMetadataCollector()
->
InFlightMetadataCollector.getDatabase()
buildingContext
- The building context in which this is called.Identifier handleExplicitName(String explicitName, MetadataBuildingContext buildingContext)
ImplicitNamingStrategy
via
MetadataBuildingContext.getBuildingOptions()
->
MetadataBuildingOptions.getImplicitNamingStrategy()
For proper quoting, Database.toIdentifier(String)
should be used via
MetadataBuildingContext.getMetadataCollector()
->
InFlightMetadataCollector.getDatabase()
explicitName
- The explicit object name.buildingContext
- The building context in which this is called.Identifier toPhysicalName(Identifier logicalName, MetadataBuildingContext buildingContext)
PhysicalNamingStrategy
via
MetadataBuildingContext.getBuildingOptions()
->
MetadataBuildingOptions.getPhysicalNamingStrategy()
For proper quoting, Database.toIdentifier(String)
should be used via
MetadataBuildingContext.getMetadataCollector()
->
InFlightMetadataCollector.getDatabase()
logicalName
- The logical name to convert to a physical namebuildingContext
- The building context in which this is called.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.