public class OdaDataSourceHandle extends DataSourceHandle implements org.eclipse.birt.report.model.elements.interfaces.IOdaDataSourceModel, org.eclipse.birt.report.model.elements.interfaces.IOdaExtendableElementModel
OdaDataSource
element
module
DESIGNER_STATE_PROP, DRIVER_NAME_PROP, EXTERNAL_CONNECTION_NAME, PRIVATE_DRIVER_PROPERTIES_PROP, PUBLIC_DRIVER_PROPERTIES_PROP
EXTENSION_ID_PROP
AFTER_CLOSE_METHOD, AFTER_OPEN_METHOD, BEFORE_CLOSE_METHOD, BEFORE_OPEN_METHOD
COMMENTS_PROP, CUSTOM_XML_PROP, DISPLAY_NAME_ID_PROP, DISPLAY_NAME_PROP, EVENT_HANDLER_CLASS_PROP, EXTENDS_PROP, FULL_LABEL, ID_SUFFIX, NAME_PROP, NEW_HANDLER_ON_EACH_EVENT_PROP, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP
Constructor and Description |
---|
OdaDataSourceHandle(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Constructs an extended data source handle with the given design and the
element.
|
Modifier and Type | Method and Description |
---|---|
IElementDefn |
getDefn()
Returns the element definition of the element this handle represents.
|
byte[] |
getDesigerStateContentAsBlob()
Returns the content of designer state as the byte array.
|
java.lang.String |
getDesigerStateContentAsString()
Returns the content of designer state as the string.
|
java.lang.String |
getDesigerStateVersion()
Returns the version of designer state.
|
OdaDesignerStateHandle |
getDesignerState()
Returns the oda designer state.
|
java.lang.String |
getDriverName()
Deprecated.
This property is removed.
|
java.lang.String |
getExtensionID()
Returns ID of the extension which extends this ODA data source.
|
java.lang.String |
getExtensionName()
Deprecated.
use
getExtensioID() |
java.util.List |
getExtensionPropertyDefinitionList()
Returns the list of extension property definition.
|
java.lang.String |
getExternalConnectionName() |
java.lang.String |
getPrivateDriverProperty(java.lang.String name)
Returns a private driver property value with the given property name.
|
java.util.Iterator |
privateDriverPropertiesIterator()
Returns the iterator for the private driver property list.
|
void |
setDesigerStateContentAsBlob(byte[] content)
Returns the content of designer state as the byte.
|
void |
setDesigerStateContentAsString(java.lang.String content)
Returns the content of designer state as the string.
|
void |
setDesigerStateVersion(java.lang.String version)
Returns the version of designer state.
|
OdaDesignerStateHandle |
setDesignerState(OdaDesignerState designerState)
Sets the designer state for a oda data source.
|
void |
setDriverName(java.lang.String driverName)
Deprecated.
This property is removed.
|
void |
setExternalConnectionName(java.lang.String externalConnectionName) |
void |
setPrivateDriverProperty(java.lang.String name,
java.lang.String value)
Sets a private driver property value with the given name and value.
|
getAfterClose, getAfterOpen, getBeforeClose, getBeforeOpen, setAfterClose, setAfterOpen, setBeforeClose, setBeforeOpen
getComments, getCustomXml, getDisplayName, getDisplayNameKey, getElement, getPropertyMask, isValidLayoutForCompoundElement, isValidReferenceForCompoundElement, propertyMaskIterator, setComments, setCustomXml, setDisplayName, setDisplayNameKey, setPropertyMask
add, add, addElement, addElement, addListener, addUserPropertyDefn, cachePropertyHandles, canContain, canContain, canContain, canContain, canDrop, canEdit, canTransformToTemplate, clearAllProperties, clearContents, clearProperty, clientsIterator, copy, copyPropertyTo, createTemplateElement, derivedIterator, doSort, drop, drop, drop, dropAndClear, dropAndClear, dropAndClear, dropUserPropertyDefn, findContentSlot, getBooleanProperty, getChoices, getColorProperty, getContainer, getContainerPropertyHandle, getContainerSlotHandle, getContent, getContentCount, getContents, getDesign, getDesignHandle, getDimensionProperty, getDisplayLabel, getDisplayLabel, getDisplayProperty, getEffectiveModule, getElementFactory, getElementProperty, getEventHandlerClass, getExpressionProperty, getExtends, getExternalizedValue, getExternalizedValue, getExternalizedValue, getFactoryElementHandle, getFactoryPropertyHandle, getFloatProperty, getFontProperty, getFullName, getHostViewHandle, getID, getIndex, getIntProperty, getListProperty, getListProperty, getMethods, getModule, getModuleHandle, getName, getNumberProperty, getPrivateStyle, getProperty, getPropertyBinding, getPropertyBindingExpression, getPropertyBindings, getPropertyDefn, getPropertyHandle, getPropertyIterator, getQualifiedName, getRoot, getSemanticErrors, getSlot, getStringProperty, getStyle, getUserProperties, getUserPropertyDefnHandle, getXPath, hasLocalProperties, hasSemanticError, initializeSlotHandles, isDirectionRTL, isInTemplateParameter, isTemplateParameterValue, isValid, localize, move, move, moveTo, moveTo, moveTo, moveTo, newHandlerOnEachEvent, paste, paste, paste, paste, removeListener, revertToReportItem, revertToTemplate, semanticCheck, setBooleanProperty, setEncryption, setEventHandlerClass, setExpressionProperty, setExtends, setExtendsElement, setExtendsName, setFloatProperty, setIntProperty, setName, setNewHandlerOnEachEvent, setNumberProperty, setProperties, setProperty, setPropertyBinding, setPropertyBinding, setStringProperty, setStyle, setStyleElement, setStyleName, setValid, shift, showError, slotsIterator
public OdaDataSourceHandle(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
module
- the moduleelement
- the model representation of the elementpublic java.lang.String getExtensionName()
getExtensioID()
public java.lang.String getExtensionID()
public void setDriverName(java.lang.String driverName) throws SemanticException
driverName
- the name to setSemanticException
- if this property is locked.public java.lang.String getDriverName()
public java.util.Iterator privateDriverPropertiesIterator()
ExtendedPropertyHandle
.ExtendedProperty
public java.lang.String getPrivateDriverProperty(java.lang.String name)
name
- the name of a public driver propertypublic void setPrivateDriverProperty(java.lang.String name, java.lang.String value) throws SemanticException
name
- the name of a public driver propertyvalue
- the value of a public driver propertySemanticException
- if name
is null
or an empty string
after trimming.public IElementDefn getDefn()
getDefn
in class DesignElementHandle
public java.util.List getExtensionPropertyDefinitionList()
public java.lang.String getDesigerStateVersion()
public void setDesigerStateVersion(java.lang.String version) throws SemanticException
version
- the version of designer state.SemanticException
- if designer state property is locked.public java.lang.String getDesigerStateContentAsString()
public void setDesigerStateContentAsString(java.lang.String content) throws SemanticException
content
- the content of designer state as the string.SemanticException
- if designer state property is locked.public byte[] getDesigerStateContentAsBlob()
public void setDesigerStateContentAsBlob(byte[] content) throws SemanticException
content
- the content of designer state as the byte.SemanticException
- if designer state property is locked.public OdaDesignerStateHandle getDesignerState()
null
if the designer state.OdaDesignerStateHandle
public OdaDesignerStateHandle setDesignerState(OdaDesignerState designerState) throws SemanticException
designerState
- new designer stateSemanticException
- if member of the designer state is not valid.public java.lang.String getExternalConnectionName()
public void setExternalConnectionName(java.lang.String externalConnectionName) throws SemanticException
SemanticException
Copyright © 2008 Actuate Corp. All rights reserved.