org.broadleafcommerce.openadmin.client.datasource.dynamic.module
Class BasicClientEntityModule
java.lang.Object
org.broadleafcommerce.openadmin.client.datasource.dynamic.module.BasicClientEntityModule
- All Implemented Interfaces:
- DataSourceModule
- Direct Known Subclasses:
- JoinStructureClientModule, MapStructureClientModule
public class BasicClientEntityModule
- extends java.lang.Object
- implements DataSourceModule
- Author:
- jfischer
|
Method Summary |
protected void |
buildCriteria(com.google.gwt.json.client.JSONArray criteriaArray,
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto)
|
Entity |
buildEntity(com.smartgwt.client.data.Record record,
com.smartgwt.client.data.DSRequest request)
|
void |
buildFields(java.lang.String[] customCriteria,
java.lang.Boolean overrideFieldSort,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
|
com.smartgwt.client.data.Record |
buildRecord(Entity entity,
java.lang.Boolean updateId)
|
com.smartgwt.client.widgets.tree.TreeNode[] |
buildRecords(DynamicResultSet result,
java.lang.String[] filterOutIds)
|
void |
executeAdd(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
|
void |
executeFetch(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
|
void |
executeRemove(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
|
void |
executeUpdate(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
|
protected void |
filterProperties(ClassMetadata metadata,
MergedPropertyType[] includeTypes,
java.lang.Boolean overrideFieldSort)
|
protected com.smartgwt.client.types.OperatorId[] |
getBasicBooleanOperators()
|
protected com.smartgwt.client.types.OperatorId[] |
getBasicDateOperators()
|
protected com.smartgwt.client.types.OperatorId[] |
getBasicEnumerationOperators()
|
protected com.smartgwt.client.types.OperatorId[] |
getBasicIdOperators()
|
protected com.smartgwt.client.types.OperatorId[] |
getBasicNumericOperators()
|
protected com.smartgwt.client.types.OperatorId[] |
getBasicTextOperators()
|
java.lang.String |
getCeilingEntityFullyQualifiedClassname()
|
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject |
getCto(com.smartgwt.client.data.DSRequest request)
Transforms the given request into
CriteriaTransferObject instance. |
ForeignKey |
getCurrentForeignKey()
|
java.lang.String |
getLinkedValue()
|
boolean |
isCompatible(OperationType operationType)
|
void |
setCurrentForeignKey(ForeignKey currentForeignKey)
|
void |
setDataSource(AbstractDynamicDataSource dataSource)
|
void |
setLinkedValue(java.lang.String linkedValue)
|
com.smartgwt.client.data.Record |
updateRecord(Entity entity,
com.smartgwt.client.data.Record record,
java.lang.Boolean updateId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formatter
protected final com.google.gwt.i18n.client.DateTimeFormat formatter
currentForeignKey
protected ForeignKey currentForeignKey
dataSource
protected AbstractDynamicDataSource dataSource
linkedValue
protected java.lang.String linkedValue
service
protected DynamicEntityServiceAsync service
ceilingEntityFullyQualifiedClassname
protected final java.lang.String ceilingEntityFullyQualifiedClassname
persistencePerspective
protected PersistencePerspective persistencePerspective
loadLevelCount
protected java.lang.Long loadLevelCount
BasicClientEntityModule
public BasicClientEntityModule(java.lang.String ceilingEntityFullyQualifiedClassname,
PersistencePerspective persistencePerspective,
DynamicEntityServiceAsync service)
getCto
public com.anasoft.os.daofusion.cto.client.CriteriaTransferObject getCto(com.smartgwt.client.data.DSRequest request)
- Transforms the given request into
CriteriaTransferObject instance.
We are doing this because we can apply seamless
CTO-to-criteria conversions back on the server.
- Specified by:
getCto in interface DataSourceModule
getCurrentForeignKey
public ForeignKey getCurrentForeignKey()
setCurrentForeignKey
public void setCurrentForeignKey(ForeignKey currentForeignKey)
getLinkedValue
public java.lang.String getLinkedValue()
- Specified by:
getLinkedValue in interface DataSourceModule
setLinkedValue
public void setLinkedValue(java.lang.String linkedValue)
- Specified by:
setLinkedValue in interface DataSourceModule
buildCriteria
protected void buildCriteria(com.google.gwt.json.client.JSONArray criteriaArray,
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto)
isCompatible
public boolean isCompatible(OperationType operationType)
- Specified by:
isCompatible in interface DataSourceModule
executeFetch
public void executeFetch(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
- Specified by:
executeFetch in interface DataSourceModule
executeAdd
public void executeAdd(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
- Specified by:
executeAdd in interface DataSourceModule
executeUpdate
public void executeUpdate(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
- Specified by:
executeUpdate in interface DataSourceModule
executeRemove
public void executeRemove(java.lang.String requestId,
com.smartgwt.client.data.DSRequest request,
com.smartgwt.client.data.DSResponse response,
java.lang.String[] customCriteria,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
- Specified by:
executeRemove in interface DataSourceModule
buildRecord
public com.smartgwt.client.data.Record buildRecord(Entity entity,
java.lang.Boolean updateId)
- Specified by:
buildRecord in interface DataSourceModule
updateRecord
public com.smartgwt.client.data.Record updateRecord(Entity entity,
com.smartgwt.client.data.Record record,
java.lang.Boolean updateId)
- Specified by:
updateRecord in interface DataSourceModule
buildRecords
public com.smartgwt.client.widgets.tree.TreeNode[] buildRecords(DynamicResultSet result,
java.lang.String[] filterOutIds)
- Specified by:
buildRecords in interface DataSourceModule
buildEntity
public Entity buildEntity(com.smartgwt.client.data.Record record,
com.smartgwt.client.data.DSRequest request)
- Specified by:
buildEntity in interface DataSourceModule
buildFields
public void buildFields(java.lang.String[] customCriteria,
java.lang.Boolean overrideFieldSort,
com.google.gwt.user.client.rpc.AsyncCallback<com.smartgwt.client.data.DataSource> cb)
- Specified by:
buildFields in interface DataSourceModule
getBasicIdOperators
protected com.smartgwt.client.types.OperatorId[] getBasicIdOperators()
getBasicBooleanOperators
protected com.smartgwt.client.types.OperatorId[] getBasicBooleanOperators()
getBasicDateOperators
protected com.smartgwt.client.types.OperatorId[] getBasicDateOperators()
getBasicNumericOperators
protected com.smartgwt.client.types.OperatorId[] getBasicNumericOperators()
getBasicTextOperators
protected com.smartgwt.client.types.OperatorId[] getBasicTextOperators()
getBasicEnumerationOperators
protected com.smartgwt.client.types.OperatorId[] getBasicEnumerationOperators()
filterProperties
protected void filterProperties(ClassMetadata metadata,
MergedPropertyType[] includeTypes,
java.lang.Boolean overrideFieldSort)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
setDataSource
public void setDataSource(AbstractDynamicDataSource dataSource)
- Specified by:
setDataSource in interface DataSourceModule
getCeilingEntityFullyQualifiedClassname
public java.lang.String getCeilingEntityFullyQualifiedClassname()
- Specified by:
getCeilingEntityFullyQualifiedClassname in interface DataSourceModule
Copyright © 2011. All Rights Reserved.