More toString()s.
This commit is contained in:
@@ -92,6 +92,13 @@ public class Join extends QueryClause
|
||||
_joinCondition.addClasses(classSet);
|
||||
}
|
||||
|
||||
@Override // from Object
|
||||
public String toString ()
|
||||
{
|
||||
String jclass = _joinClass.getName();
|
||||
return jclass.substring(jclass.lastIndexOf(".")+1) + ":" + _type + ":" + _joinCondition;
|
||||
}
|
||||
|
||||
/** Indicates the type of join to be performed. */
|
||||
protected Type _type = Type.INNER;
|
||||
|
||||
|
||||
@@ -57,6 +57,12 @@ public class Limit extends QueryClause
|
||||
{
|
||||
}
|
||||
|
||||
@Override // from Object
|
||||
public String toString ()
|
||||
{
|
||||
return _offset + "-" + (_offset+_count);
|
||||
}
|
||||
|
||||
/** The first row of the result set to return. */
|
||||
protected int _offset;
|
||||
|
||||
|
||||
@@ -89,6 +89,19 @@ public class OrderBy extends QueryClause
|
||||
}
|
||||
}
|
||||
|
||||
@Override // from Object
|
||||
public String toString ()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (int ii = 0; ii < _values.length; ii++) {
|
||||
if (ii > 0) {
|
||||
builder.append(", ");
|
||||
}
|
||||
builder.append(_values[ii]).append(" ").append(_orders[ii]);
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
/** The expressions that are generated for the clause. */
|
||||
protected SQLExpression[] _values;
|
||||
|
||||
|
||||
@@ -54,6 +54,12 @@ public class EpochSeconds implements SQLExpression
|
||||
return _arg;
|
||||
}
|
||||
|
||||
@Override // from Object
|
||||
public String toString ()
|
||||
{
|
||||
return "Epoch(" + _arg + ")";
|
||||
}
|
||||
|
||||
/** The argument. */
|
||||
protected SQLExpression _arg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user