public class DatasourceServiceImpl extends SecuredTreeDBManagerImpl<AbstractDatasourceManagerNode> implements DatasourceService
Constructor and Description |
---|
DatasourceServiceImpl(<any> entityManagerProvider,
<any> installedDataSourceDefinitions,
<any> defaultDatasourceProvider) |
Modifier and Type | Method and Description |
---|---|
DatasourceDefinition |
doGetDatasourceByKey(java.lang.String key) |
java.util.List<AbstractDatasourceManagerNode> |
getAllNodes() |
DatasourceDefinition |
getDatasourceById(java.lang.Long id) |
DatasourceDefinition |
getDatasourceByKey(java.lang.String key) |
DatasourceDefinition |
getDatasourceByName(java.lang.String name) |
DatasourceFolder |
getDatasourceFolderByName(java.lang.String name) |
long |
getDatasourceIdFromKey(java.lang.String key) |
DatasourceDefinition |
getDefaultDatasource() |
java.lang.String |
getDefaultDatasourceId() |
java.util.Set<java.lang.Class<? extends DatasourceDefinition>> |
getInstalledDataSourceDefinitions() |
AbstractDatasourceManagerNode |
getNodeById(long id)
Searches for a node by its id
|
java.util.List<AbstractDatasourceManagerNode> |
getRoots() |
DatasourceContainer |
merge(DatasourceContainer container) |
void |
remove(DatasourceDefinitionConfig datasourceConfig) |
copy, forceRemove, getVirtualRoots, move, move, move, move, persist, remove
merge
allowsMultipleRoots, copy, getBaseType, getChildrenWithName, isFolder, updateFlags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowsMultipleRoots, copy, forceRemove, getBaseType, getChildrenWithName, getVirtualRoots, isFolder, merge, move, move, persist, remove, updateFlags
public DatasourceServiceImpl(<any> entityManagerProvider, <any> installedDataSourceDefinitions, <any> defaultDatasourceProvider)
public java.util.Set<java.lang.Class<? extends DatasourceDefinition>> getInstalledDataSourceDefinitions()
getInstalledDataSourceDefinitions
in interface DatasourceService
@QueryByAttribute(where=<error>) public DatasourceDefinition getDatasourceByName(java.lang.String name)
getDatasourceByName
in interface DatasourceService
@QueryByAttribute(where=<error>) public DatasourceDefinition getDatasourceById(java.lang.Long id)
getDatasourceById
in interface DatasourceService
@QueryByAttribute(where=<error>) public DatasourceFolder getDatasourceFolderByName(java.lang.String name)
getDatasourceFolderByName
in interface DatasourceService
public java.lang.String getDefaultDatasourceId()
getDefaultDatasourceId
in interface DatasourceService
public DatasourceDefinition getDefaultDatasource()
getDefaultDatasource
in interface DatasourceService
@QueryByAttribute(where=<error>, type=IS_NULL) public java.util.List<AbstractDatasourceManagerNode> getRoots()
getRoots
in interface TreeDBManager<AbstractDatasourceManagerNode>
@SimpleQuery public java.util.List<AbstractDatasourceManagerNode> getAllNodes()
getAllNodes
in interface TreeDBManager<AbstractDatasourceManagerNode>
@QueryById public AbstractDatasourceManagerNode getNodeById(long id)
TreeDBManager
getNodeById
in interface TreeDBManager<AbstractDatasourceManagerNode>
public DatasourceContainer merge(DatasourceContainer container)
merge
in interface DatasourceService
public void remove(DatasourceDefinitionConfig datasourceConfig)
remove
in interface DatasourceService
@QueryByAttribute(select=<error>, from=DatasourceDefinition.class, where=<error>, throwNoResultException=true) public long getDatasourceIdFromKey(java.lang.String key)
getDatasourceIdFromKey
in interface DatasourceService
public DatasourceDefinition getDatasourceByKey(java.lang.String key)
getDatasourceByKey
in interface DatasourceService
@QueryByAttribute(where=<error>) public DatasourceDefinition doGetDatasourceByKey(java.lang.String key)