Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * Copyright 2014-2015 the original author or authors.
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * either express or implied. See the License for the specific language
  * governing permissions and limitations under the License.
 package org.dbflute.hook;
The information of SQL fire result.

 public class SqlFireResultInfo {
     // ===================================================================================
     //                                                                           Attribute
     //                                                                           =========
     protected final Object _nativeResult;
     protected final SqlLogInfo _sqlLogInfo;
     protected final ExecutionTimeInfo _executionTimeInfo;
     protected final SQLException _nativeCause;
     // ===================================================================================
     //                                                                         Constructor
     //                                                                         ===========
     public SqlFireResultInfo(Object nativeResultSqlLogInfo sqlLogInfoExecutionTimeInfo millisInfoSQLException nativeCause) {
          = nativeResult;
          = sqlLogInfo;
          = millisInfo;
          = nativeCause;
     // ===================================================================================
     //                                                                      Basic Override
     //                                                                      ==============
     public String toString() {
         final StringBuilder sb = new StringBuilder();
         sb.append("nativeResult=").append( != null ? .getClass().getName() : null);
         sb.append(", sqlLogInfo=").append();
         sb.append(", executionTimeInfo=").append();
         sb.append(", nativeCause=").append( != null ? .getClass().getName() : null);
         return sb.toString();
     // ===================================================================================
     //                                                                            Accessor
     //                                                                            ========
Get the JDBC native result of SQL fire.

The instance of result. (NullAllowed)
     public Object getNativeResult() {
         return ;

Get the information of SQL log info.
 o executedSql : The actually-executed SQL, which JDBC can analyze.
 o bindArgs : The argument values of bind variables.
 o bindArgTypes : The argument types of bind variables.
 o displaySql : The SQL string for display, bind variables are embedded.

The information of SQL info. (NotNull)
     public SqlLogInfo getSqlLogInfo() {
         return ;

Get the information of execution time info.
 o sqlBeforeTimeMillis : The time as millisecond before SQL execution (after building SQL clause).
 o sqlAfterTimeMillis : The time as millisecond after SQL execution (before mapping to entity).

The information of execution time. (NotNull)
         return ;

Get the native cause of SQL fire failure.

The native cause of SQL fire failure. (NullAllowed: if fire success, returns null)
    public SQLException getNativeCause() {
        return ;
New to GrepCode? Check out our FAQ X