org.hibernate.mapping.Join.setCustomSQLUpdate()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.hibernate.mapping.Join.setCustomSQLUpdate()方法的一些代码示例,展示了Join.setCustomSQLUpdate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Join.setCustomSQLUpdate()方法的具体详情如下:
包路径:org.hibernate.mapping.Join
类名称:Join
方法名:setCustomSQLUpdate

Join.setCustomSQLUpdate介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

private static void bindCustomSql(
    MappingDocument sourceDocument,
    SecondaryTableSource secondaryTableSource,
    Join secondaryTable) {
  if ( secondaryTableSource.getCustomSqlInsert() != null ) {
    secondaryTable.setCustomSQLInsert(
        secondaryTableSource.getCustomSqlInsert().getSql(),
        secondaryTableSource.getCustomSqlInsert().isCallable(),
        secondaryTableSource.getCustomSqlInsert().getCheckStyle()
    );
  }
  if ( secondaryTableSource.getCustomSqlUpdate() != null ) {
    secondaryTable.setCustomSQLUpdate(
        secondaryTableSource.getCustomSqlUpdate().getSql(),
        secondaryTableSource.getCustomSqlUpdate().isCallable(),
        secondaryTableSource.getCustomSqlUpdate().getCheckStyle()
    );
  }
  if ( secondaryTableSource.getCustomSqlDelete() != null ) {
    secondaryTable.setCustomSQLDelete(
        secondaryTableSource.getCustomSqlDelete().getSql(),
        secondaryTableSource.getCustomSqlDelete().isCallable(),
        secondaryTableSource.getCustomSqlDelete().getCheckStyle()
    );
  }
}

代码示例来源:origin: hibernate/hibernate-orm

join.setCustomSQLUpdate( matchingTable.sqlUpdate().sql().trim(),
    matchingTable.sqlUpdate().callable(),
    ExecuteUpdateResultCheckStyle.fromExternalName(

代码示例来源:origin: org.hibernate/hibernate-annotations

join.setCustomSQLUpdate( matchingTable.sqlUpdate().sql().trim(),
    matchingTable.sqlUpdate().callable(),
    ExecuteUpdateResultCheckStyle.parse( matchingTable.sqlUpdate().check().toString().toLowerCase() )

代码示例来源:origin: hibernate/hibernate

private static void handleCustomSQL(Element node, Join model) throws MappingException {
  Element element = node.element( "sql-insert" );
  if ( element != null ) {
    boolean callable = false;
    callable = isCallable( element );
    model.setCustomSQLInsert( element.getText(), callable );
  }
  element = node.element( "sql-delete" );
  if ( element != null ) {
    boolean callable = false;
    callable = isCallable( element );
    model.setCustomSQLDelete( element.getText(), callable );
  }
  element = node.element( "sql-update" );
  if ( element != null ) {
    boolean callable = false;
    callable = isCallable( element );
    model.setCustomSQLUpdate( element.getText(), callable );
  }
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

private static void handleCustomSQL(Element node, Join model) throws MappingException {
  Element element = node.element( "sql-insert" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLInsert( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
  element = node.element( "sql-delete" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLDelete( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
  element = node.element( "sql-update" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLUpdate( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

private static void handleCustomSQL(Element node, Join model) throws MappingException {
  Element element = node.element( "sql-insert" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLInsert( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
  element = node.element( "sql-delete" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLDelete( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
  element = node.element( "sql-update" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLUpdate( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

private static void handleCustomSQL(Element node, Join model) throws MappingException {
  Element element = node.element( "sql-insert" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLInsert( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
  element = node.element( "sql-delete" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLDelete( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
  element = node.element( "sql-update" );
  if ( element != null ) {
    boolean callable = isCallable( element );
    model.setCustomSQLUpdate( element.getTextTrim(), callable, getResultCheckStyle( element, callable ) );
  }
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

join.setCustomSQLUpdate( matchingTable.sqlUpdate().sql().trim(),
    matchingTable.sqlUpdate().callable(),
    ExecuteUpdateResultCheckStyle.fromExternalName(

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

join.setCustomSQLUpdate( matchingTable.sqlUpdate().sql().trim(),
    matchingTable.sqlUpdate().callable(),
    ExecuteUpdateResultCheckStyle.fromExternalName(

代码示例来源:origin: org.hibernate.orm/hibernate-core

private static void bindCustomSql(SecondaryTableSource secondaryTableSource, Join secondaryTable) {
  if ( secondaryTableSource.getCustomSqlInsert() != null ) {
    secondaryTable.setCustomSQLInsert(
        secondaryTableSource.getCustomSqlInsert().getSql(),
        secondaryTableSource.getCustomSqlInsert().isCallable(),
        secondaryTableSource.getCustomSqlInsert().getCheckStyle()
    );
  }
  if ( secondaryTableSource.getCustomSqlUpdate() != null ) {
    secondaryTable.setCustomSQLUpdate(
        secondaryTableSource.getCustomSqlUpdate().getSql(),
        secondaryTableSource.getCustomSqlUpdate().isCallable(),
        secondaryTableSource.getCustomSqlUpdate().getCheckStyle()
    );
  }
  if ( secondaryTableSource.getCustomSqlDelete() != null ) {
    secondaryTable.setCustomSQLDelete(
        secondaryTableSource.getCustomSqlDelete().getSql(),
        secondaryTableSource.getCustomSqlDelete().isCallable(),
        secondaryTableSource.getCustomSqlDelete().getCheckStyle()
    );
  }
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

join.setCustomSQLUpdate( matchingTable.sqlUpdate().sql().trim(),
    matchingTable.sqlUpdate().callable(),
    ExecuteUpdateResultCheckStyle.fromExternalName(

相关文章