KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jorm > naming > api > FilteredPNamingContext


1 /**
2  * JORM: an implementation of a generic mapping system for persistent Java
3  * objects. Two mapping are supported: to RDBMS and to binary files.
4  * Copyright (C) 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 package org.objectweb.jorm.naming.api;
21
22 import java.util.Date JavaDoc;
23 import java.math.BigInteger JavaDoc;
24 import java.math.BigDecimal JavaDoc;
25
26 /**
27  * Represents a PNamingContext able to say if a pname structure (pname getter,
28  * a long, ...) match a persistent object represented by this PNamingContext.
29  *
30  * A FilteredPNamingContext must support the decoding type of its parent. This
31  * means that the decodeXXX(xxx) and the match(xxx) methods, where xxx is the
32  * parent coding type, must be supported.
33  *
34  * @author S.Chassande-Barrioz, P.Dechamboux
35  */

36 public interface FilteredPNamingContext extends PNamingContext {
37
38     /**
39      * binds a sub filteredPNamingContext to the current. The implementation of
40      * this method must register the sub PNC and call the setParentCodingType
41      * method on this child.
42      */

43     void bindSubFPNC(FilteredPNamingContext fpnc);
44
45     /**
46      * Unbinds a sub PNC from its parent.
47      */

48     void unbindSubFPNC(FilteredPNamingContext fpnc);
49
50     /**
51      * Indicates if the identifier represented this byte[] value matches a
52      * Persistent object manages by the PNamingContext
53      */

54     boolean match(byte[] en);
55
56     /**
57      * Indicates if the identifier represented this Object value matches a
58      * Persistent object manages by the PNamingContext
59      */

60     boolean match(Object JavaDoc en);
61
62     /**
63      * Indicates if the identifier represented this byte value matches a
64      * Persistent object manages by the PNamingContext
65      */

66     boolean match(byte en);
67
68     /**
69      * Indicates if the identifier represented this Byte value matches a
70      * Persistent object manages by the PNamingContext
71      */

72     boolean match(Byte JavaDoc en);
73
74     /**
75      * Indicates if the identifier represented this char value matches a
76      * Persistent object manages by the PNamingContext
77      */

78     boolean match(char en);
79
80     /**
81      * Indicates if the identifier represented this Character value matches a
82      * Persistent object manages by the PNamingContext
83      */

84     boolean match(Character JavaDoc en);
85
86     /**
87      * Indicates if the identifier represented this int value matches a
88      * Persistent object manages by the PNamingContext
89      */

90     boolean match(int en);
91
92     /**
93      * Indicates if the identifier represented this Integer value matches a
94      * Persistent object manages by the PNamingContext
95      */

96     boolean match(Integer JavaDoc en);
97
98     /**
99      * Indicates if the identifier represented this long value matches a
100      * Persistent object manages by the PNamingContext
101      */

102     boolean match(long en);
103
104     /**
105      * Indicates if the identifier represented this Long value matches a
106      * Persistent object manages by the PNamingContext
107      */

108     boolean match(Long JavaDoc en);
109
110     /**
111      * Indicates if the identifier represented this short value matches a
112      * Persistent object manages by the PNamingContext
113      */

114     boolean match(short en);
115
116     /**
117      * Indicates if the identifier represented this Short value matches a
118      * Persistent object manages by the PNamingContext
119      */

120     boolean match(Short JavaDoc en);
121
122     /**
123      * Indicates if the identifier represented this String value matches a
124      * Persistent object manages by the PNamingContext
125      */

126     boolean match(String JavaDoc en);
127
128     /**
129      * Indicates if the identifier represented this char[] value matches a
130      * Persistent object manages by the PNamingContext
131      */

132     boolean match(char[] en);
133
134     /**
135      * Indicates if the identifier represented this Date value matches a
136      * Persistent object manages by the PNamingContext
137      */

138     boolean match(Date JavaDoc en);
139
140     /**
141      * Indicates if the identifier represented this BigInteger value matches a
142      * Persistent object manages by the PNamingContext
143      */

144     boolean match(BigInteger JavaDoc en);
145
146     /**
147      * Indicates if the identifier represented this BigDecimal value matches a
148      * Persistent object manages by the PNamingContext
149      */

150     boolean match(BigDecimal JavaDoc en);
151 }
152
Popular Tags