001 package railo.runtime.query.caster; 002 003 import java.io.IOException; 004 import java.sql.Array; 005 import java.sql.ResultSet; 006 import java.sql.SQLException; 007 008 public class ArrayCast implements Cast { 009 010 /** 011 * @see railo.runtime.query.caster.Cast#toCFType(int, java.sql.ResultSet, int) 012 */ 013 public Object toCFType(int type, ResultSet rst, int columnIndex) throws SQLException, IOException { 014 Array arr = rst.getArray(columnIndex); 015 if(arr==null) return null; 016 return arr.getArray(); 017 } 018 019 }