/** * ADVANCED: * Return the receiver's update call. * This allows the user to override the update operation. */ public Call getUpdateCall() { if (getUpdateQuery() == null) { return null; } return getUpdateQuery().getDatasourceCall(); }
/** * ADVANCED: * Return the receiver's update call. * This allows the user to override the update operation. */ public Call getUpdateCall() { if (getUpdateQuery() == null) { return null; } return getUpdateQuery().getDatasourceCall(); }
/** * ADVANCED: * Return the receiver's update call. * This allows the user to override the update operation. */ public Call getUpdateCall() { if (getUpdateQuery() == null) { return null; } return getUpdateQuery().getDatasourceCall(); }
method.addLine("descriptor.getQueryManager().setUpdateSQLString(\"" + constructValidSQLorEJBQLLinesForJavaSource(descriptor.getQueryManager().getUpdateQuery().getSQLString()) + "\");"); } else if (descriptor.getQueryManager().hasUpdateQuery() && descriptor.getQueryManager().getUpdateQuery().getDatasourceCall() instanceof XMLInteraction) { addXMLInteractionLines(method, (XMLInteraction)descriptor.getQueryManager().getUpdateQuery().getDatasourceCall(), "updateCall"); method.addLine("descriptor.getQueryManager().setUpdateCall(updateCall);"); method.addLine("descriptor.getQueryManager().setDeleteSQLString(\"" + constructValidSQLorEJBQLLinesForJavaSource(descriptor.getQueryManager().getDeleteQuery().getSQLString()) + "\");"); } else if (descriptor.getQueryManager().hasDeleteQuery() && descriptor.getQueryManager().getUpdateQuery().getDatasourceCall() instanceof XMLInteraction) { addXMLInteractionLines(method, (XMLInteraction)descriptor.getQueryManager().getDeleteQuery().getDatasourceCall(), "deleteCall"); method.addLine("descriptor.getQueryManager().setDeleteCall(deleteCall);");
method.addLine("descriptor.getQueryManager().setUpdateSQLString(\"" + constructValidSQLorEJBQLLinesForJavaSource(descriptor.getQueryManager().getUpdateQuery().getSQLString()) + "\");"); } else if (descriptor.getQueryManager().hasUpdateQuery() && descriptor.getQueryManager().getUpdateQuery().getDatasourceCall() instanceof XMLInteraction) { addXMLInteractionLines(method, (XMLInteraction)descriptor.getQueryManager().getUpdateQuery().getDatasourceCall(), "updateCall"); method.addLine("descriptor.getQueryManager().setUpdateCall(updateCall);"); method.addLine("descriptor.getQueryManager().setDeleteSQLString(\"" + constructValidSQLorEJBQLLinesForJavaSource(descriptor.getQueryManager().getDeleteQuery().getSQLString()) + "\");"); } else if (descriptor.getQueryManager().hasDeleteQuery() && descriptor.getQueryManager().getUpdateQuery().getDatasourceCall() instanceof XMLInteraction) { addXMLInteractionLines(method, (XMLInteraction)descriptor.getQueryManager().getDeleteQuery().getDatasourceCall(), "deleteCall"); method.addLine("descriptor.getQueryManager().setDeleteCall(deleteCall);");
method.addLine("descriptor.getQueryManager().setUpdateSQLString(\"" + constructValidSQLorEJBQLLinesForJavaSource(descriptor.getQueryManager().getUpdateQuery().getSQLString()) + "\");"); } else if (descriptor.getQueryManager().hasUpdateQuery() && descriptor.getQueryManager().getUpdateQuery().getDatasourceCall() instanceof XMLInteraction) { addXMLInteractionLines(method, (XMLInteraction)descriptor.getQueryManager().getUpdateQuery().getDatasourceCall(), "updateCall"); method.addLine("descriptor.getQueryManager().setUpdateCall(updateCall);"); method.addLine("descriptor.getQueryManager().setDeleteSQLString(\"" + constructValidSQLorEJBQLLinesForJavaSource(descriptor.getQueryManager().getDeleteQuery().getSQLString()) + "\");"); } else if (descriptor.getQueryManager().hasDeleteQuery() && descriptor.getQueryManager().getUpdateQuery().getDatasourceCall() instanceof XMLInteraction) { addXMLInteractionLines(method, (XMLInteraction)descriptor.getQueryManager().getDeleteQuery().getDatasourceCall(), "deleteCall"); method.addLine("descriptor.getQueryManager().setDeleteCall(deleteCall);");