Interface NamingStrategyHelper
-
Method Summary
Modifier and TypeMethodDescriptiondetermineImplicitName
(MetadataBuildingContext buildingContext) Called when the user supplied no explicit name/identifier for the given database object.handleExplicitName
(String explicitName, MetadataBuildingContext buildingContext) Called when the user has supplied an explicit name for the database object.toPhysicalName
(Identifier logicalName, MetadataBuildingContext buildingContext) Handle converting a logical name to a physical name
-
Method Details
-
determineImplicitName
Called when the user supplied no explicit name/identifier for the given database object.Typically, implementations will access the
ImplicitNamingStrategy
viaMetadataBuildingContext.getBuildingOptions()
toMetadataBuildingOptions.getImplicitNamingStrategy()
For proper quoting,
Database.toIdentifier(String)
should be used viaMetadataBuildingContext.getMetadataCollector()
toMetadata.getDatabase()
- Parameters:
buildingContext
- The building context in which this is called.- Returns:
- The implicit name
-
handleExplicitName
Called when the user has supplied an explicit name for the database object.Typically implementations will access the
ImplicitNamingStrategy
viaMetadataBuildingContext.getBuildingOptions()
toMetadataBuildingOptions.getImplicitNamingStrategy()
For proper quoting,
Database.toIdentifier(String)
should be used viaMetadataBuildingContext.getMetadataCollector()
toMetadata.getDatabase()
- Parameters:
explicitName
- The explicit object name.buildingContext
- The building context in which this is called.- Returns:
- The strategy-handled name.
-
toPhysicalName
Handle converting a logical name to a physical nameTypically implementations will access the
PhysicalNamingStrategy
viaMetadataBuildingContext.getBuildingOptions()
toMetadataBuildingOptions.getPhysicalNamingStrategy()
For proper quoting,
Database.toIdentifier(String)
should be used viaMetadataBuildingContext.getMetadataCollector()
toMetadata.getDatabase()
- Parameters:
logicalName
- The logical name to convert to a physical namebuildingContext
- The building context in which this is called.- Returns:
- The physical name
-