KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > query > QueryContext


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.outerj.daisy.query;
17
18 import org.outerj.daisy.repository.schema.*;
19 import org.outerj.daisy.repository.RepositoryException;
20 import org.outerj.daisy.repository.DocumentCollection;
21 import org.outerj.daisy.repository.variant.Branch;
22 import org.outerj.daisy.repository.variant.Language;
23
24 public interface QueryContext {
25     FieldType getFieldTypeByName(String JavaDoc name) throws RepositoryException;
26     PartType getPartTypeByName(String JavaDoc name) throws RepositoryException;
27     DocumentType getDocumentTypeById(long id) throws RepositoryException;
28     DocumentType getDocumentTypeByName(String JavaDoc name) throws RepositoryException;
29     DocumentCollection getCollection(String JavaDoc name) throws RepositoryException;
30     String JavaDoc getUserDisplayName(long userId) throws RepositoryException;
31     long getUserId(String JavaDoc login) throws RepositoryException;
32     String JavaDoc getUserLogin(long userId) throws RepositoryException;
33     Branch getBranchByName(String JavaDoc name) throws RepositoryException;
34     Language getLanguageByName(String JavaDoc name) throws RepositoryException;
35     Branch getBranch(long branchId) throws RepositoryException;
36     Language getLanguage(long languageId) throws RepositoryException;
37 }
Popular Tags