public class MetadataStoreFactory
extends java.lang.Object
Use the appropriate create method to initialize the desired metadatastore type as the instance. A Db2 or a filesystem-backed metadata store can be initialized using the methods in this factory.
Use the getMetadataStore()
method to retrieve the metadata store instance after it has
been initialzied using this factory. metadataStoreExists()
can be used to check if an
instance has been initialized or not.
Constructor and Description |
---|
MetadataStoreFactory() |
Modifier and Type | Method and Description |
---|---|
static MetadataStore |
createDb2MetadataStore(java.lang.String userid,
java.io.File passwordFile,
java.util.Properties connectionProperties)
Create a configured Db2 backed metadata store instance using Db2 JDBC connection properties.
|
static MetadataStore |
createDb2MetadataStore(java.lang.String url,
java.lang.String userid,
java.io.File passwordFile)
Create a basic Db2 connected metadata store instance.
|
static MetadataStore |
createDb2MetadataStore(java.lang.String userid,
java.lang.String password,
java.util.Properties connectionProperties)
Create a configured Db2 backed metadata store instance using Db2 JDBC connection properties.
|
static MetadataStore |
createDb2MetadataStore(java.lang.String url,
java.lang.String userId,
java.lang.String password)
Create a basic Db2 connected metadata store instance.
|
static MetadataStore |
createFileMetadataStore()
Create a file system metadata store instance in the user's
$HOME directory |
static MetadataStore |
createFileMetadataStore(java.lang.String location)
Create a file system metadata store instance at the location provided.
|
static MetadataStore |
getMetadataStore()
Returns the previously created metadata store instance.
|
static boolean |
metadataStoreExists()
Check to see if a MetadataStore instance already exists
|
public static boolean metadataStoreExists()
TRUE
if MetadataStore existspublic static MetadataStore getMetadataStore()
public static MetadataStore createFileMetadataStore() throws BuildException
$HOME
directoryBuildException
public static MetadataStore createFileMetadataStore(java.lang.String location) throws BuildException
location
- - Location of the metadata store. If null then defaults to the user's $HOME
directoryBuildException
public static MetadataStore createDb2MetadataStore(java.lang.String url, java.lang.String userId, java.lang.String password) throws BuildException
url
- - Db2 server location. Local or remote URL. Must begin with 'jdbc:db2:
'.userId
- - The Db2 connection user IDpassword
- - The Db2 connection password. IMPORTANT! : This password must be encrypted using the DBB password utility.BuildException
public static MetadataStore createDb2MetadataStore(java.lang.String url, java.lang.String userid, java.io.File passwordFile) throws BuildException
url
- - Db2 server location. Local or remote URL. Must begin with 'jdbc:db2:
'.userId
- - The Db2 connection user ID.passwordFile
- - The Db2 connection passwordFile. IMPORTANT! : The password file must be encrypted using the DBB password utility.BuildException
public static MetadataStore createDb2MetadataStore(java.lang.String userid, java.lang.String password, java.util.Properties connectionProperties) throws BuildException
userId
- - The Db2 connection user IDpassword
- - The Db2 connection password. IMPORTANT! : This password must be encrypted using the DBB password utility.db2Properties
- - Java properties object containing Db2 JDBC connection propertiesBuildException
public static MetadataStore createDb2MetadataStore(java.lang.String userid, java.io.File passwordFile, java.util.Properties connectionProperties) throws BuildException
userId
- - The Db2 connection user IDpasswordFile
- - The Db2 connection passwordFile. IMPORTANT! : The password file must be encrypted using the DBB password utility.db2Properties
- - Java properties object containing Db2 JDBC connection propertiesBuildException
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.