Page History
...
Java Data Type | Bridge Base Type |
---|---|
boolean, java.lang.Boolean | Boolean |
byte, java.lang.Byte | Integer |
short, java.lang.Short | Integer |
int, java.lang.Integer | Integer |
long, java.lang.Long | Integer |
float, java.lang.Float | Float |
double, java.lang.Double | Float |
char, java.lang.Character | String |
java.lang.String | String |
java.util.Date and subclasses | DateTime |
java.util.GregorianCalendar and subclasses | DateTime |
java.io.InputStream and subclasses | Blob |
byte[], java.lang.Byte[] | Blob |
java.util.Collection and implementations | Array |
Arrays except byte[] and java.lang.Byte[] | Array |
java.util.Map and implementations | Array of a specialized class with stereotype <<MapEntry>> having two attributes of Bridge base type |
...
Topic | Hint | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Checked exceptions in the default constructor | The Bridge Java wrapper cannot handle checked exceptions in the default constructor of a Java class. If you need this nevertheless, you need to wrap the checked exception with an unchecked one. | |||||||||||||
Data manipulation on the Java object | If you want to manipulate data of a Java object, there is no need to transfer it to xUML and back (if not necessary). Leave the object management to Java and store the created objects in a thread-save concurrent hashmap. Then, simply transfer only an object id between the xUML model and the Java implementation. | |||||||||||||
Catching exceptions after adapter call | If you want to catch exceptions that occurred during the adapter call in your xUML model, you need to throw these exceptions in your Java code using one of the following:
In order to use
|
Overview
Content Tools