ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
, ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value>
, java.io.Serializable
public class ValuesByCompanyAndYear
extends java.lang.Object
implements ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value>
Constructor | Description |
---|---|
ValuesByCompanyAndYear() |
|
ValuesByCompanyAndYear(java.util.List<java.lang.String> parameters) |
Modifier and Type | Method | Description |
---|---|---|
ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value> |
addColumnKey(java.lang.String parameterName) |
|
Table |
getBaseTable() |
|
int |
getColumnCount() |
|
java.lang.String |
getColumnTitle(int col) |
|
int |
getRowCount() |
|
java.util.List |
getRowFieldNames() |
|
java.util.List |
getRowValue(int row) |
|
java.lang.Double |
getTotalSales(java.lang.String year,
java.lang.String companyName) |
We return the sales for the requested SIC code and year.
|
ch.pschatzmann.common.table.Value |
getValue(int col,
int row) |
public ValuesByCompanyAndYear(java.util.List<java.lang.String> parameters) throws DataException, java.lang.ClassNotFoundException, java.sql.SQLException
DataException
java.lang.ClassNotFoundException
java.sql.SQLException
public ValuesByCompanyAndYear() throws DataException, java.lang.ClassNotFoundException, java.sql.SQLException
DataException
java.lang.ClassNotFoundException
java.sql.SQLException
public java.util.List getRowFieldNames()
getRowFieldNames
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public int getColumnCount()
getColumnCount
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public java.lang.String getColumnTitle(int col)
getColumnTitle
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public int getRowCount()
getRowCount
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public java.util.List getRowValue(int row)
getRowValue
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public ch.pschatzmann.common.table.Value getValue(int col, int row)
getValue
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public Table getBaseTable()
getBaseTable
in interface ch.pschatzmann.common.table.ITable<ch.pschatzmann.common.table.Value>
public java.lang.Double getTotalSales(java.lang.String year, java.lang.String companyName) throws java.text.ParseException
year
- companyName
- java.text.ParseException
public ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value> addColumnKey(java.lang.String parameterName)
addColumnKey
in interface ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value>