Package org.openbravo.service.datasource
Class DataSourceComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.BaseTemplateComponent
-
- org.openbravo.service.datasource.DataSourceComponent
-
- All Implemented Interfaces:
Component
public class DataSourceComponent extends BaseTemplateComponent
Represents a datasource to be rendered/created on the client.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.BaseTemplateComponent
BASE_QUALIFIER, DATA_PARAMETER
-
Fields inherited from class org.openbravo.client.kernel.BaseComponent
adcs
-
-
Constructor Summary
Constructors Constructor Description DataSourceComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Template
getComponentTemplate()
String
getDataSourceClassName()
List<DataSourceProperty>
getDataSourceProperties()
DataSourceService
getDataSourceService()
String
getDataUrl()
String
getId()
boolean
getIncludeCreationCode()
String
getName()
void
setDataSourceService(DataSourceService data)
void
setIncludeCreationCode(boolean includeCreationCode)
-
Methods inherited from class org.openbravo.client.kernel.BaseTemplateComponent
generate, getData, setComponentTemplate
-
Methods inherited from class org.openbravo.client.kernel.BaseComponent
bypassAuthentication, createComponent, getADCS, getApplicationName, getContentType, getContextUrl, getDependencies, getETag, getLastModified, getModule, getModulePackageName, getParameter, getParameterNames, getParameters, getSafeValue, hasParameter, isClassicMode, isInDevelopment, isInDevelopment, isJavaScriptComponent, nullifyModuleCache, setContextUrl, setDependencies, setId, setParameters, stripHost
-
-
-
-
Method Detail
-
getComponentTemplate
protected Template getComponentTemplate()
- Overrides:
getComponentTemplate
in classBaseTemplateComponent
-
getDataSourceClassName
public String getDataSourceClassName()
-
setDataSourceService
public void setDataSourceService(DataSourceService data)
-
getDataSourceService
public DataSourceService getDataSourceService()
-
getName
public String getName()
-
getId
public String getId()
- Specified by:
getId
in interfaceComponent
- Overrides:
getId
in classBaseComponent
- Returns:
- the id of the component, see the id description in the root of this class.
-
getDataUrl
public String getDataUrl()
-
getDataSourceProperties
public List<DataSourceProperty> getDataSourceProperties()
-
setIncludeCreationCode
public void setIncludeCreationCode(boolean includeCreationCode)
-
getIncludeCreationCode
public boolean getIncludeCreationCode()
-
-