1 22 package org.jboss.ejb.plugins.cmp.ejbql; 23 24 import org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader; 25 import org.jboss.logging.Logger; 26 27 import java.sql.SQLException ; 28 import java.sql.ResultSet ; 29 30 37 public final class ASTSqrt 38 extends SimpleNode 39 implements SelectFunction 40 { 41 private final Logger log; 42 43 public ASTSqrt(int id) 44 { 45 super(id); 46 log = Logger.getLogger(getClass()); 47 } 48 49 50 public Object jjtAccept(JBossQLParserVisitor visitor, Object data) 51 { 52 return visitor.visit(this, data); 53 } 54 55 57 63 public Object readResult(ResultSet rs) throws SQLException 64 { 65 return JDBCResultSetReader.DOUBLE_READER.get(rs, 1, Double .class, log); 66 } 67 } 68 | Popular Tags |