|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.dataaccess.datasource.wizard.service.impl.DatasourceServiceImpl
public class DatasourceServiceImpl
Constructor Summary | |
---|---|
DatasourceServiceImpl()
|
Method Summary | |
---|---|
boolean |
deleteLogicalModel(String domainId,
String modelName)
Delete the Logical Mode identified by the Domain ID and the Model Name |
DatasourceDTO |
deSerializeModelState(String dtoStr)
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)
This method gets the business data which are the business columns, columns types and sample preview data |
List<LogicalModelSummary> |
getLogicalModels()
Returns the list of Logical Models. |
org.pentaho.metadata.repository.IMetadataDomainRepository |
getMetadataDomainRepository()
|
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. |
void |
setMetadataDomainRepository(org.pentaho.metadata.repository.IMetadataDomainRepository metadataDomainRepository)
|
boolean |
testDataSourceConnection(String connectionName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatasourceServiceImpl()
Method Detail |
---|
public boolean deleteLogicalModel(String domainId, String modelName) throws DatasourceServiceException
IDatasourceService
deleteLogicalModel
in interface IDatasourceService
DatasourceServiceException
public SerializedResultSet doPreview(String connectionName, String query, String previewLimit) throws DatasourceServiceException
IDatasourceService
doPreview
in interface IDatasourceService
connectionName
- - Name of the connectionquery
- - Query which needs to be executedpreviewLimit
- - Number of row which needs to be returned for this query
DatasourceServiceException
public boolean testDataSourceConnection(String connectionName) throws DatasourceServiceException
DatasourceServiceException
public BusinessData generateLogicalModel(String modelName, String connectionName, String dbType, String query, String previewLimit) throws DatasourceServiceException
generateLogicalModel
in interface IDatasourceService
modelName,
- connection, query, previewLimit
DatasourceServiceException
public org.pentaho.metadata.repository.IMetadataDomainRepository getMetadataDomainRepository()
public void setMetadataDomainRepository(org.pentaho.metadata.repository.IMetadataDomainRepository metadataDomainRepository)
public boolean saveLogicalModel(org.pentaho.metadata.model.Domain domain, boolean overwrite) throws DatasourceServiceException
IDatasourceService
saveLogicalModel
in interface IDatasourceService
domain
- - generated Domainoverwrite
- - should the domain be overwritten or not
DatasourceServiceException
public boolean hasPermission()
IDatasourceService
hasPermission
in interface IDatasourceService
public List<LogicalModelSummary> getLogicalModels() throws DatasourceServiceException
IDatasourceService
getLogicalModels
in interface IDatasourceService
DatasourceServiceException
public BusinessData loadBusinessData(String domainId, String modelId) throws DatasourceServiceException
IDatasourceService
loadBusinessData
in interface IDatasourceService
domainId
- - ID of the domain to be generatedmodelId
- - ID of the model to be generated
DatasourceServiceException
public BogoPojo gwtWorkaround(BogoPojo pojo)
IDatasourceService
gwtWorkaround
in interface IDatasourceService
public String serializeModelState(DatasourceDTO dto) throws DatasourceServiceException
IDatasourceService
serializeModelState
in interface IDatasourceService
dto
- - Datasource data transfer object to serialize
DatasourceServiceException
public DatasourceDTO deSerializeModelState(String dtoStr) throws DatasourceServiceException
IDatasourceService
deSerializeModelState
in interface IDatasourceService
dtoStr
- - Datasource data transfer object to serialize
DatasourceServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |