use of org.applause.lang.applauseDsl.DataSourceAccessMethod in project applause by applause.
the class EntityDataAccessModuleFileCompiler method compileModuleFile.
public CharSequence compileModuleFile(final DataSource it) {
StringConcatenation _builder = new StringConcatenation();
_builder.append("#import \"");
Entity _resourceType = it.getResourceType();
String _entityDataAccessCategoryHeaderFileName = this._dataAccessClassExtensions.entityDataAccessCategoryHeaderFileName(_resourceType);
_builder.append(_entityDataAccessCategoryHeaderFileName, "");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("#import \"");
Entity _resourceType_1 = it.getResourceType();
String _apiClientClassName = this._aPIClientClassExtensions.apiClientClassName(_resourceType_1);
String _headerFileName = this._fileNameExtensions.headerFileName(_apiClientClassName);
_builder.append(_headerFileName, "");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.append("#import \"");
Entity _resourceType_2 = it.getResourceType();
String _mappingClassName = this.mappingClassName(_resourceType_2);
String _headerFileName_1 = this._fileNameExtensions.headerFileName(_mappingClassName);
_builder.append(_headerFileName_1, "");
_builder.append("\"");
_builder.newLineIfNotEmpty();
_builder.newLine();
_builder.append("@implementation ");
Entity _resourceType_3 = it.getResourceType();
String _typeName = this._typeExtensions.typeName(_resourceType_3);
_builder.append(_typeName, "");
_builder.append(" (DataAccess)");
_builder.newLineIfNotEmpty();
_builder.newLine();
{
EList<DataSourceAccessMethod> _methods = it.getMethods();
for (final DataSourceAccessMethod method : _methods) {
CharSequence _compileRESTMethod = this.compileRESTMethod(method);
_builder.append(_compileRESTMethod, "");
_builder.newLineIfNotEmpty();
_builder.newLine();
}
}
_builder.append("@end");
_builder.newLine();
return _builder;
}
use of org.applause.lang.applauseDsl.DataSourceAccessMethod in project applause by applause.
the class RESTMethodCallImpl method setRestMethod.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRestMethod(DataSourceAccessMethod newRestMethod) {
DataSourceAccessMethod oldRestMethod = restMethod;
restMethod = newRestMethod;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ApplauseDslPackage.REST_METHOD_CALL__REST_METHOD, oldRestMethod, restMethod));
}
Aggregations