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