| Modifier and Type | Field and Description |
|---|---|
| private static List | _nameToVendorPlatform
Holds mapping between possible vendor names to internal platforms defined above. |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: Database platform that corresponds tovendorName.
If vendorName does not match any of predefined vendor names,
DEFAULTPLATFORM is returned.Input vendor name. Typically this is obtained by querying
vendorName, String minorVersion, String majorVersion, SessionLog DatabaseMetaData.The logger. logger)Get Database Platform from vendor name. |
| private static List | initializeNameToVendorPlatform(SessionLog logger)
Allocate and initialize nameToVendorPlatform if not already done. |
| private static void | load(List<String[]>
Properties object to load properties, final String Name of resource.
If loadFromFile is true, this is fully qualified path name to a file.
param classLoader is ignored.
If loadFromFile is false,this is resource name. resourceName)Loads properties list from the specified resource into specified Properties object. |
| private static void | |
| private static boolean | Returns: false if there is error compiling regExp or target does not match regExp. true if regExp matches pattern.The regular expression. regExp, String The target against which we are trying to match regExp. target, SessionLog logger)Matches target to pattern specified regExp. |
| private static String | matchVendorNameInProperties(String vendorName, List<String[]> nameToVendorPlatform, SessionLog logger)
Match vendorName in properties specified by _nameToVendorPlatform. |
| private static InputStream | openResourceInputStream(final String resourceName)
Open resourceName as input stream inside doPriviledged block |
| private static String[] |
| _nameToVendorPlatform | back to summary |
|---|---|
| private static List<String[]> _nameToVendorPlatform Holds mapping between possible vendor names to internal platforms defined above. vendor names are treated as regular expressions. | |
| DEFAULTPLATFORM | back to summary |
|---|---|
| private static final String DEFAULTPLATFORM | |
| PROPERTY_PATH | back to summary |
|---|---|
| private static final String PROPERTY_PATH | |
| VENDOR_NAME_TO_PLATFORM_RESOURCE_NAME | back to summary |
|---|---|
| private static final String VENDOR_NAME_TO_PLATFORM_RESOURCE_NAME | |
| DBPlatformHelper | back to summary |
|---|---|
| public DBPlatformHelper() | |
| getDBPlatform | back to summary |
|---|---|
| public static String getDBPlatform(String vendorName, String minorVersion, String majorVersion, SessionLog logger) Get Database Platform from vendor name.
| |
| initializeNameToVendorPlatform | back to summary |
|---|---|
| private static List Allocate and initialize nameToVendorPlatform if not already done. | |
| load | back to summary |
|---|---|
| private static void load(List<String[]> properties, final String resourceName) throws IOException Loads properties list from the specified resource into specified Properties object. | |
| loadFromResource | back to summary |
|---|---|
| private static void loadFromResource(List<String[]> properties, String resourceName) throws IOException | |
| matchPattern | back to summary |
|---|---|
| private static boolean matchPattern(String regExp, String target, SessionLog logger) Matches target to pattern specified regExp. Returns false if there is any error compiling regExp. | |
| matchVendorNameInProperties | back to summary |
|---|---|
| private static String matchVendorNameInProperties(String vendorName, List<String[]> nameToVendorPlatform, SessionLog logger) Match vendorName in properties specified by _nameToVendorPlatform. | |
| openResourceInputStream | back to summary |
|---|---|
| private static InputStream openResourceInputStream(final String resourceName) throws IOException Open resourceName as input stream inside doPriviledged block | |
| validateLineForReturnAsKeyValueArray | back to summary |
|---|---|
| private static String[] validateLineForReturnAsKeyValueArray(String line) | |