public class RidcConnectionUtils extends Object
Constructor and Description |
---|
RidcConnectionUtils() |
Modifier and Type | Method and Description |
---|---|
static oracle.adf.mbean.share.connection.wcc.WccConnection |
__createWccConnection(String connectionName,
String connectionUrl)
Creates the connection architecture connections.xml file at the
default location with connection name and connection url property.
|
static oracle.adf.mbean.share.connection.wcc.WccConnection |
__createWccConnection(String connectionName,
String connectionUrl,
String connectionXmlProvider)
Creates the connection architecture connections.xml file at the
specified location with connection name and connection url property.
|
static oracle.adf.mbean.share.connection.wcc.WccConnection |
__getWccConnection(String connectionName)
Returns the Ridc connection object for a given connection name.
|
static oracle.adf.mbean.share.connection.wcc.WccConnection |
__updateWccConnection(String connectionName,
String connectionUrl)
Updates the connection architecture connections.xml file url property
at the default location for a given connection name.
|
static oracle.adf.mbean.share.connection.wcc.WccConnection |
__updateWccConnection(String connectionName,
String connectionUrl,
String connectionXmlProvider)
Updates the connection architecture connections.xml file url property
at the specified location for a given connection name.
|
static void |
generateConnectionsFile()
Creates the connections.xml file and internally calls
generateConnectionType() to create the rc_ext.xml file.
|
static String |
getMessage(oracle.adf.share.logging.ADFLogger logger,
String msgKey,
Object... params)
Gets a translated message using the resource bundle associated with logger.
|
static void |
logIdcClientException(oracle.adf.share.logging.ADFLogger logger,
String clazz,
String method,
IdcClientException e,
String connectionName,
String operation) |
static void |
logServiceException(oracle.adf.share.logging.ADFLogger logger,
String clazz,
String method,
ServiceException se,
String connectionName,
String operation) |
static boolean |
nonEmpty(String s)
Tests if a given string has length greater than 0.
|
static boolean |
nonEmptyPostTrim(String s)
Tests if a given string when trimmed has length greater than 0.
|
static String |
normalizeEmptyStringToNull(String s)
Normalizes an empty string to
null . |
public static String getMessage(oracle.adf.share.logging.ADFLogger logger, String msgKey, Object... params)
logger
- The logger used to get the resource bundlemsgKey
- The resource keyparams
- Additional parameters to be formatted in the messagepublic static void logServiceException(oracle.adf.share.logging.ADFLogger logger, String clazz, String method, ServiceException se, String connectionName, String operation)
public static void logIdcClientException(oracle.adf.share.logging.ADFLogger logger, String clazz, String method, IdcClientException e, String connectionName, String operation)
public static void generateConnectionsFile() throws IOException
IOException
public static oracle.adf.mbean.share.connection.wcc.WccConnection __createWccConnection(String connectionName, String connectionUrl) throws NamingException
connectionName
- name of ridc connectionconnectionUrl
- name of ridc connection urlNamingException
public static oracle.adf.mbean.share.connection.wcc.WccConnection __createWccConnection(String connectionName, String connectionUrl, String connectionXmlProvider) throws NamingException
connectionName
- name of ridc connectionconnectionUrl
- name of ridc connection urlconnectionXmlProvider
- location of connections.xml providerNamingException
public static oracle.adf.mbean.share.connection.wcc.WccConnection __updateWccConnection(String connectionName, String connectionUrl) throws NamingException
connectionName
- name of ridc connectionconnectionUrl
- name of ridc connection urlNamingException
public static oracle.adf.mbean.share.connection.wcc.WccConnection __updateWccConnection(String connectionName, String connectionUrl, String connectionXmlProvider) throws NamingException
connectionName
- name of ridc connectionconnectionUrl
- name of ridc connection urlconnectionXmlProvider
- location of connections.xml providerNamingException
public static oracle.adf.mbean.share.connection.wcc.WccConnection __getWccConnection(String connectionName) throws NamingException
connectionName
- name of ridc connectionNamingException
public static boolean nonEmptyPostTrim(String s)
s
- the stringpublic static boolean nonEmpty(String s)
s
- the string