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
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  * 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.

Author(s):
jflute
 
 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
     //                                                                      ==============
     @Override
     public String toString() {
         final StringBuilder sb = new StringBuilder();
         sb.append("{");
         sb.append("nativeResult=").append( != null ? .getClass().getName() : null);
         sb.append(", sqlLogInfo=").append();
         sb.append(", executionTimeInfo=").append();
         sb.append(", nativeCause=").append( != null ? .getClass().getName() : null);
         sb.append("}");
         return sb.toString();
     }
 
     // ===================================================================================
     //                                                                            Accessor
     //                                                                            ========
     
Get the JDBC native result of SQL fire.

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

    
Get the information of SQL log info.
 [SqlLogInfo]
 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.
 

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

    
Get the information of execution time info.
 [ExecutionTimeInfo]
 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).
 

Returns:
The information of execution time. (NotNull)
 
         return ;
     }

    
Get the native cause of SQL fire failure.

Returns:
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