📄 oracle.jdbc.driver.oraclelog.html
字号:
</pre><a name="FIELD_SUBMOD"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>FIELD_SUBMOD</b><pre> public static final int FIELD_SUBMOD</pre><a name="FIELD_CATEGORY"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>FIELD_CATEGORY</b><pre> public static final int FIELD_CATEGORY</pre><a name="FIELD_CONN"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>FIELD_CONN</b><pre> public static final int FIELD_CONN</pre><a name="FIELD_THREAD"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>FIELD_THREAD</b><pre> public static final int FIELD_THREAD</pre><a name="FIELD_DEFAULT"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>FIELD_DEFAULT</b><pre> public static final int FIELD_DEFAULT</pre><a name="TRACE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a><b>TRACE</b><pre> public static boolean TRACE</pre><a name="constructors"></a><h2> <img src="images/constructors.gif" width=231 height=38 alt="Constructors"></h2><a name="OracleLog"></a><a name="OracleLog()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a><b>OracleLog</b><pre> public OracleLog()</pre><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="isEnabled()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="isEnabled"><b>isEnabled</b></a><pre> public static boolean isEnabled()</pre><dl> <dd> Check if logging is enabled.<p> <dd><dl> <dt> <b>Returns:</b> <dd> true if logging is enabled, or false if not. </dl></dd></dl><a name="setLogWriter(java.io.PrintWriter)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="setLogWriter"><b>setLogWriter</b></a><pre> public static void setLogWriter(PrintWriter out)</pre><dl> <dd> Set the logging PrintWriter.<p>This method is also used to enable and disable logging.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> outPrintWriter - object (use null to disable logging). </dl></dd></dl><a name="getLogWriter()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="getLogWriter"><b>getLogWriter</b></a><pre> public static PrintWriter getLogWriter()</pre><dl> <dd> Get the logging PrintWriter.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the logging PrintWriter, or null if logging is disabled. </dl></dd></dl><a name="setLogStream(java.io.PrintStream)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="setLogStream"><b>setLogStream</b></a><pre> public static void setLogStream(PrintStream out)</pre><dl> <dd> Set the logging PrintStream. This method is also used to enableand disable logging.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> outPrintStream - (use null to disable logging). </dl></dd></dl><a name="getLogStream()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="getLogStream"><b>getLogStream</b></a><pre> public static PrintStream getLogStream()</pre><dl> <dd> Get the logging PrintStream.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the logging PrintStream, or null if logging is disabled. </dl></dd></dl><a name="config(int, int, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="config"><b>config</b></a><pre> public static void config(int printMask, int moduleMask, int categoryMask)</pre><dl> <dd> Configure tracing with the specified filtering masks.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> printMask32-bit - mask specifying attributes to be logged.(See defined constants for the available attributes.) <dd> moduleMask32-bit - mask specifying the modules to be enabled.(See defined constants for the available modules.) <dd> categoryMask32-bit - mask specifying the categories to be enabled.(See defined constants for the available categories.) </dl></dd></dl><a name="setSubmodMask(int, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="setSubmodMask"><b>setSubmodMask</b></a><pre> public static void setSubmodMask(int module, int submodMask)</pre><dl> <dd> Configure the sub-module mask for a module.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> modulemodule - identifier. <dd> submodMask32-bit - mask specifying the sub-modules to be enabled. </dl></dd></dl><a name="setMaxPrintBytes(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="setMaxPrintBytes"><b>setMaxPrintBytes</b></a><pre> public static void setMaxPrintBytes(int maxbytes)</pre><dl> <dd> Configure the maximum number of bytes to be printed in each message.<p>This setting only limits the size of the printed byte arrays.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> maxbytesmaximum - number of bytes to be printed. </dl></dd></dl><a name="print(oracle.jdbc.driver.OracleConnection, int, int, int, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="print"><b>print</b></a><pre> public static void print(<a href="oracle.jdbc.driver.OracleConnection.html#_top_">OracleConnection</a> conn, int module, int submodule, int category, String message)</pre><dl> <dd> Print a message to the JDBC log stream.<p>This method contains the actual implementation of print(). Otherversions (with different signatures) invoke this method to logmessages.<p>It is important to note that an "if (OracleLog.TRACE)" clause mustbe used to avoid unnecessary computation on the arguments on thismethod when tracing is disabled.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> connJdbc - connection. <dd> modulemodule - identifier. <dd> submodulesub-module - identifier. <dd> categorymessage - category. <dd> messagemessage - string. </dl></dd></dl><a name="print(oracle.jdbc.driver.OracleConnection, int, int, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="print"><b>print</b></a><pre> public static void print(<a href="oracle.jdbc.driver.OracleConnection.html#_top_">OracleConnection</a> conn, int module, int category, String message)</pre><a name="print(int, int, int, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="print"><b>print</b></a><pre> public static void print(int module, int submodule, int category, String message)</pre><a name="print(int, int, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="print"><b>print</b></a><pre> public static void print(int module, int category, String message)</pre><a name="info()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="info"><b>info</b></a><pre> public static String info()</pre><dl> <dd> Obtain information about the current settings.<p> <dd><dl> <dt> <b>Returns:</b> <dd> information about the current setting of OracleLog </dl></dd></dl><a name="getModuleName(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="getModuleName"><b>getModuleName</b></a><pre> public static String getModuleName(int module)</pre><dl> <dd> Obtain the name of a module.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> modulemodule - identifier. <dt> <b>Returns:</b> <dd> the name of the specified module </dl></dd></dl><a name="getCategoryName(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="getCategoryName"><b>getCategoryName</b></a><pre> public static String getCategoryName(int category)</pre><dl> <dd> Obtain the name of a category.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> categorycategory - identifier. <dt> <b>Returns:</b> <dd> the name of the specified category </dl></dd></dl><a name="getBitNumFromVector(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="getBitNumFromVector"><b>getBitNumFromVector</b></a><pre> public static int getBitNumFromVector(int bitVector)</pre><dl> <dd> Obtain bit number from a bit vector<p> <dd><dl> <dt> <b>Parameters:</b> <dd> bitVectorinput - bit vector. <dt> <b>Returns:</b> <dd> the number of the first bit set in the input vector. </dl></dd></dl><a name="bytesToPrintableForm(java.lang.String, byte[])"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="bytesToPrintableForm"><b>bytesToPrintableForm</b></a><pre> public static String bytesToPrintableForm(String header, byte bytes[])</pre><dl> <dd> Present byte array into printable form.<p>Bytes are formatted in hexadecimal. The output is limited to themaximum number of bytes set by setMaxPrintBytes().<p> <dd><dl> <dt> <b>Parameters:</b> <dd> headerheading - of the returned string. <dd> bytesinput - byte array. <dt> <b>Returns:</b> <dd> the printable string. </dl></dd></dl><a name="bytesToPrintableForm(java.lang.String, byte[], int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="bytesToPrintableForm"><b>bytesToPrintableForm</b></a><pre> public static String bytesToPrintableForm(String header, byte bytes[], int nbytes)</pre><dl> <dd> Present byte array into printable form.<p>Bytes are formatted in hexadecimal. The output is limited to themaximum number of bytes set by setMaxPrintBytes().<p> <dd><dl> <dt> <b>Parameters:</b> <dd> headerheading - of the returned string. <dd> bytesinput - byte array. <dd> nbytesnumber - of valid bytes in the input array. <dt> <b>Returns:</b> <dd> the printable string. </dl></dd></dl><a name="bytesToFormattedStr(byte[], int, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="bytesToFormattedStr"><b>bytesToFormattedStr</b></a><pre> public static String bytesToFormattedStr(byte bytes[], int nbytes, String margin)</pre><dl> <dd> Format bytes into a string of printable form.<p>Bytes are formatted in hexadecimal. The output is limited to themaximum number of bytes set by setMaxPrintBytes().<p> <dd><dl> <dt> <b>Parameters:</b> <dd> bytesinput - byte array. <dd> nbytesnumber - of valid bytes in the input array. <dd> marginleft - margin of the printable block. Use null if nomargin is needed. <dt> <b>Returns:</b> <dd> the formatted string. </dl></dd></dl><a name="strToUcs2Bytes(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="strToUcs2Bytes"><b>strToUcs2Bytes</b></a><pre> public static byte[] strToUcs2Bytes(String str)</pre><dl> <dd> Convert a string into UCS-2 bytes (2 bytes per character).<p> <dd><dl> <dt> <b>Parameters:</b> <dd> strinput - string. <dt> <b>Returns:</b> <dd> the output byte array, or null if the input stringis null. </dl></dd></dl><a name="charsToUcs2Bytes(char[])"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="charsToUcs2Bytes"><b>charsToUcs2Bytes</b></a><pre> public static byte[] charsToUcs2Bytes(char chars[])</pre><dl> <dd> Convert a character array into UCS-2 bytes (2 bytes per character).<p> <dd><dl> <dt> <b>Parameters:</b> <dd> charsinput - character array. <dt> <b>Returns:</b> <dd> the output byte array, or null if the input characterarray is null. </dl></dd></dl><a name="charsToUcs2Bytes(char[], int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="charsToUcs2Bytes"><b>charsToUcs2Bytes</b></a><pre> public static byte[] charsToUcs2Bytes(char chars[], int nchars)</pre><dl> <dd> Convert a character array into UCS-2 bytes (2 bytes per character).<p> <dd><dl> <dt> <b>Parameters:</b> <dd> charsinput - character array. <dd> ncharsnumber - of valid characters in the input characterarray. <dt> <b>Returns:</b> <dd> the ouput byte array. </dl></dd></dl><a name="test()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a><a name="test"><b>test</b></a><pre> public static void test()</pre><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-oracle.jdbc.driver.html">This Package</a> <a href="oracle.jdbc.driver.OracleDriver.html#_top_">Previous</a> <a href="oracle.jdbc.driver.OraclePreparedStatement.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -