| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDatasourceService
| Method Summary | |
|---|---|
 boolean | 
deleteLogicalModel(String domainId,
                   String modelName)
Delete the Logical Mode identified by the Domain ID and the Model Name  | 
 DatasourceDTO | 
deSerializeModelState(String dto)
Returns a DatasourceDTO from a serialized string.  | 
 SerializedResultSet | 
doPreview(String connectionName,
          String query,
          String previewLimit)
Returns the serialized version of SQL ResultSet.  | 
 BusinessData | 
generateLogicalModel(String modelName,
                     String connectionName,
                     String dbType,
                     String query,
                     String previewLimit)
Returns the generated relational based logical model along with the sample data for the given connection name and query  | 
 List<LogicalModelSummary> | 
getLogicalModels()
Returns the list of Logical Models.  | 
 BogoPojo | 
gwtWorkaround(BogoPojo pojo)
This is a method for the Gwt workaround.  | 
 boolean | 
hasPermission()
Returns whether the current user has the authority to create/edit/delete datasources  | 
 BusinessData | 
loadBusinessData(String domainId,
                 String modelId)
Returns the save logical model for a given Domain ID and Model ID  | 
 boolean | 
saveLogicalModel(org.pentaho.metadata.model.Domain domain,
                 boolean overwrite)
Save the generated model.  | 
 String | 
serializeModelState(DatasourceDTO dto)
Returns a serialized version of the DatasourceDTO class.  | 
| Method Detail | 
|---|
List<LogicalModelSummary> getLogicalModels()
                                           throws DatasourceServiceException
DatasourceServiceException
boolean deleteLogicalModel(String domainId,
                           String modelName)
                           throws DatasourceServiceException
DatasourceServiceException
SerializedResultSet doPreview(String connectionName,
                              String query,
                              String previewLimit)
                              throws DatasourceServiceException
connectionName - - Name of the connectionquery - - Query which needs to be executedpreviewLimit - - Number of row which needs to be returned for this query
DatasourceServiceException
BusinessData generateLogicalModel(String modelName,
                                  String connectionName,
                                  String dbType,
                                  String query,
                                  String previewLimit)
                                  throws DatasourceServiceException
modelName - - Name of the model to be generatedconnectionName - - Name of the connectiondbType - - Dialect typequery - - Query which needs to be executedpreviewLimit - - Number of row which needs to be returned for this query
DatasourceServiceException
boolean saveLogicalModel(org.pentaho.metadata.model.Domain domain,
                         boolean overwrite)
                         throws DatasourceServiceException
domain - - generated Domainoverwrite - - should the domain be overwritten or not
DatasourceServiceExceptionboolean hasPermission()
DatasourceServiceExceptionBogoPojo gwtWorkaround(BogoPojo pojo)
BusinessData loadBusinessData(String domainId,
                              String modelId)
                              throws DatasourceServiceException
domainId - - ID of the domain to be generatedmodelId - - ID of the model to be generated
DatasourceServiceException
String serializeModelState(DatasourceDTO dto)
                           throws DatasourceServiceException
dto - - Datasource data transfer object to serialize
DatasourceServiceException
DatasourceDTO deSerializeModelState(String dto)
                                    throws DatasourceServiceException
dto - - Datasource data transfer object to serialize
DatasourceServiceException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||