Package org.hibernate.sql

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


   
    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

   
    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

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

      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

    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

      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

    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

    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

   
    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

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.