Package com.ibatis.common.jdbc.logging
Class BaseLogProxy
java.lang.Object
com.ibatis.common.jdbc.logging.BaseLogProxy
- Direct Known Subclasses:
ConnectionLogProxy
,PreparedStatementLogProxy
,ResultSetLogProxy
,StatementLogProxy
Base class for proxies to do logging.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Clear column info.protected Object
Gets the column.protected String
Gets the column string.protected static int
Gets the next id.protected String
Gets the type string.protected String
Gets the value string.protected String
removeBreakingWhitespace
(String original) Removes the breaking whitespace.protected void
Sets the column.
-
Field Details
-
SET_METHODS
The Constant SET_METHODS. -
GET_METHODS
The Constant GET_METHODS. -
EXECUTE_METHODS
The Constant EXECUTE_METHODS. -
id
protected int idThe id.
-
-
Constructor Details
-
BaseLogProxy
public BaseLogProxy()Default constructor.
-
-
Method Details
-
setColumn
Sets the column.- Parameters:
key
- the keyvalue
- the value
-
getColumn
Gets the column.- Parameters:
key
- the key- Returns:
- the column
-
getValueString
Gets the value string.- Returns:
- the value string
-
getTypeString
Gets the type string.- Returns:
- the type string
-
getColumnString
Gets the column string.- Returns:
- the column string
-
clearColumnInfo
protected void clearColumnInfo()Clear column info. -
removeBreakingWhitespace
Removes the breaking whitespace.- Parameters:
original
- the original- Returns:
- the string
-
getNextId
protected static int getNextId()Gets the next id.- Returns:
- the next id
-