congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
QueryKey.hashCode
Code IndexAdd Tabnine to your IDE (free)

How to use
hashCode
method
in
org.hibernate.cache.spi.QueryKey

Best Java code snippets using org.hibernate.cache.spi.QueryKey.hashCode (Showing top 3 results out of 315)

origin: hibernate/hibernate-orm

private static void logCachedResultDetails(QueryKey key, Set querySpaces, Type[] returnTypes, List result) {
  if ( !TRACING ) {
    return;
  }
  LOG.trace( "key.hashCode=" + key.hashCode() );
  LOG.trace( "querySpaces=" + querySpaces );
  if ( returnTypes == null || returnTypes.length == 0 ) {
    LOG.trace(
        "Unexpected returnTypes is "
            + ( returnTypes == null ? "null" : "empty" ) + "! result"
            + ( result == null ? " is null" : ".size()=" + result.size() )
    );
  }
  else {
    final StringBuilder returnTypeInfo = new StringBuilder();
    for ( Type returnType : returnTypes ) {
      returnTypeInfo.append( "typename=" )
          .append( returnType.getName() )
          .append( " class=" )
          .append( returnType.getReturnedClass().getName() )
          .append( ' ' );
    }
    LOG.trace( "unexpected returnTypes is " + returnTypeInfo.toString() + "! result" );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

private static void logCachedResultDetails(QueryKey key, Set querySpaces, Type[] returnTypes, List result) {
  if ( !LOG.isTraceEnabled() ) {
    return;
  }
  LOG.trace( "key.hashCode=" + key.hashCode() );
  LOG.trace( "querySpaces=" + querySpaces );
  if ( returnTypes == null || returnTypes.length == 0 ) {
    LOG.trace(
        "Unexpected returnTypes is "
            + ( returnTypes == null ? "null" : "empty" ) + "! result"
            + ( result == null ? " is null" : ".size()=" + result.size() )
    );
  }
  else {
    StringBuilder returnTypeInfo = new StringBuilder();
    for ( int i = 0; i < returnTypes.length; i++ ) {
      returnTypeInfo.append( "typename=" )
          .append( returnTypes[i].getName() )
          .append( " class=" )
          .append( returnTypes[i].getReturnedClass().getName() ).append( ' ' );
    }
    LOG.trace( "unexpected returnTypes is " + returnTypeInfo.toString() + "! result" );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void logCachedResultDetails(QueryKey key, Set querySpaces, Type[] returnTypes, List result) {
  if ( !LOG.isTraceEnabled() ) {
    return;
  }
  LOG.trace( "key.hashCode=" + key.hashCode() );
  LOG.trace( "querySpaces=" + querySpaces );
  if ( returnTypes == null || returnTypes.length == 0 ) {
    LOG.trace(
        "Unexpected returnTypes is "
            + ( returnTypes == null ? "null" : "empty" ) + "! result"
            + ( result == null ? " is null" : ".size()=" + result.size() )
    );
  }
  else {
    StringBuilder returnTypeInfo = new StringBuilder();
    for ( int i = 0; i < returnTypes.length; i++ ) {
      returnTypeInfo.append( "typename=" )
          .append( returnTypes[i].getName() )
          .append( " class=" )
          .append( returnTypes[i].getReturnedClass().getName() ).append( ' ' );
    }
    LOG.trace( "unexpected returnTypes is " + returnTypeInfo.toString() + "! result" );
  }
}
org.hibernate.cache.spiQueryKeyhashCode

Javadoc

For performance reasons, the hashCode is cached; however, it is marked transient so that it can be recalculated as part of the serialization process which allows distributed query caches to work properly.

Popular methods of QueryKey

  • <init>
    Package-protected constructor.
  • generateHashCode
  • getResultTransformer
  • generateQueryKey
    Generates a QueryKey.
  • from

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JFileChooser (javax.swing)
  • JLabel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now