Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp')
-rw-r--r--org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/annotation/CommonUtils.java4
-rw-r--r--org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/common/EntityUtils.java7
-rw-r--r--org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/entityhelper/DataType.java58
3 files changed, 45 insertions, 24 deletions
diff --git a/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/annotation/CommonUtils.java b/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/annotation/CommonUtils.java
index b591c60..16d0586 100644
--- a/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/annotation/CommonUtils.java
+++ b/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/annotation/CommonUtils.java
@@ -2,10 +2,10 @@
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
+ * are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
- *
+ *
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
diff --git a/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/common/EntityUtils.java b/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/common/EntityUtils.java
index af90b25..575e633 100644
--- a/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/common/EntityUtils.java
+++ b/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/common/EntityUtils.java
@@ -2,10 +2,10 @@
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
+ * are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
- *
+ *
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
@@ -37,6 +37,9 @@ import org.eclipse.xtext.xbase.lib.Exceptions;
@SuppressWarnings("all")
public class EntityUtils {
public static String getQualifiedDtoNameForEntity(final JvmType type) {
+ if ((type == null)) {
+ return null;
+ }
try {
String qualifiedEntityName = type.getQualifiedName();
ResourceSet resourceSet = type.eResource().getResourceSet();
diff --git a/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/entityhelper/DataType.java b/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/entityhelper/DataType.java
index 9117172..6631f81 100644
--- a/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/entityhelper/DataType.java
+++ b/org.eclipse.osbp.utils/xtend-gen/org/eclipse/osbp/utils/entityhelper/DataType.java
@@ -2,10 +2,10 @@
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
+ * are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
- *
+ *
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
@@ -210,38 +210,56 @@ public class DataType {
boolean _isNullOrEmpty = IterableExtensions.isNullOrEmpty(lDataType.getProperties());
boolean _not = (!_isNullOrEmpty);
if (_not) {
- if ((this.typeHelper.isString(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), ((Function1<LKeyAndValue, Boolean>) (LKeyAndValue it) -> {
- return Boolean.valueOf(it.getKey().toLowerCase().equals(IPropertyConstants.PROPERTY_BLOB));
- })))) {
+ if ((this.typeHelper.isString(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), new Function1<LKeyAndValue, Boolean>() {
+ @Override
+ public Boolean apply(final LKeyAndValue it) {
+ return Boolean.valueOf(it.getKey().equalsIgnoreCase(IPropertyConstants.PROPERTY_BLOB));
+ }
+ }))) {
return IDataMart.EType.BLOPMAPPING;
}
- if ((this.typeHelper.isString(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), ((Function1<LKeyAndValue, Boolean>) (LKeyAndValue it) -> {
- return Boolean.valueOf(it.getValue().toLowerCase().equals(IPropertyConstants.PROPERTY_RICH_TEXT));
- })))) {
+ if (((this.typeHelper.isString(this.getJvmType(attribute)) || lDataType.isAsBlob()) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), new Function1<LKeyAndValue, Boolean>() {
+ @Override
+ public Boolean apply(final LKeyAndValue it) {
+ return Boolean.valueOf(it.getValue().equalsIgnoreCase(IPropertyConstants.PROPERTY_RICH_TEXT));
+ }
+ }))) {
return IDataMart.EType.RICHTEXTAREA;
}
- if ((this.typeHelper.isBoolean(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), ((Function1<LKeyAndValue, Boolean>) (LKeyAndValue it) -> {
- return Boolean.valueOf(it.getValue().toLowerCase().equals(IPropertyConstants.PROPERTY_CHECKBOX));
- })))) {
+ if ((this.typeHelper.isBoolean(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), new Function1<LKeyAndValue, Boolean>() {
+ @Override
+ public Boolean apply(final LKeyAndValue it) {
+ return Boolean.valueOf(it.getValue().equalsIgnoreCase(IPropertyConstants.PROPERTY_CHECKBOX));
+ }
+ }))) {
return IDataMart.EType.BOOLEAN_CHECKBOX;
}
}
boolean _isNullOrEmpty_1 = IterableExtensions.isNullOrEmpty(attribute.getProperties());
boolean _not_1 = (!_isNullOrEmpty_1);
if (_not_1) {
- if ((this.typeHelper.isString(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(attribute.getProperties(), ((Function1<LKeyAndValue, Boolean>) (LKeyAndValue it) -> {
- return Boolean.valueOf(it.getKey().toLowerCase().equals(IPropertyConstants.PROPERTY_BLOB));
- })))) {
+ if ((this.typeHelper.isString(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(attribute.getProperties(), new Function1<LKeyAndValue, Boolean>() {
+ @Override
+ public Boolean apply(final LKeyAndValue it) {
+ return Boolean.valueOf(it.getKey().equalsIgnoreCase(IPropertyConstants.PROPERTY_BLOB));
+ }
+ }))) {
return IDataMart.EType.BLOPMAPPING;
}
- if ((this.typeHelper.isString(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(attribute.getProperties(), ((Function1<LKeyAndValue, Boolean>) (LKeyAndValue it) -> {
- return Boolean.valueOf(it.getValue().toLowerCase().equals(IPropertyConstants.PROPERTY_RICH_TEXT));
- })))) {
+ if (((this.typeHelper.isString(this.getJvmType(attribute)) || lDataType.isAsBlob()) && IterableExtensions.<LKeyAndValue>exists(attribute.getProperties(), new Function1<LKeyAndValue, Boolean>() {
+ @Override
+ public Boolean apply(final LKeyAndValue it) {
+ return Boolean.valueOf(it.getValue().equalsIgnoreCase(IPropertyConstants.PROPERTY_RICH_TEXT));
+ }
+ }))) {
return IDataMart.EType.RICHTEXTAREA;
}
- if ((this.typeHelper.isBoolean(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), ((Function1<LKeyAndValue, Boolean>) (LKeyAndValue it) -> {
- return Boolean.valueOf(it.getValue().toLowerCase().equals(IPropertyConstants.PROPERTY_CHECKBOX));
- })))) {
+ if ((this.typeHelper.isBoolean(this.getJvmType(attribute)) && IterableExtensions.<LKeyAndValue>exists(lDataType.getProperties(), new Function1<LKeyAndValue, Boolean>() {
+ @Override
+ public Boolean apply(final LKeyAndValue it) {
+ return Boolean.valueOf(it.getValue().equalsIgnoreCase(IPropertyConstants.PROPERTY_CHECKBOX));
+ }
+ }))) {
return IDataMart.EType.BOOLEAN_CHECKBOX;
}
}

Back to the top