Esempio n. 1
0
 @Override
 public VDBMetaData clone() {
   try {
     VDBMetaData clone = (VDBMetaData) super.clone();
     clone.models = new LinkedHashMap<String, ModelMetaData>(this.models);
     synchronized (this.attachments) {
       clone.attachments =
           Collections.synchronizedMap(new LinkedHashMap<Class<?>, Object>(attachments));
     }
     return clone;
   } catch (CloneNotSupportedException e) {
     throw new TeiidRuntimeException(e);
   }
 }
Esempio n. 2
0
 @Override
 public VDBMetaData clone() {
   try {
     VDBMetaData clone = (VDBMetaData) super.clone();
     clone.models = new LinkedHashMap<String, ModelMetaData>(this.models);
     if (this.attachments != null) {
       clone.attachments = null;
       clone.getAttachments().putAll(this.getAttachments());
     }
     return clone;
   } catch (CloneNotSupportedException e) {
     throw new TeiidRuntimeException(e);
   }
 }