private String[] getUpdateStrings(boolean byRowId, boolean lazy) { if ( byRowId ) { return lazy ? getSQLLazyUpdateByRowIdStrings() : getSQLUpdateByRowIdStrings(); } else { return lazy ? getSQLLazyUpdateStrings() : getSQLUpdateStrings(); } }
LOG.debugf( " Update %s: %s", j, getSQLUpdateStrings()[j] ); LOG.debugf( " Delete %s: %s", j, getSQLDeleteStrings()[j] );
String updateQuery = persister.getSQLUpdateStrings()[0]; String deleteQuery = persister.getSQLDeleteStrings()[0];
private String[] getUpdateStrings(boolean byRowId, boolean lazy) { if ( byRowId ) { return lazy ? getSQLLazyUpdateByRowIdStrings() : getSQLUpdateByRowIdStrings(); } else { return lazy ? getSQLLazyUpdateStrings() : getSQLUpdateStrings(); } }
private String[] getUpdateStrings(boolean byRowId, boolean lazy) { if ( byRowId ) { return lazy ? getSQLLazyUpdateByRowIdStrings() : getSQLUpdateByRowIdStrings(); } else { return lazy ? getSQLLazyUpdateStrings() : getSQLUpdateStrings(); } }
protected void logStaticSQL() { if (LOG.isDebugEnabled()) { LOG.debugf("Static SQL for entity: %s", getEntityName()); if (sqlLazySelectString != null) LOG.debugf(" Lazy select: %s", sqlLazySelectString); if (sqlVersionSelectString != null) LOG.debugf(" Version select: %s", sqlVersionSelectString); if (sqlSnapshotSelectString != null) LOG.debugf(" Snapshot select: %s", sqlSnapshotSelectString); for ( int j = 0; j < getTableSpan(); j++ ) { LOG.debugf(" Insert %s: %s", j, getSQLInsertStrings()[j]); LOG.debugf(" Update %s: %s", j, getSQLUpdateStrings()[j]); LOG.debugf(" Delete %s: %s", j, getSQLDeleteStrings()[j]); } if (sqlIdentityInsertString != null) LOG.debugf(" Identity insert: %s", sqlIdentityInsertString); if (sqlUpdateByRowIdString != null) LOG.debugf(" Update by row id (all fields): %s", sqlUpdateByRowIdString); if (sqlLazyUpdateByRowIdString != null) LOG.debugf(" Update by row id (non-lazy fields): %s", sqlLazyUpdateByRowIdString); if (sqlInsertGeneratedValuesSelectString != null) LOG.debugf("Insert-generated property select: %s", sqlInsertGeneratedValuesSelectString); if (sqlUpdateGeneratedValuesSelectString != null) LOG.debugf("Update-generated property select: %s", sqlUpdateGeneratedValuesSelectString); if (sqlEntityIdByNaturalIdString != null) LOG.debugf("Id by Natural Id: %s", sqlEntityIdByNaturalIdString); } }
protected void logStaticSQL() { if (LOG.isDebugEnabled()) { LOG.debugf("Static SQL for entity: %s", getEntityName()); if (sqlLazySelectString != null) LOG.debugf(" Lazy select: %s", sqlLazySelectString); if (sqlVersionSelectString != null) LOG.debugf(" Version select: %s", sqlVersionSelectString); if (sqlSnapshotSelectString != null) LOG.debugf(" Snapshot select: %s", sqlSnapshotSelectString); for ( int j = 0; j < getTableSpan(); j++ ) { LOG.debugf(" Insert %s: %s", j, getSQLInsertStrings()[j]); LOG.debugf(" Update %s: %s", j, getSQLUpdateStrings()[j]); LOG.debugf(" Delete %s: %s", j, getSQLDeleteStrings()[j]); } if (sqlIdentityInsertString != null) LOG.debugf(" Identity insert: %s", sqlIdentityInsertString); if (sqlUpdateByRowIdString != null) LOG.debugf(" Update by row id (all fields): %s", sqlUpdateByRowIdString); if (sqlLazyUpdateByRowIdString != null) LOG.debugf(" Update by row id (non-lazy fields): %s", sqlLazyUpdateByRowIdString); if (sqlInsertGeneratedValuesSelectString != null) LOG.debugf("Insert-generated property select: %s", sqlInsertGeneratedValuesSelectString); if (sqlUpdateGeneratedValuesSelectString != null) LOG.debugf("Update-generated property select: %s", sqlUpdateGeneratedValuesSelectString); if (sqlEntityIdByNaturalIdString != null) LOG.debugf("Id by Natural Id: %s", sqlEntityIdByNaturalIdString); } }