KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pentaho > core > repository > IRuntimeRepository


1 /*
2  * Copyright 2006 Pentaho Corporation. All rights reserved.
3  * This software was developed by Pentaho Corporation and is provided under the terms
4  * of the Mozilla Public License, Version 1.1, or any later version. You may not use
5  * this file except in compliance with the license. If you need a copy of the license,
6  * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
7  * BI Platform. The Initial Developer is Pentaho Corporation.
8  *
9  * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11  * the license for the specific language governing your rights and limitations.
12  *
13  * @created Jun 24, 2005
14  * @author Marc Batchelor
15  *
16  */

17
18 package org.pentaho.core.repository;
19
20 import java.util.Collection JavaDoc;
21
22 import org.pentaho.core.session.IPentahoSession;
23 import org.pentaho.core.repository.RepositoryException;
24 import org.pentaho.core.repository.IRuntimeElement;
25 import org.pentaho.util.logging.ILogger;
26
27 public interface IRuntimeRepository extends ILogger {
28
29     /**
30      * Loads a runtimeElement by it's ID.
31      *
32      * @param instanceId
33      * The instance ID for the Runtime Element
34      * @param allowableReadAttributeNames
35      * The attribute names that are allowed to be read by this
36      * process
37      * @return The RuntimeElement
38      * @throws RepositoryException
39      */

40     public IRuntimeElement loadElementById(String JavaDoc instanceId, Collection JavaDoc allowableReadAttributeNames) throws RepositoryException;
41
42     /**
43      * Constructs a new Runtime Element.
44      *
45      * @param parentId
46      * The parent of the Runtime Element
47      * @param parentType
48      * The parent type of the Runtime Element
49      * @param transientOnly
50      * Indicates whether this runtime element will be transient only
51      * (unsaved) or persistent. If true, then this will be in memory
52      * only, and will not be persisted when it goes out of scope.
53      * @return The new Runtime element
54      */

55     public IRuntimeElement newRuntimeElement(String JavaDoc parentId, String JavaDoc parentType, boolean transientOnly);
56
57     /**
58      * Constructs a new Runtime Element.
59      *
60      * @param parentId
61      * The parent of the Runtime Element
62      * @param parentType
63      * The parent type of the Runtime Element
64      * @param solutionId
65      * The ID of the Solution this Runtime Element is associated with
66      * @param transientOnly
67      * Indicates whether this runtime element will be transient only
68      * (unsaved) or persistent. If true, then this will be in memory
69      * only, and will not be persisted when it goes out of scope.
70      * @return The new Runtime element
71      */

72     public IRuntimeElement newRuntimeElement(String JavaDoc parentId, String JavaDoc parentType, String JavaDoc solutionId, boolean transientOnly);
73
74     /**
75      * @param sess
76      * The IPentahoSession to set
77      */

78     public void setSession(IPentahoSession sess);
79
80     public boolean usesHibernate();
81
82    
83 }
84
Popular Tags