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