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 ASTLCase 38 extends SimpleNode 39 implements SelectFunction 40 { 41 private final Logger log; 42 43 public ASTLCase(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 61 public Object readResult(ResultSet rs) throws SQLException 62 { 63 return JDBCResultSetReader.STRING_READER.get(rs, 1, String .class, log); 64 } 65 } 66 | Popular Tags |