1 13 package com.tonbeller.jpivot.olap.model; 14 15 import javax.servlet.ServletContext ; 16 17 import com.tonbeller.jpivot.core.Model; 18 19 26 public interface OlapModel extends Model { 27 28 32 public class ResultTooLargeException extends RuntimeException { 33 public ResultTooLargeException() { 34 super(); 35 } 36 public ResultTooLargeException(Throwable cause) { 37 super(cause); 38 } 39 public ResultTooLargeException(String message, Throwable cause) { 40 super(message, cause); 41 } 42 } 43 44 49 public class EmptyCubeException extends RuntimeException { 50 public EmptyCubeException() { 51 super(); 52 } 53 public EmptyCubeException(Throwable cause) { 54 super(cause); 55 } 56 public EmptyCubeException(String message, Throwable cause) { 57 super(message, cause); 58 } 59 } 60 61 64 public Result getResult() throws OlapException; 65 66 69 Dimension[] getDimensions(); 70 71 74 Member[] getMeasures(); 75 76 79 void initialize() throws OlapException; 80 81 85 void destroy(); 86 87 90 String getID(); 91 92 95 void setID(String ID); 96 97 100 void setServletContext(ServletContext servletContext); 101 102 } 103 | Popular Tags |