Examples of toStatementString()


Examples of org.hibernate.sql.Select.toStatementString()

        .setGroupByClause( groupBy );

    if ( getFactory().getSettings().isCommentsEnabled() ) {
      select.setComment( getComment() );
    }
    sql = select.toStatementString();
  }

  protected String getWhereFragment() throws MappingException {
    // here we do not bother with the discriminator.
    return persister.whereJoinFragment(alias, true, true);
View Full Code Here

Examples of org.hibernate.sql.SimpleSelect.toStatementString()

      select.addCondition( lockable.getVersionColumnName(), "=?" );
    }
    if ( factory.getSettings().isCommentsEnabled() ) {
      select.setComment( lockMode + " lock " + lockable.getEntityName() );
    }
    return select.toStatementString();
  }
}
View Full Code Here

Examples of org.hibernate.sql.SimpleSelect.toStatementString()

      select.addCondition( getLockable().getVersionColumnName(), "=?" );
    }
    if ( factory.getSettings().isCommentsEnabled() ) {
      select.setComment( getLockMode() + " lock " + getLockable().getEntityName() );
    }
    return select.toStatementString();
  }
}
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

    update.setVersionColumnName( lockable.getVersionColumnName() );
    update.addColumn( lockable.getVersionColumnName() );
    if ( factory.getSettings().isCommentsEnabled() ) {
      update.setComment( lockMode + " lock " + lockable.getEntityName() );
    }
    return update.toStatementString();
  }

  protected LockMode getLockMode() {
    return lockMode;
  }
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

   
    if ( getFactory().getSettings().isCommentsEnabled() ) {
      update.setComment( "delete one-to-many " + getRole() );
    }
   
    return update.toStatementString();
  }

  /**
   * Generate the SQL UPDATE that updates a foreign key to a value
   */
 
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

   
    if ( getFactory().getSettings().isCommentsEnabled() ) {
      update.setComment( "update collection row " + getRole() );
    }
   
    return update.toStatementString();
  }

  /**
   * Generate the SQL DELETE that deletes a particular row
   */
 
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

            }
          }
        }
      }
      if ( affected ) {
        updates[tableIndex] = update.toStatementString();
        hqlParameters[tableIndex] = ( ParameterSpecification[] ) parameterList.toArray( new ParameterSpecification[0] );
      }
    }
  }
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

      update.setComment( "forced version increment" );
    }
    update.addColumn( getVersionColumnName() );
    update.setPrimaryKeyColumnNames( getIdentifierColumnNames() );
    update.setVersionColumnName( getVersionColumnName() );
    return update.toStatementString();
  }

  /**
   * Retrieve the version number
   */
 
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

    if ( getFactory().getSettings().isCommentsEnabled() ) {
      update.setComment( "update " + getEntityName() );
    }

    return hasColumns ? update.toStatementString() : null;
  }

  private boolean checkVersion(final boolean[] includeProperty) {
        return includeProperty[ getVersionProperty() ] ||
        entityMetamodel.getPropertyUpdateGenerationInclusions()[ getVersionProperty() ] != ValueInclusion.NONE;
View Full Code Here

Examples of org.hibernate.sql.Update.toStatementString()

      update.setComment( "forced version increment" );
    }
    update.addColumn( getVersionColumnName() );
    update.addPrimaryKeyColumns( getIdentifierColumnNames() );
    update.setVersionColumnName( getVersionColumnName() );
    return update.toStatementString();
  }

  /**
   * Retrieve the version number
   */
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.