java.lang.Object
org.seasar.doma.jdbc.CommentContext
A context for a comment.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name that executes the SQL.Returns the configuration.Returns the message orOptional.empty().Returns the DAO method orOptional.empty()if the SQL is built by the builder classes such asSelectBuilder.Returns the method name that executes the SQL.
-
Field Details
-
className
-
methodName
-
config
-
method
-
message
-
-
Constructor Details
-
CommentContext
public CommentContext(String className, String methodName, Config config, Method method, String message) Creates an instance.- Parameters:
className- the class name that executes the SQLmethodName- the method name that executes the SQLconfig- the configurationmethod- the DAO methodmessage- the message
-
-
Method Details
-
getClassName
Returns the class name that executes the SQL.- Returns:
- the class name
-
getMethodName
Returns the method name that executes the SQL.- Returns:
- the method name
-
getConfig
Returns the configuration.- Returns:
- the configuration
-
getMethod
Returns the DAO method orOptional.empty()if the SQL is built by the builder classes such asSelectBuilder.- Returns:
- the DAO method or
Optional.empty()if it does not exit
-
getMessage
Returns the message orOptional.empty().- Returns:
- the message or
Optional.empty()if it does not exit
-