"Inconsistent column set: expected {0}, but was {1}",
new TreeSet<String>(tableInfo.getImportTargetColumns()), remoteInfo.getColumnNames()));
return null;
}
ThunderGateCacheSupport model = createDataModelObject(tableName, tableInfo);
if (remoteInfo.getModelClassName().equals(model.getClass().getName()) == false) {
LOG.warn("TG-IMPORTER-11010", tableName, cacheId, MessageFormat.format(
"Inconsistent model class: expected {0}, but was {1}",
model.getClass().getName(), remoteInfo.getModelClassName()));
return null;
}
if (remoteInfo.getModelClassVersion() != model.__tgc__DataModelVersion()) {
LOG.warn("TG-IMPORTER-11010", tableName, cacheId, MessageFormat.format(
"Inconsistent model version: expected {0}, but was {1}",
model.__tgc__DataModelVersion(), remoteInfo.getModelClassVersion()));
return null;
}
LocalCacheInfo local = repository.getCacheInfo(remoteInfo.getId());
if (local == null) {