package org.jboss.ejb.plugins.cmp.ejbql;
import org.jboss.ejb.plugins.cmp.jdbc.JDBCResultSetReader;
import org.jboss.logging.Logger;
import java.sql.SQLException;
import java.sql.ResultSet;
public final class ASTSqrt
extends SimpleNode
implements SelectFunction
{
private final Logger log;
public ASTSqrt(int id)
{
super(id);
log = Logger.getLogger(getClass());
}
public Object jjtAccept(JBossQLParserVisitor visitor, Object data)
{
return visitor.visit(this, data);
}
public Object readResult(ResultSet rs) throws SQLException
{
return JDBCResultSetReader.DOUBLE_READER.get(rs, 1, Double.class, log);
}
}