ChartDirector 7.0 (Java Edition)

DBTable


DBTable is a utility class for converting database tables into arrays. It retrieves data using a java.sql.ResultSet object, and allows the columns of the data tables to be retrieved as arrays. The data arrays can be used to generate charts or be manipulated further using the ArrayMath class.

MethodInheritedDescription
DBTable(Self)Creates a DBTable object and fills the data table with data from a java.sql.ResultSet object.
getCol(Self)Gets the requested column of the table as an array of numbers.
getColAsString(Self)Gets the requested column of the table as an array of strings.
getColAsDate(Self)Gets the requested column of the table as an array of java.util.Date objects.
getColAsObj(Self)Gets the requested column of the table as an array of java.lang.Object objects.