Пример #1
0
 /* (non-Javadoc)
  * @see tudresden.ocl20.pivot.pivotmodel.base.AbstractProperty#getType()
  */
 @Override
 public Type getType() {
   Type elementType = this.factory.createType(dslColumn.getType());
   if (dslColumn.getType().getName().contains(" ARRAY")
       || dslColumn.getType().getName().contains("[]")
       || dslColumn.getType().getName().contains("[ ]")) {
     elementType =
         EssentialOclPlugin.getOclLibraryProvider().getOclLibrary().getBagType(elementType);
   }
   return elementType;
 }
Пример #2
0
 /* (non-Javadoc)
  * @see tudresden.ocl20.pivot.pivotmodel.impl.PropertyImpl#isIdentifier()
  */
 @Override
 public boolean isIdentifier() {
   for (UniqueKey uk : dslColumn.getUniqueKey()) {
     if (uk instanceof PrimaryKey) return true;
   }
   return false;
 }
Пример #3
0
 /* (non-Javadoc)
  * @see tudresden.ocl20.pivot.pivotmodel.base.AbstractProperty#getOwningType()
  */
 @Override
 public Type getOwningType() {
   return this.factory.createType(dslColumn.getOwner());
 }