public final class MssqlNameNormalizer extends Object
Handles: [brackets], "double quotes", case normalization,
1-4 part names (server.database.schema.object), and
missing schema defaulting to dbo.
| Modifier and Type | Class and Description |
|---|---|
static class |
MssqlNameNormalizer.NormalizedName
Normalized SQL Server name with server/database/schema/object components.
|
| Modifier and Type | Method and Description |
|---|---|
static MssqlNameNormalizer.NormalizedName |
normalize(String rawName)
Normalizes a raw SQL Server object name.
|
static List<String> |
splitParts(String rawName)
Splits a multi-part name by dots, respecting bracket and quote delimiters.
|
static String |
stripQuotes(String part)
Strips surrounding
[] and "" quote characters from a name part. |
public static MssqlNameNormalizer.NormalizedName normalize(String rawName)
rawName - the raw name (e.g., [dbo].[proc_name])public static List<String> splitParts(String rawName)
public static String stripQuotes(String part)
[] and "" quote characters from a name part.