Changeset 3453
- Timestamp:
- 09/02/10 10:36:03 (17 months ago)
- Location:
- molgenis_distro/3.5/handwritten/java/Matrix
- Files:
-
- 2 added
- 3 edited
-
DBMatrix.java (modified) (4 diffs)
-
EAVMatrix.java (added)
-
MatrixBean.java (modified) (1 diff)
-
PagableDataModel.java (modified) (3 diffs)
-
PagableMatrix.java (added)
Legend:
- Unmodified
- Added
- Removed
-
molgenis_distro/3.5/handwritten/java/Matrix/DBMatrix.java
r3452 r3453 23 23 import app.JpaDatabase; 24 24 25 public class DBMatrix<T> implements IMatrix1<T, Column, Integer> {25 public class DBMatrix<T> implements PagableMatrix<T, Column, Integer> { 26 26 private T[][] data; 27 27 private static JpaDatabase db; … … 50 50 } 51 51 52 52 @Override 53 53 public List<String> getColumnGroups() { 54 54 String ql = "SELECT DISTINCT SUBSTRING(oFeature.name, 1, LOCATE('.',oFeature.name) - 1) " + … … 57 57 } 58 58 59 @Override 59 60 public List<String> getColumnsGroup(String columnGroupName) { 60 61 String ql = "SELECT DISTINCT SUBSTRING(oFeature.name, LOCATE('.',oFeature.name) + 1) " + … … 82 83 private boolean observationsLoaded = false; 83 84 85 @Override 84 86 public void loadData(int numberOfRows, int offset) throws NumberFormatException, DatabaseException, SQLException, ParseException 85 87 { -
molgenis_distro/3.5/handwritten/java/Matrix/MatrixBean.java
r3452 r3453 42 42 43 43 private void loadObservableFeatureGroups() { 44 featureGroups = ((DBMatrix)super.getMatrix()).getColumnGroups();44 featureGroups = super.getMatrix().getColumnGroups(); 45 45 } 46 46 47 47 private void loadObservableFeatureNamesByGroup(String featureGroupName) { 48 features = ((DBMatrix)super.getMatrix()).getColumnsGroup(featureGroupName);48 features = super.getMatrix().getColumnsGroup(featureGroupName); 49 49 } 50 50 -
molgenis_distro/3.5/handwritten/java/Matrix/PagableDataModel.java
r3452 r3453 27 27 private boolean refresh = false; //refresh database if column or filter changes 28 28 29 private IMatrix1<T, Column, Integer> matrix;29 private PagableMatrix<T, Column, Integer> matrix; 30 30 31 public PagableDataModel( IMatrix1<T, Column, Integer> matrix) {31 public PagableDataModel(PagableMatrix<T, Column, Integer> matrix) { 32 32 this.matrix = matrix; 33 33 } … … 55 55 56 56 try { 57 ((DBMatrix)matrix).loadData(numberOfRows, firstRow);57 matrix.loadData(numberOfRows, firstRow); 58 58 59 59 Collection<Column> columns = matrix.getColumns(); … … 177 177 } 178 178 179 public IMatrix1<T, Column, Integer> getMatrix() {179 public PagableMatrix<T, Column, Integer> getMatrix() { 180 180 return matrix; 181 181 }
Note: See TracChangeset
for help on using the changeset viewer.