Search in sources :

Example 1 with ServerProxy

use of com.servoy.j2db.persistence.ServerProxy in project servoy-client by Servoy.

the class FlattenedSolution method combineServerProxies.

private void combineServerProxies(ConcurrentMap<String, IServer> orgs, ConcurrentMap<String, IServer> additional) throws RemoteException {
    Iterator<IServer> it = additional.values().iterator();
    while (it.hasNext()) {
        IServer addObject = it.next();
        IServer orgObject = orgs.get(addObject.getName());
        if (addObject instanceof ServerProxy) {
            ServerProxy add = (ServerProxy) addObject;
            if (orgObject == null) {
                orgs.put(add.getName(), add);
            } else if (orgObject instanceof ServerProxy) {
                ServerProxy org = (ServerProxy) orgObject;
                org.combineTables(add);
            }
        }
    }
}
Also used : IServer(com.servoy.j2db.persistence.IServer) ServerProxy(com.servoy.j2db.persistence.ServerProxy)

Aggregations

IServer (com.servoy.j2db.persistence.IServer)1 ServerProxy (com.servoy.j2db.persistence.ServerProxy)1