Ejemplo n.º 1
0
 public static MultiMapConfig createConfig(CollectionProxyId proxyId) {
   switch (proxyId.getType()) {
     case MULTI_MAP:
       return new MultiMapConfig().setName(proxyId.getName());
     case LIST:
       return new MultiMapConfig()
           .setName(COLLECTION_LIST_NAME + proxyId.getKeyName())
           .setValueCollectionType(MultiMapConfig.ValueCollectionType.LIST);
     case SET:
       return new MultiMapConfig()
           .setName(COLLECTION_SET_NAME + proxyId.getKeyName())
           .setValueCollectionType(MultiMapConfig.ValueCollectionType.SET);
     default:
       throw new IllegalArgumentException("Illegal proxy type: " + proxyId.getType());
   }
 }
Ejemplo n.º 2
0
 public String getName() {
   return proxyId.getName();
 }