cancel
Showing results for 
Search instead for 
Did you mean: 

What exactly is the name of the Repository for?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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^

former_member182372
Active Contributor
0 Kudos

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.