jxDBCon 0.9z

org.sourceforge.jxdbcon
Class EscapeFuncs.year

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.EscapeFrags.Frag
        |
        +--org.sourceforge.jxdbcon.EscapeFrags.Function
              |
              +--org.sourceforge.jxdbcon.EscapeFuncs.OneParamFunction
                    |
                    +--org.sourceforge.jxdbcon.EscapeFuncs.year
Enclosing class:
EscapeFuncs

public static class EscapeFuncs.year
extends EscapeFuncs.OneParamFunction

YEAR(date) An integer representing the year component of date.


Field Summary
 
Fields inherited from class org.sourceforge.jxdbcon.EscapeFrags.Function
name, param, paramTypes, retType
 
Constructor Summary
EscapeFuncs.year(EscapeFrags.ParamList param)
           
 
Method Summary
protected  String emitSQL(EscapeContext ectx)
           
protected  EscapeFrags.Constant evaluate(EscapeFrags.Value data, EscapeContext ectx)
           
 EscapeFrags.Frag simplify(EscapeContext ectx)
           
 String toSQL(EscapeContext ectx)
           
 
Methods inherited from class org.sourceforge.jxdbcon.EscapeFrags.Function
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EscapeFuncs.year

public EscapeFuncs.year(EscapeFrags.ParamList param)
Method Detail

evaluate

protected EscapeFrags.Constant evaluate(EscapeFrags.Value data,
                                        EscapeContext ectx)
                                 throws SQLException
Specified by:
evaluate in class EscapeFuncs.OneParamFunction
SQLException

emitSQL

protected String emitSQL(EscapeContext ectx)
                  throws SQLException
SQLException

simplify

public EscapeFrags.Frag simplify(EscapeContext ectx)
                          throws SQLException
Overrides:
simplify in class EscapeFrags.Frag
SQLException

toSQL

public String toSQL(EscapeContext ectx)
             throws SQLException
Overrides:
toSQL in class EscapeFrags.Function
SQLException

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.