on 08-30-2006 10:32 AM
Hi,
in
JCO.createRepository (name, connection)
what is the 'name' parameter for?
I was wondering if I can use the same name for different calls of this function and also with different connections (that may have different permissions)?
What happens inside with this parameter?
bye
Stephan
hi
good
createRepository
public static IRepository createRepository(java.lang.String name,
java.lang.String[] pool_names)Creates a new repository
Parameters:
name - the name of the new repository
pool_names - the names of the client pools which the repository uses to dynamically query the remote SAP system dictonary.
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephan,
Using approach described in my blog <a href="/people/maksim.rashchynski/blog/2006/08/14/the-story-about-how-2-eclipse-plugins-helped-me-to-make-a-lot-of-points-on-sdn-forum Story About How 2 Eclipse Plugins helped me to make a lot of points on SDN forum</a> I have figured out:
public static IRepository createRepository(String name, Client client)
{
return new Repository(name, client);
}
public static class Repository extends BasicRepository implements IRepository {
...
public Repository(String name, Client client)
{
super(name);
pool_names = new String[0];
repository_version = 0;
this.client = client;
}
...
}
public static abstract class BasicRepository implements IRepository
{
...
public BasicRepository(String name)
{
function_cache = new Hashtable(13);
structure_cache = new Hashtable(13);
this.name = name;
}
...
}
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.