com.sapportals.portal.ivs.cg

Class ConnectionProperties

java.lang.Object
  extended by com.sapportals.portal.ivs.cg.ConnectionProperties

public class ConnectionProperties
extends Object

The class that represents connection properties. This class helps the user set the required properties to establish a connection to a back-end system.
The locale and user properties are mandatory, while logLevel and logPath properties are optional and are used only when running JDBC queries over the connection.
The log is active only if logPath is set.


Field Summary
static String JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS
          A constant that indicates a JDBC driver log level that prints messages and exceptions to the log.
static String JDBC_DRIVER_LOG_LEVEL_MSG_ONLY
          A constant that indicates a JDBC driver log level that prints only messages to the log.
 
Constructor Summary
ConnectionProperties()
          Deprecated. use ConnectionProperties(Locale,IPrincipal)
ConnectionProperties(Locale locale, com.sap.security.api.IPrincipal user)
          Sets the connection properties for a user.
 
Method Summary
 Locale getLocale()
          Gets the locale for the connection.
 String getLogLevel()
          Gets the JDBC driver log level.
 String getLogPath()
          Gets the JDBC driver log path.
 com.sap.security.api.IPrincipal getUser()
          Gets the user for the connection.
 void setLocale(Locale locale)
          Sets the locale for the connection.
 void setLogLevel(String logLevel)
          Sets the JDBC driver logLevel.
 void setLogPath(String logPath)
          Sets the JDBC driver logPath.
 void setUser(com.sap.security.api.IPrincipal user)
          Sets the user for the connection.
 
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 String JDBC_DRIVER_LOG_LEVEL_MSG_ONLY
A constant that indicates a JDBC driver log level that prints only messages to the log.

See Also:
Constant Field Values

JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS

public static final String JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS
A constant that indicates a JDBC driver log level that prints messages and exceptions to the log.

See Also:
Constant Field Values
Constructor Detail

ConnectionProperties

public ConnectionProperties(Locale locale,
                            com.sap.security.api.IPrincipal user)
Sets the connection properties for a user.

Parameters:
locale - the locale for the connection
user - the user for the connection

ConnectionProperties

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

Method Detail

getLocale

public Locale getLocale()
Gets the locale for the connection.

Returns:
the locale

getUser

public com.sap.security.api.IPrincipal getUser()
Gets the user for the connection.

Returns:
the user

setLocale

public void setLocale(Locale locale)
Sets the locale for the connection.

Parameters:
locale - a locale

setUser

public void setUser(com.sap.security.api.IPrincipal user)
Sets the user for the connection.

Parameters:
user - a user

getLogLevel

public String getLogLevel()
Gets the JDBC driver log level.

Returns:
the log level

getLogPath

public String getLogPath()
Gets the JDBC driver log path.

Returns:
the log path

setLogLevel

public void setLogLevel(String logLevel)
Sets the JDBC driver logLevel. Uses the constants JDBC_DRIVER_LOG_LEVEL_MSG_ONLY and JDBC_DRIVER_LOG_LEVEL_MSG_AND_EXCEPTIONS.

Parameters:
logLevel - the JDBC driver logLevel

setLogPath

public void setLogPath(String logPath)
Sets the JDBC driver logPath.

Parameters:
logPath - the logPath
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-CONNECTIVITY [sap.com] tc/ep/connectivity/api api EP-VC-CON
[sap.com] EP-CONNECTIVITY [sap.com] tc/ep/connectivity/lib/api api EP-VC-CON
[sap.com] EP-CONNECTIVITY [sap.com] tc/pp/smntcs/int/portalservicesapilibdeprecated api EP-VC-CON


Copyright 2015 SAP AG Complete Copyright Notice