public enum QueryLogger extends java.lang.Enum<QueryLogger>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
record(java.util.List<LogQuery> logQueryList)
记录多个查询日志
|
void |
record(LogQuery logQuery)
记录单个查询日志
|
static QueryLogger |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QueryLogger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryLogger INSTANCE
public static QueryLogger[] values()
for (QueryLogger c : QueryLogger.values()) System.out.println(c);
public static QueryLogger valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void record(LogQuery logQuery)
logQuery - 查询日志信息public void record(java.util.List<LogQuery> logQueryList)
logQueryList - 查询日志信息集合