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

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

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

Join.setCustomSQLInsert介绍

暂无

代码示例

代码示例来源: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.setOptional( matchingTable.optional() );
if ( !BinderHelper.isEmptyAnnotationValue( matchingTable.sqlInsert().sql() ) ) {
  join.setCustomSQLInsert( matchingTable.sqlInsert().sql().trim(),
      matchingTable.sqlInsert().callable(),
      ExecuteUpdateResultCheckStyle.fromExternalName(

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

join.setOptional( matchingTable.optional() );
if ( !BinderHelper.isDefault( matchingTable.sqlInsert().sql() ) ) {
  join.setCustomSQLInsert( matchingTable.sqlInsert().sql().trim(),
      matchingTable.sqlInsert().callable(),
      ExecuteUpdateResultCheckStyle.parse( matchingTable.sqlInsert().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.setOptional( matchingTable.optional() );
if ( !BinderHelper.isEmptyAnnotationValue( matchingTable.sqlInsert().sql() ) ) {
  join.setCustomSQLInsert( matchingTable.sqlInsert().sql().trim(),
      matchingTable.sqlInsert().callable(),
      ExecuteUpdateResultCheckStyle.fromExternalName(

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

join.setOptional( matchingTable.optional() );
if ( !BinderHelper.isEmptyAnnotationValue( matchingTable.sqlInsert().sql() ) ) {
  join.setCustomSQLInsert( matchingTable.sqlInsert().sql().trim(),
      matchingTable.sqlInsert().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.setOptional( matchingTable.optional() );
if ( !BinderHelper.isEmptyAnnotationValue( matchingTable.sqlInsert().sql() ) ) {
  join.setCustomSQLInsert( matchingTable.sqlInsert().sql().trim(),
      matchingTable.sqlInsert().callable(),
      ExecuteUpdateResultCheckStyle.fromExternalName(

相关文章