public class CommentContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
className |
protected Config |
config |
protected java.util.Optional<java.lang.String> |
message |
protected java.util.Optional<java.lang.reflect.Method> |
method |
protected java.lang.String |
methodName |
Constructor and Description |
---|
CommentContext(java.lang.String className,
java.lang.String methodName,
Config config,
java.lang.reflect.Method method,
java.lang.String message)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Returns the class name that executes the SQL.
|
Config |
getConfig()
Returns the configuration.
|
java.util.Optional<java.lang.String> |
getMessage()
Returns the message or
Optional.empty() . |
java.util.Optional<java.lang.reflect.Method> |
getMethod()
Returns the DAO method or
Optional.empty() if the SQL is built by the builder classes
such as SelectBuilder . |
java.lang.String |
getMethodName()
Returns the method name that executes the SQL.
|
protected final java.lang.String className
protected final java.lang.String methodName
protected final Config config
protected final java.util.Optional<java.lang.reflect.Method> method
protected final java.util.Optional<java.lang.String> message
public CommentContext(java.lang.String className, java.lang.String methodName, Config config, java.lang.reflect.Method method, java.lang.String message)
className
- the class name that executes the SQLmethodName
- the method name that executes the SQLconfig
- the configurationmethod
- the DAO methodmessage
- the messagepublic java.lang.String getClassName()
public java.lang.String getMethodName()
public Config getConfig()
public java.util.Optional<java.lang.reflect.Method> getMethod()
Optional.empty()
if the SQL is built by the builder classes
such as SelectBuilder
.Optional.empty()
if it does not exitpublic java.util.Optional<java.lang.String> getMessage()
Optional.empty()
.Optional.empty()
if it does not exit