Tabnine Logo
SessionImplementor.bestGuessEntityName
Code IndexAdd Tabnine to your IDE (free)

How to use
bestGuessEntityName
method
in
org.hibernate.engine.spi.SessionImplementor

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.bestGuessEntityName (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

@Override
public String bestGuessEntityName(Object object) {
  return delegate.bestGuessEntityName( object );
}
origin: hibernate/hibernate-orm

toEntityName = session.bestGuessEntityName( value );
origin: hibernate/hibernate-orm

entityName = source.bestGuessEntityName( entity );
event.setEntityName( entityName );
origin: org.jboss.seam/jboss-seam

public String bestGuessEntityName(Object paramObject)
{
 return ((SessionImplementor) delegate).bestGuessEntityName(paramObject);
}
origin: org.hibernate/com.springsource.org.hibernate

private String resolveEntityName(Object val) {
  if ( val == null ) {
    throw new IllegalArgumentException( "entity for parameter binding cannot be null" );
  }
  return session.bestGuessEntityName( val );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private String resolveEntityName(Object val) {
  if ( val == null ) {
    throw new IllegalArgumentException( "entity for parameter binding cannot be null" );
  }
  return session.bestGuessEntityName( val );
}
origin: org.hibernate/com.springsource.org.hibernate

  public String toLoggableString(SessionImplementor session) {
    StringBuilder sb = new StringBuilder( getClass().getSimpleName() ).append( '[' );
    for ( Map.Entry<Object,Set<String>> entry : propertyPathsByTransientEntity.entrySet() ) {
      sb.append( "transientEntityName=" ).append( session.bestGuessEntityName( entry.getKey() ) );
      sb.append( " requiredBy=" ).append( entry.getValue() );
    }
    sb.append( ']' );
    return sb.toString();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

  public String toLoggableString(SessionImplementor session) {
    StringBuilder sb = new StringBuilder( getClass().getSimpleName() ).append( '[' );
    for ( Map.Entry<Object,Set<String>> entry : propertyPathsByTransientEntity.entrySet() ) {
      sb.append( "transientEntityName=" ).append( session.bestGuessEntityName( entry.getKey() ) );
      sb.append( " requiredBy=" ).append( entry.getValue() );
    }
    sb.append( ']' );
    return sb.toString();
  }
}
origin: riotfamily/riot

public Serializable disassemble(Object value, SessionImplementor session, Object owner)
throws HibernateException {
  return value==null ?
    null :
    new ObjectTypeCacheEntry(
          session.bestGuessEntityName(value),
          ForeignKeys.getEntityIdentifierIfNotUnsaved( 
              session.bestGuessEntityName(value), value, session 
            )
        );
}
origin: com.atlassian.hibernate/hibernate.adapter

@Override
public String bestGuessEntityName(final Object object) {
  return getSessionImplementor().bestGuessEntityName(object);
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Serializable disassemble(Object value, SessionImplementor session, Object owner)
throws HibernateException {
  return value==null ?
    null :
    new ObjectTypeCacheEntry(
          session.bestGuessEntityName(value),
          ForeignKeys.getEntityIdentifierIfNotUnsaved( 
              session.bestGuessEntityName(value), value, session 
            )
        );
}
origin: org.hibernate/com.springsource.org.hibernate

public Serializable disassemble(Object value, SessionImplementor session, Object owner)
throws HibernateException {
  return value==null ?
    null :
    new ObjectTypeCacheEntry(
          session.bestGuessEntityName(value),
          ForeignKeys.getEntityIdentifierIfNotUnsaved( 
              session.bestGuessEntityName(value), value, session 
            )
        );
}
origin: org.hibernate/com.springsource.org.hibernate

private Serializable getIdentifier(Object value, SessionImplementor session) throws HibernateException {
  try {
    return ForeignKeys.getEntityIdentifierIfNotUnsaved( session.bestGuessEntityName(value), value, session );
  }
  catch (TransientObjectException toe) {
    return null;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public Object getPropertyValue(Object component, int i, SessionImplementor session)
  throws HibernateException {
  return i==0 ?
      session.bestGuessEntityName(component) :
      getIdentifier(component, session);
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Object getPropertyValue(Object component, int i, SessionImplementor session)
  throws HibernateException {
  return i==0 ?
      session.bestGuessEntityName(component) :
      getIdentifier(component, session);
}
origin: org.hibernate/com.springsource.org.hibernate.core

private Serializable getIdentifier(Object value, SessionImplementor session) throws HibernateException {
  try {
    return ForeignKeys.getEntityIdentifierIfNotUnsaved( session.bestGuessEntityName(value), value, session );
  }
  catch (TransientObjectException toe) {
    return null;
  }
}
origin: riotfamily/riot

public Object getPropertyValue(Object component, int i, SessionImplementor session)
  throws HibernateException {
  return i==0 ?
      session.bestGuessEntityName(component) :
      getIdentifier(component, session);
}
origin: riotfamily/riot

private Serializable getIdentifier(Object value, SessionImplementor session) throws HibernateException {
  try {
    return ForeignKeys.getEntityIdentifierIfNotUnsaved( session.bestGuessEntityName(value), value, session );
  }
  catch (TransientObjectException toe) {
    return null;
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public boolean isModified(Object old, Object current, boolean[] checkable, SessionImplementor session)
throws HibernateException {
  if (current==null) return old!=null;
  if (old==null) return current!=null;
  ObjectTypeCacheEntry holder = (ObjectTypeCacheEntry) old;
  boolean[] idcheckable = new boolean[checkable.length-1];
  System.arraycopy(checkable, 1, idcheckable, 0, idcheckable.length);
  return ( checkable[0] && !holder.entityName.equals( session.bestGuessEntityName(current) ) ) ||
      identifierType.isModified(holder.id, getIdentifier(current, session), idcheckable, session);
}
origin: org.hibernate/com.springsource.org.hibernate.core

public boolean isModified(Object old, Object current, boolean[] checkable, SessionImplementor session)
throws HibernateException {
  if (current==null) return old!=null;
  if (old==null) return current!=null;
  ObjectTypeCacheEntry holder = (ObjectTypeCacheEntry) old;
  boolean[] idcheckable = new boolean[checkable.length-1];
  System.arraycopy(checkable, 1, idcheckable, 0, idcheckable.length);
  return ( checkable[0] && !holder.entityName.equals( session.bestGuessEntityName(current) ) ) ||
      identifierType.isModified(holder.id, getIdentifier(current, session), idcheckable, session);
}
org.hibernate.engine.spiSessionImplementorbestGuessEntityName

Javadoc

The best guess entity name for an entity not in an association

Popular methods of SessionImplementor

  • getFactory
    Get the creating SessionFactoryImplementor
  • getTransactionCoordinator
  • connection
  • getPersistenceContext
    Get the persistence context for this session
  • getLoadQueryInfluencers
    Get the load query influencers associated with this session.
  • isTransactionInProgress
    Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
  • getEntityPersister
    Get the EntityPersister for any instance
  • getJdbcCoordinator
  • isClosed
    Determine whether the session is closed. Provided separately from #isOpen() as this method does not
  • flush
  • getTenantIdentifier
    Match te method on org.hibernate.Session and org.hibernate.StatelessSession
  • generateEntityKey
  • getTenantIdentifier,
  • generateEntityKey,
  • getContextEntityIdentifier,
  • isOpen,
  • getFlushMode,
  • getSessionFactory,
  • guessEntityName,
  • immediateLoad,
  • initializeCollection

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • CodeWhisperer alternatives
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