KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > jca > JdoAttributeController


1 /**
2  * perseus/connector: this is an implementation of some JCA-related technologies
3  * (resource adapters and managers) for the ObjectWeb consortium.
4  * Copyright (C) 2001-2004 France Telecom R&D
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  * Contact: speedo@objectweb.org
21  *
22  */

23
24 package org.objectweb.speedo.jca;
25
26 import javax.resource.ResourceException JavaDoc;
27
28 /**
29  * Describes the accessors/mutators for each of the properties
30  * that are supported by the JDO Resource Adapter.
31  * @author P. Dechamboux
32  */

33 public interface JdoAttributeController {
34     /**
35      * Gives access to the name of the property file for initializing the
36      * underlying JDO implementation.
37      * @return The name of the property file.
38      */

39     String JavaDoc getPropertyFile();
40
41     /**
42      * Assigns to this JDO connector the name of the property file for
43      * initializing the underlying JDO implementation.
44      * @param pf The name of the property file.
45      */

46     void setPropertyFile(String JavaDoc pf);
47
48     /**
49      * Gives access to the JNDI name of the transaction manager
50      * (javax.transaction.TransactionManager).
51      * @return the JNDI name of the transaction manager
52      */

53     String JavaDoc getTransactionManagerJNDIName();
54
55     /**
56      * Assigns the JNDI name of the transaction manager
57      * (javax.transaction.TransactionManager).
58      * @param jndiname is the JNDI name of the transaction manager
59      */

60     void setTransactionManagerJNDIName(String JavaDoc jndiname) throws ResourceException JavaDoc;
61 }
62
Popular Tags