/** * INTERNAL: * Check if the query should be prepared, or dynamic, depending on the arguments. * This allows null parameters to affect the SQL, such as stored procedure default values, * or IS NULL, or insert defaults. */ public boolean shouldPrepare(AbstractRecord translationRow, AbstractSession session) { if (!this.shouldPrepare) { return false; } if (!((DatasourcePlatform)session.getDatasourcePlatform()).shouldPrepare(this)) { this.shouldPrepare = false; return false; } if (this.nullableArguments != null) { for (DatabaseField argument : this.nullableArguments) { if (translationRow.get(argument) == null) { return false; } } } return true; }
/** * INTERNAL: * Check if the query should be prepared, or dynamic, depending on the arguments. * This allows null parameters to affect the SQL, such as stored procedure default values, * or IS NULL, or insert defaults. */ public boolean shouldPrepare(AbstractRecord translationRow, AbstractSession session) { if (!this.shouldPrepare) { return false; } if (!((DatasourcePlatform)session.getDatasourcePlatform()).shouldPrepare(this)) { this.shouldPrepare = false; return false; } if (this.nullableArguments != null) { for (DatabaseField argument : this.nullableArguments) { if (translationRow.get(argument) == null) { return false; } } } return true; }
if ((!force) && (!this.shouldPrepare || !((DatasourcePlatform)session.getDatasourcePlatform()).shouldPrepare(this) || (checkForCustomQuery(session, translationRow) != null))) { return;
if ((!force) && (!this.shouldPrepare || !((DatasourcePlatform)session.getDatasourcePlatform()).shouldPrepare(this) || (checkForCustomQuery(session, translationRow) != null))) { return;