Hi Isomorphic,
I wonder what the log message I get very early during a request means (as everything is working as expected and it sounds like a warning):
I have a .ds.xml with the following operationBindings:
The server-side class is:
If I set breakpoints I can see that the server-method updateLead(...) is used, which in turn calls my custom logic - so everything works as expected.
I'm just curious what the log entry "No public zero-argument method named '_updateLead' found, performing generic datasource operation" is telling me. Can I create a method _updateLead() and where could it be useful?
Thank you,
Blama
I wonder what the log message I get very early during a request means (as everything is working as expected and it sounds like a warning):
Code:
=== 2013-11-18 17:21:19,940 [ec-6] DEBUG PoolableSQLConnectionFactory - Executing pingTest 'select 1 from dual' on connection 804541778
=== 2013-11-18 17:21:19,941 [ec-6] DEBUG SQLConnectionManager - Borrowed connection '804541778'
=== 2013-11-18 17:21:19,941 [ec-6] DEBUG SQLTransaction - Started new Oracle transaction "804541778"
=== 2013-11-18 17:21:19,941 [ec-6] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null
=== 2013-11-18 17:21:19,941 [ec-6] DEBUG DeclarativeSecurity - DataSource T_ADDRESS is not in the pre-checked list, processing...
=== 2013-11-18 17:21:19,941 [ec-6] DEBUG AppBase - [builtinApplication.updateLead] No userTypes defined, allowing anyone access to all operations for this application
=== 2013-11-18 17:21:19,942 [ec-6] DEBUG AppBase - [builtinApplication.updateLead] No public zero-argument method named '_updateLead' found, performing generic datasource operation
=== 2013-11-18 17:21:19,942 [ec-6] INFO SQLDataSource - [builtinApplication.updateLead] Performing update operation with
criteria: {ID:1} values: {...}Code:
<DataSource dbName="Oracle" tableName="T_ADDRESS" ID="T_ADDRESS" serverType="sql">
<fields>
...fieldlist...
</fields>
<serverObject lookupStyle="new" className="com.lmscompany.lms.server.worker.T_ADDRESS" />
<operationBindings>
<operationBinding operationType="add" operationId="addLead" serverMethod="addLead">
</operationBinding>
<operationBinding operationType="update" operationId="updateLead" serverMethod="updateLead">
</operationBinding>
</operationBindings>
</DataSource>Code:
public class T_ADDRESS {
public DSResponse update(DSRequest dsRequest, HttpServletRequest servletRequest) throws Exception {
return dsRequest.execute();
}
public DSResponse addLead(DSRequest dsRequest, HttpServletRequest servletRequest) throws Exception {
return addOrUpdateLead(dsRequest);
}
public DSResponse updateLead(DSRequest dsRequest, HttpServletRequest servletRequest) throws Exception {
return addOrUpdateLead(dsRequest);
}
public DSResponse addOrUpdateLead(DSRequest dsRequest) throws Exception {
...some logic...
}
};I'm just curious what the log entry "No public zero-argument method named '_updateLead' found, performing generic datasource operation" is telling me. Can I create a method _updateLead() and where could it be useful?
Thank you,
Blama