Purpose: Mirror SQL behavior.
Responsibilities:
Return SQL call for the statement, through generating the SQL string.
Clone the Statement try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); }
try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); }
return builder;
INTERNAL: Return the row for translation return translationRow;
return translationRow;
return whereClause;
builder = aBuilder;
INTERNAL: Set the row for translation translationRow = theRow;
translationRow = theRow;
whereClause = expression; if (expression != null) { builder = expression.getBuilder(); }
Try to print the SQL. StringWriter writer = new StringWriter(); writer.write(Helper.getShortClassName(getClass())); writer.write("("); try { DatabaseCall call = buildCall(new DatabaseSessionImpl(new oracle.toplink.essentials.sessions.DatabaseLogin())); writer.write(call.getSQLString()); } catch (Exception exception) { } writer.write(")"); return writer.toString();
StringWriter writer = new StringWriter(); writer.write(Helper.getShortClassName(getClass())); writer.write("("); try { DatabaseCall call = buildCall(new DatabaseSessionImpl(new oracle.toplink.essentials.sessions.DatabaseLogin())); writer.write(call.getSQLString()); } catch (Exception exception) { } writer.write(")"); return writer.toString();