Codota Logo
Settings.isCommentsEnabled
Code IndexAdd Codota to your IDE (free)

How to use
isCommentsEnabled
method
in
org.hibernate.cfg.Settings

Best Java code snippets using org.hibernate.cfg.Settings.isCommentsEnabled (Showing top 20 results out of 315)

  • Common ways to obtain Settings
private void myMethod () {
Settings s =
  • Codota Iconnew Settings()
  • Codota IconSessionFactoryImplementor sessionFactoryImplementor;sessionFactoryImplementor.getSettings()
  • Codota IconUnionSubclassEntityPersister unionSubclassEntityPersister;unionSubclassEntityPersister.getFactory().getSettings()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

if ( getFactory().getSettings().isCommentsEnabled() ) {
  select.setComment( "load collection " + collectionPersister.getRole() );
origin: hibernate/hibernate-orm

if ( getFactory().getSettings().isCommentsEnabled() ) {
  select.setComment( "load " + getEntityName() );
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Modify the SQL, adding lock hints and comments, if necessary
 */
protected String preprocessSQL(String sql, QueryParameters parameters, Dialect dialect)
    throws HibernateException {
  sql = applyLocks( sql, parameters.getLockOptions(), dialect );
  return getFactory().getSettings().isCommentsEnabled() ?
      prependComment( sql, parameters ) : sql;
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Modify the SQL, adding lock hints and comments, if necessary
 */
protected String preprocessSQL(String sql, QueryParameters parameters, Dialect dialect)
    throws HibernateException {
  
  sql = applyLocks( sql, parameters.getLockModes(), dialect );
  
  return getFactory().getSettings().isCommentsEnabled() ?
      prependComment( sql, parameters ) : sql;
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Modify the SQL, adding lock hints and comments, if necessary
 */
protected String preprocessSQL(String sql, QueryParameters parameters, Dialect dialect)
    throws HibernateException {
  sql = applyLocks( sql, parameters.getLockOptions(), dialect );
  return getFactory().getSettings().isCommentsEnabled() ?
      prependComment( sql, parameters ) : sql;
}
origin: hibernate/hibernate

/**
 * Modify the SQL, adding lock hints and comments, if necessary
 */
protected String preprocessSQL(String sql, QueryParameters parameters, Dialect dialect)
    throws HibernateException {
  
  sql = applyLocks( sql, parameters.getLockModes(), dialect );
  
  return getFactory().getSettings().isCommentsEnabled() ?
      prependComment( sql, parameters ) : sql;
}
origin: hibernate/hibernate

/**
 * Generate the SQL DELETE that deletes all rows
 */
protected String generateDeleteString() {
  
  Delete delete = new Delete()
      .setTableName( qualifiedTableName )
      .setPrimaryKeyColumnNames( keyColumnNames );
  
  if ( hasWhere ) delete.setWhere( sqlWhereString );
  
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    delete.setComment( "delete collection " + getRole() );
  }
  
  return delete.toStatementString();
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * Generate the SQL DELETE that deletes all rows
 */
protected String generateDeleteString() {
  
  Delete delete = new Delete()
      .setTableName( qualifiedTableName )
      .setPrimaryKeyColumnNames( keyColumnNames );
  
  if ( hasWhere ) delete.setWhere( sqlWhereString );
  
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    delete.setComment( "delete collection " + getRole() );
  }
  
  return delete.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate

/**
 * Generate the SQL DELETE that deletes all rows
 */
@Override
protected String generateDeleteString() {
  
  Delete delete = new Delete()
      .setTableName( qualifiedTableName )
      .addPrimaryKeyColumns( keyColumnNames );
  
  if ( hasWhere ) delete.setWhere( sqlWhereString );
  
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    delete.setComment( "delete collection " + getRole() );
  }
  
  return delete.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * Generate the SQL DELETE that deletes all rows
 */
@Override
protected String generateDeleteString() {
  
  Delete delete = new Delete()
      .setTableName( qualifiedTableName )
      .addPrimaryKeyColumns( keyColumnNames );
  
  if ( hasWhere ) delete.setWhere( sqlWhereString );
  
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    delete.setComment( "delete collection " + getRole() );
  }
  
  return delete.toStatementString();
}
origin: hibernate/hibernate

/**
 * Generate the SQL that deletes a row by id (and version)
 */
protected String generateDeleteString(int j) {
  Delete delete = new Delete()
      .setTableName( getTableName( j ) )
      .setPrimaryKeyColumnNames( getKeyColumns( j ) );
  if ( j == 0 ) delete.setVersionColumnName( getVersionColumnName() );
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    delete.setComment( "delete " + getEntityName() );
  }
  return delete.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.addPrimaryKeyColumns( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.addPrimaryKeyColumns( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate.core

private String generateVersionIncrementUpdateString() {
  Update update = new Update( getFactory().getDialect() );
  update.setTableName( getTableName( 0 ) );
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    update.setComment( "forced version increment" );
  }
  update.addColumn( getVersionColumnName() );
  update.addPrimaryKeyColumns( getIdentifierColumnNames() );
  update.setVersionColumnName( getVersionColumnName() );
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.addPrimaryKeyColumns( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.addPrimaryKeyColumns( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.addPrimaryKeyColumns( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate

private String generateVersionIncrementUpdateString() {
  Update update = new Update( getFactory().getDialect() );
  update.setTableName( getTableName( 0 ) );
  if ( getFactory().getSettings().isCommentsEnabled() ) {
    update.setComment( "forced version increment" );
  }
  update.addColumn( getVersionColumnName() );
  update.addPrimaryKeyColumns( getIdentifierColumnNames() );
  update.setVersionColumnName( getVersionColumnName() );
  return update.toStatementString();
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.addPrimaryKeyColumns( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

protected String generateLockString() {
  SessionFactoryImplementor factory = lockable.getFactory();
  Update update = new Update( factory.getDialect() );
  update.setTableName( lockable.getRootTableName() );
  update.setPrimaryKeyColumnNames( lockable.getRootTableIdentifierColumnNames() );
  update.setVersionColumnName( lockable.getVersionColumnName() );
  update.addColumn( lockable.getVersionColumnName() );
  if ( factory.getSettings().isCommentsEnabled() ) {
    update.setComment( lockMode + " lock " + lockable.getEntityName() );
  }
  return update.toStatementString();
}
org.hibernate.cfgSettingsisCommentsEnabled

Popular methods of Settings

  • isMinimalPutsEnabled
  • <init>
  • getConnectionReleaseMode
  • getDefaultSchemaName
  • getDefaultCatalogName
  • getJdbcFetchSize
  • getMaximumFetchDepth
  • getSessionFactoryName
  • isIdentifierRollbackEnabled
  • isQueryCacheEnabled
  • isSecondLevelCacheEnabled
  • isStatisticsEnabled
  • isSecondLevelCacheEnabled,
  • isStatisticsEnabled,
  • getCacheRegionPrefix,
  • getConnectionProvider,
  • isScrollableResultSetsEnabled,
  • isStructuredCacheEntriesEnabled,
  • getDefaultBatchFetchSize,
  • getMultiTenancyStrategy,
  • getQueryCacheFactory

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • onCreateOptionsMenu (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now