Skip to Content
author's profile photo Former Member
Former Member

What exactly is the name of the Repository for?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 31, 2006 at 09:32 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2006 at 06:14 AM

    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^

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.