de.mathema.pride
Class SQLRaw

java.lang.Object
  extended by de.mathema.pride.SQLRaw

public class SQLRaw
extends java.lang.Object

This is just a helper class, preventing a string value from getting formatted when passed to any expression builder function of SQLExpression. E.g. use this type to express an equality check between two database fields like this:

exp.and("field1", new SQLRaw("field2"))

Author:
Jan Lessner

Field Summary
protected  java.lang.String fieldname
           
static java.lang.String REVISION_ID
           
 
Constructor Summary
SQLRaw(java.lang.String fieldname)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldname

protected java.lang.String fieldname

REVISION_ID

public static final java.lang.String REVISION_ID
See Also:
Constant Field Values
Constructor Detail

SQLRaw

public SQLRaw(java.lang.String fieldname)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object