public class DynamicEntityDataSource extends AbstractDynamicDataSource
addedRecord, defaultNewEntityFullyQualifiedClassname, formItemCallbackHandlerManager, modules, persistencePerspective, polymorphicEntities, polymorphicEntityTree, service, showArchived
Constructor and Description |
---|
DynamicEntityDataSource(String ceilingEntityClassName)
Creates a datasource capable of all CRUD operations on the passed in Entity.
|
DynamicEntityDataSource(String name,
PersistencePerspective persistencePerspective,
DynamicEntityServiceAsync service,
DataSourceModule[] modules)
Note that the name parameter on this constructor is not meaningful to the internal representation
of DynamicEntityDataSource.
|
Modifier and Type | Method and Description |
---|---|
void |
buildFields(String[] customCriteria,
Boolean overrideFieldSort,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb) |
com.smartgwt.client.data.Criteria |
createRelationshipCriteria(String relationshipValue) |
protected void |
executeAdd(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response)
Executed on
ADD operation. |
protected void |
executeAdd(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb) |
protected void |
executeFetch(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response)
Executed on
FETCH operation. |
protected void |
executeFetch(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb) |
protected void |
executeRemove(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response)
Executed on
REMOVE operation. |
protected void |
executeRemove(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb) |
protected void |
executeUpdate(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response)
Executed on
UPDATE operation. |
protected void |
executeUpdate(String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb) |
Map |
extractRecordValues(com.smartgwt.client.widgets.tree.TreeNode record,
String... excludeFields) |
DataSourceModule |
getCompatibleModule(OperationType operationType) |
PersistencePerspective |
getPersistencePerspective() |
void |
permanentlyHideFields(String... fieldNames) |
void |
permanentlyShowFields(String... fieldNames) |
void |
resetPermanentFieldVisibility() |
void |
resetPermanentFieldVisibility(String... fieldNames) |
void |
resetPermanentFieldVisibilityBasedOnType(String[] type) |
void |
resetProminenceOnly(String... fieldNames) |
void |
resetVisibilityOnly(String... fieldNames) |
void |
setLinkedValue(String linkedValue) |
void |
setProminent(String... fieldNames) |
void |
setTypeOps(com.google.gwt.core.client.JavaScriptObject type,
com.google.gwt.core.client.JavaScriptObject operatorArray) |
void |
setTypeOps(com.smartgwt.client.types.OperatorId... ids) |
void |
updateFriendlyName(String fieldName,
String friendlyName) |
buildPolymorphicEntityMap, getAddedRecord, getDefaultNewEntityFullyQualifiedClassname, getFormItemCallbackHandlerManager, getModules, getPolymorphicEntities, getPolymorphicEntityTree, getPrimaryKeyValue, getService, isShowArchived, replaceModuleByType, setAddedRecord, setDefaultNewEntityFullyQualifiedClassname, setFormItemCallbackHandlerManager, setModules, setPolymorphicEntityTree, setService, setShowArchived, stripDuplicateAllowSpecialCharacters
transformRequest
addData, addData, addData, addField, addHandleErrorHandler, combineCriteria, convertRelativeDates, convertRelativeDates, copyRecord, copyRecords, create, downloadFile, downloadFile, exportClientData, exportData, exportData, fetchData, fetchData, filterData, filterData, get, get, getAddGlobalId, getAutoCacheAllData, getAutoConvertRelativeDates, getAutoDeriveTitles, getCacheAllData, getCacheData, getCacheMaxAge, getCallbackParam, getCanMultiSort, getChildrenField, getClientOnly, getClientOnlyResponse, getCriteriaPolicy, getDataField, getDataFormat, getDataProtocol, getDataSource, getDataSource, getDataTransport, getDataURL, getDefaultParams, getDescriptionField, getDisplayValue, getDropExtraFields, getField, getFieldForDataPath, getFieldNames, getFieldNames, getFieldOperators, getFieldOperators, getFields, getFileURL, getGlobalNamespaces, getIconField, getInfoField, getInheritsFrom, getJsObj, getJsonPrefix, getJsonSuffix, getLegalChildTags, getOperationBindings, getOrCreateRef, getPluralTitle, getPreventHTTPCaching, getPrimaryKeyField, getPrimaryKeyFieldName, getQualifyColumnNames, getRecordXPath, getRequestProperties, getRequiredMessage, getResultBatchSize, getResultSetClass, getSchemaNamespace, getSendExtraFields, getServiceNamespace, getShowLocalFieldsOnly, getShowPrompt, getSortBy, getSortSpecifiers, getStrictSQLFiltering, getTagName, getTestData, getTitle, getTitleField, getTypeOperators, getUseFlatFields, getUseHttpProxy, getUseLocalValidators, getUseOfflineStorage, getUseParentFieldOrder, getUseTestDataFetch, getValidateRelatedRecords, getWillHandleAdvancedCriteria, hasAllData, invalidateCache, isCreated, load, load, onInit, performCustomOperation, processResponse, recordsFromXML, removeData, removeData, removeData, setAddGlobalId, setAutoCacheAllData, setAutoConvertRelativeDates, setAutoDeriveTitles, setCacheAllData, setCacheData, setCacheMaxAge, setCallbackParam, setCanMultiSort, setChildrenField, setClientOnly, setCriteriaPolicy, setDataField, setDataFormat, setDataProtocol, setDataTransport, setDataURL, setDefaultParams, setDescriptionField, setDropExtraFields, setEnumConstantProperty, setEnumOrdinalProperty, setEnumTranslateStrategy, setFields, setGlobalNamespaces, setIconField, setID, setInfoField, setInheritsFrom, setInheritsFrom, setJsonPrefix, setJsonSuffix, setOperationBindings, setPluralTitle, setPreventHTTPCaching, setQualifyColumnNames, setRecordName, setRecordXPath, setRequestProperties, setRequiredMessage, setResultBatchSize, setResultSetClass, setSendExtraFields, setServiceNamespace, setShowLocalFieldsOnly, setShowPrompt, setStrictSQLFiltering, setTagName, setTestData, setTitle, setTitleField, setTypeOperators, setUseFlatFields, setUseHttpProxy, setUseLocalValidators, setUseOfflineStorage, setUseParentFieldOrder, setUseTestDataFetch, setValidateRelatedRecords, setWillHandleAdvancedCriteria, setXmlNamespaces, supportsAdvancedCriteria, supportsTextMatchStyle, transformResponse, updateCaches, updateCaches, updateData, updateData, updateData, useOfflineResponse, validateData, validateData, viewFile, viewFile, xmlSerialize, xmlSerialize, xmlSerialize, xmlSerialize, xmlSerialize
destroy, doAddHandler, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getConfig, getHandlerCount, getID, getOrCreateJsObj, getRef, getScClassName, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setProperty, setProperty, setProperty, setProperty, setScClassName
public DynamicEntityDataSource(String ceilingEntityClassName)
ceilingEntityClassName
- - The fully qualified name of the ceilingEntity.public DynamicEntityDataSource(String name, PersistencePerspective persistencePerspective, DynamicEntityServiceAsync service, DataSourceModule[] modules)
name
- persistencePerspective
- service
- modules
- public void buildFields(String[] customCriteria, Boolean overrideFieldSort, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
protected void executeFetch(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response)
GwtRpcDataSource
FETCH
operation. processResponse (requestId, response)
should be called when operation completes (either successful or failure).executeFetch
in class GwtRpcDataSource
requestId
- String
extracted from DSRequest.getRequestId ()
.request
- DSRequest
being processed.response
- DSResponse
. setData (list)
should be called on
successful execution of this method. setStatus (<0)
should be called
on failure.protected void executeFetch(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response, String[] customCriteria, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
protected void executeAdd(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response)
GwtRpcDataSource
ADD
operation. processResponse (requestId, response)
should be called when operation completes (either successful or failure).executeAdd
in class GwtRpcDataSource
requestId
- String
extracted from DSRequest.getRequestId ()
.request
- DSRequest
being processed. request.getData ()
contains record should be added.response
- DSResponse
. setData (list)
should be called on
successful execution of this method. Array should contain single element representing
added row. setStatus (<0)
should be called on failure.protected void executeAdd(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response, String[] customCriteria, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
protected void executeUpdate(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response)
GwtRpcDataSource
UPDATE
operation. processResponse (requestId, response)
should be called when operation completes (either successful or failure).executeUpdate
in class GwtRpcDataSource
requestId
- String
extracted from DSRequest.getRequestId ()
.request
- DSRequest
being processed. request.getData ()
contains record should be updated.response
- DSResponse
. setData (list)
should be called on
successful execution of this method. Array should contain single element representing
updated row. setStatus (<0)
should be called on failure.protected void executeUpdate(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response, String[] customCriteria, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
protected void executeRemove(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response)
GwtRpcDataSource
REMOVE
operation. processResponse (requestId, response)
should be called when operation completes (either successful or failure).executeRemove
in class GwtRpcDataSource
requestId
- String
extracted from DSRequest.getRequestId ()
.request
- DSRequest
being processed. request.getData ()
contains record should be removed.response
- DSResponse
. setData (list)
should be called on
successful execution of this method. Array should contain single element representing
removed row. setStatus (<0)
should be called on failure.protected void executeRemove(String requestId, com.smartgwt.client.data.DSRequest request, com.smartgwt.client.data.DSResponse response, String[] customCriteria, com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
public void setLinkedValue(String linkedValue)
public DataSourceModule getCompatibleModule(OperationType operationType)
public com.smartgwt.client.data.Criteria createRelationshipCriteria(String relationshipValue)
public Map extractRecordValues(com.smartgwt.client.widgets.tree.TreeNode record, String... excludeFields)
public void resetPermanentFieldVisibility()
public void permanentlyHideFields(String... fieldNames)
public void setProminent(String... fieldNames)
public void permanentlyShowFields(String... fieldNames)
public void resetPermanentFieldVisibility(String... fieldNames)
public void resetVisibilityOnly(String... fieldNames)
public void resetProminenceOnly(String... fieldNames)
public void resetPermanentFieldVisibilityBasedOnType(String[] type)
public PersistencePerspective getPersistencePerspective()
getPersistencePerspective
in class AbstractDynamicDataSource
public void setTypeOps(com.smartgwt.client.types.OperatorId... ids)
public void setTypeOps(com.google.gwt.core.client.JavaScriptObject type, com.google.gwt.core.client.JavaScriptObject operatorArray)
Copyright © 2013. All rights reserved.