com.sapportals.portal.ivs.cg
Class ConnectionProperties

java.lang.Object
  |
  +--com.sapportals.portal.ivs.cg.ConnectionProperties

public class ConnectionProperties
extends java.lang.Object

ConnectionProperties class helps the user to set required properties to establish connection to the backend. The locale and user properties are mandatory, while logLevel and logPath are optional and affect only when running JDBC queries over the connection. Default values of logLevel and logPath are set in the portal service connector of portal application com.sap.portal.ivs.internalconnector. log is active only if logPath is set

Version:
7.00

Field Summary
static java.lang.String JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS
          Constants for JDBC driver log level.
static java.lang.String JDBC_DRIVER_LOG_LEVEL_MSG_ONLY
          Constants for JDBC driver log level.
 
Constructor Summary
ConnectionProperties()
          Deprecated. Use ConnectionProperties(Locale,IPrincipal)
ConnectionProperties(java.util.Locale locale, com.sap.security.api.IPrincipal user)
           
 
Method Summary
 java.util.Locale getLocale()
           
 java.lang.String getLogLevel()
           
 java.lang.String getLogPath()
           
 com.sap.security.api.IPrincipal getUser()
           
 void setLocale(java.util.Locale locale)
          Sets the locale.
 void setLogLevel(java.lang.String logLevel)
          Sets the logLevel.
 void setLogPath(java.lang.String logPath)
          Sets the logPath.
 void setUser(com.sap.security.api.IPrincipal user)
          Sets the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JDBC_DRIVER_LOG_LEVEL_MSG_ONLY

public static final java.lang.String JDBC_DRIVER_LOG_LEVEL_MSG_ONLY
Constants for JDBC driver log level. Prints only messages to log

JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS

public static final java.lang.String JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS
Constants for JDBC driver log level. Prints messages and exceptions to log
Constructor Detail

ConnectionProperties

public ConnectionProperties(java.util.Locale locale,
                            com.sap.security.api.IPrincipal user)
Parameters:
locale - User's Locale
user - User

ConnectionProperties

public ConnectionProperties()
Deprecated. Use ConnectionProperties(Locale,IPrincipal)

Method Detail

getLocale

public java.util.Locale getLocale()
Returns:
Locale User's Locale

getUser

public com.sap.security.api.IPrincipal getUser()
Returns:
The user object

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.
Parameters:
locale - The locale to set

setUser

public void setUser(com.sap.security.api.IPrincipal user)
Sets the user.
Parameters:
user - The user to set

getLogLevel

public java.lang.String getLogLevel()
Returns:
The JDBC driver log level

getLogPath

public java.lang.String getLogPath()
Returns:
The JDBC driver log path

setLogLevel

public void setLogLevel(java.lang.String logLevel)
Sets the logLevel. Use constants of this class: JDBC_DRIVER_LOG_LEVEL_MSG_ONLY and JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS.
Parameters:
logLevel - The logLevel to set

setLogPath

public void setLogPath(java.lang.String logPath)
Sets the logPath.
Parameters:
logPath - The logPath to set