public class T4Properties extends Object
JDBC Type 4 driver connetion properties class.
Description: The T4Properties class contains all the
properties associated with Type 4 connection. T4Properties is
inherited directy or indirectly by the T4Driver, TrafT4DataSource,
TrafT4ConnectionPooledDataSource
classes for configuring Type 4 connection properties.
The properties passed to the Type 4 driver have this precedence order in event of the values set through more than one option:
1. java.util.properties parameter in the
DriverManager.getConnectioncall or throughDataSource.setXXX()call.2.
java.util.propertiesfile properties set through-Dt4jdbc.propertiesoption.3. Command line properties using -D option. All the system properties passed through the command-line option have to be prefixed with
t4jdbc, to distinguish JDBC Type 4 driver properties from other system properties. For example: propertyuserwhen specified with -D has to be qualified as-Dt4jdbc.user=super.super.
Licensed to the Apache Software Foundation (ASF)
| Constructor and Description |
|---|
T4Properties() |
T4Properties(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName() |
String |
getCertificateDir() |
String |
getCertificateFile() |
String |
getCertificateFileActive() |
boolean |
getCompression() |
short |
getCpuToUse() |
boolean |
getDelayedErrorMode() |
boolean |
getKeepAlive() |
boolean |
getKeepRawFetchBuffer() |
PrintWriter |
getLogWriter()
Returns the
PrintWriter object associated with the current
Type 4 connection. |
Properties |
getProperties()
Returns all the connection properties associated with the current Type 4
connection object in the
java.util.Properties object. |
String |
getReplacementString() |
String |
getRoleName() |
String |
getSessionName() |
boolean |
getSPJEnv() |
boolean |
getTcpNoDelay() |
boolean |
getTokenAuth() |
String |
getUrl()
Returns the URL used in the current Type 4 connection.
|
void |
setApplicationName(String applicationName) |
void |
setCertificateDir(String dir) |
void |
setCertificateFile(String file) |
void |
setCertificateFileActive(String file) |
void |
setCompression(boolean compression) |
void |
setCompression(String compression) |
void |
setCpuToUse(short cpu) |
void |
setCpuToUse(String cpu) |
void |
setDelayedErrorMode(boolean mode) |
void |
setDelayedErrorMode(String mode) |
void |
setKeepAlive(boolean val) |
void |
setKeepAlive(String val) |
void |
setKeepRawFetchBuffer(boolean keep) |
void |
setKeepRawFetchBuffer(String keep) |
void |
setLogWriter(PrintWriter printWriter)
Sets the
PrintWriter object for the current Type 4
connection. |
void |
setReplacementString(String str) |
void |
setRoleName(String roleName) |
void |
setSessionName(String name) |
void |
setSPJEnv(boolean SPJEnv) |
void |
setSPJEnv(String SPJEnv) |
void |
setTcp_NoDelay(boolean val) |
void |
setTcpNoDelay(String val) |
void |
setTokenAuth(boolean val) |
void |
setTokenAuth(String val) |
public T4Properties()
public T4Properties(Properties props)
public Properties getProperties()
java.util.Properties object.public String getUrl()
jdbc:t4jdbc://host:port/:setUrl(String)public PrintWriter getLogWriter() throws SQLException
PrintWriter object associated with the current
Type 4 connection.java.io.PrintWriter object associated with current
connection.SQLException - when error occurs.setLogWriter(PrintWriter),
ConnectionPoolDataSourcepublic void setLogWriter(PrintWriter printWriter) throws SQLException
PrintWriter object for the current Type 4
connection.printWriter - For the current Type 4 logging.SQLException - when error occurs.getLogWriter(),
ConnectionPoolDataSourcepublic void setSPJEnv(String SPJEnv)
public void setSPJEnv(boolean SPJEnv)
public boolean getSPJEnv()
public void setKeepRawFetchBuffer(String keep)
public void setKeepRawFetchBuffer(boolean keep)
public boolean getKeepRawFetchBuffer()
public void setCpuToUse(String cpu)
public void setCpuToUse(short cpu)
public short getCpuToUse()
public void setSessionName(String name)
public String getSessionName()
public void setReplacementString(String str)
public String getReplacementString()
public String getRoleName()
public void setRoleName(String roleName)
public String getApplicationName()
public void setApplicationName(String applicationName)
public void setCertificateFileActive(String file)
public String getCertificateFileActive()
public void setCertificateFile(String file)
public String getCertificateFile()
public void setCertificateDir(String dir)
public String getCertificateDir()
public void setDelayedErrorMode(String mode)
public void setDelayedErrorMode(boolean mode)
public boolean getDelayedErrorMode()
public void setCompression(String compression)
public void setCompression(boolean compression)
public boolean getCompression()
public void setKeepAlive(String val)
public void setKeepAlive(boolean val)
public boolean getKeepAlive()
public void setTcpNoDelay(String val)
public void setTcp_NoDelay(boolean val)
public boolean getTcpNoDelay()
public void setTokenAuth(String val)
public void setTokenAuth(boolean val)
public boolean getTokenAuth()
Copyright © 2017. All Rights Reserved.