Package oracle.wcc.ridc.adfca.framework
Class RidcConnectionUtils
java.lang.Object
oracle.wcc.ridc.adfca.framework.RidcConnectionUtils
Util class to manage ridc connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidCreates the connections.xml file and internally calls generateConnectionType() to create the rc_ext.xml file.static StringgetMessage(oracle.adf.share.logging.ADFLogger logger, String msgKey, Object... params) Gets a translated message using the resource bundle associated with logger.static voidlogIdcClientException(oracle.adf.share.logging.ADFLogger logger, String clazz, String method, IdcClientException e, String connectionName, String operation) static voidlogServiceException(oracle.adf.share.logging.ADFLogger logger, String clazz, String method, ServiceException se, String connectionName, String operation) static booleanTests if a given string has length greater than 0.static booleanTests if a given string when trimmed has length greater than 0.static final StringNormalizes an empty string tonull.
-
Constructor Details
-
RidcConnectionUtils
public RidcConnectionUtils()
-
-
Method Details
-
generateConnectionsFile
Creates the connections.xml file and internally calls generateConnectionType() to create the rc_ext.xml file.- Throws:
IOException
-
__createWccConnection
public static oracle.adf.mbean.share.connection.wcc.WccConnection __createWccConnection(String connectionName, String connectionUrl) throws NamingException Creates the connection architecture connections.xml file at the default location with connection name and connection url property.- Parameters:
connectionName- name of ridc connectionconnectionUrl- name of ridc connection url- Returns:
- RidcConnectionImpl
- Throws:
NamingException
-
__createWccConnection
public static oracle.adf.mbean.share.connection.wcc.WccConnection __createWccConnection(String connectionName, String connectionUrl, String connectionXmlProvider) throws NamingException Creates the connection architecture connections.xml file at the specified location with connection name and connection url property.- Parameters:
connectionName- name of ridc connectionconnectionUrl- name of ridc connection urlconnectionXmlProvider- location of connections.xml provider- Returns:
- RidcConnectionImpl
- Throws:
NamingException
-
__updateWccConnection
public static oracle.adf.mbean.share.connection.wcc.WccConnection __updateWccConnection(String connectionName, String connectionUrl) throws NamingException Updates the connection architecture connections.xml file url property at the default location for a given connection name.- Parameters:
connectionName- name of ridc connectionconnectionUrl- name of ridc connection url- Returns:
- RidcConnectionImpl
- Throws:
NamingException
-
__updateWccConnection
public static oracle.adf.mbean.share.connection.wcc.WccConnection __updateWccConnection(String connectionName, String connectionUrl, String connectionXmlProvider) throws NamingException Updates the connection architecture connections.xml file url property at the specified location for a given connection name.- Parameters:
connectionName- name of ridc connectionconnectionUrl- name of ridc connection urlconnectionXmlProvider- location of connections.xml provider- Returns:
- RidcConnectionImpl
- Throws:
NamingException
-
__getWccConnection
public static oracle.adf.mbean.share.connection.wcc.WccConnection __getWccConnection(String connectionName) throws NamingException Returns the Ridc connection object for a given connection name.- Parameters:
connectionName- name of ridc connection- Returns:
- RidcConnectionImpl
- Throws:
NamingException
-
nonEmptyPostTrim
Tests if a given string when trimmed has length greater than 0.- Parameters:
s- the string- Returns:
- true if string not null and when trimmed has length greater than 0
-
nonEmpty
Tests if a given string has length greater than 0.- Parameters:
s- the string- Returns:
- true if string not null and has length greater than 0
-
normalizeEmptyStringToNull
Normalizes an empty string tonull.- Parameters:
s- the string- Returns:
- the string or
nullif the string is empty