01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.core;
19:
20: import de.finix.contelligent.CallData;
21: import de.finix.contelligent.Component;
22: import de.finix.contelligent.ComponentManager;
23: import de.finix.contelligent.ModificationVetoException;
24: import de.finix.contelligent.components.SortedFolder;
25: import de.finix.contelligent.exception.ComponentPersistenceException;
26: import de.finix.contelligent.exception.ContelligentException;
27: import de.finix.contelligent.exception.WouldCreateDeadRelationsException;
28: import de.finix.contelligent.xml.elements.ComponentElement;
29:
30: public interface ComponentManagerInternal extends ComponentManager,
31: TxSynchronization {
32:
33: final public static String PROPERTY_ISIMPORT = "isimport";
34:
35: final public static String PROPERTY_CACHE_SIZE = "cache-size";
36:
37: void invalidateTypes();
38:
39: void setSkipListener(boolean b);
40:
41: /**
42: * Returns an array containing this managers id and those of all its
43: * parents.
44: *
45: * @return a <code>long[]</code> value
46: */
47: long[] getIdsUpToRoot();
48:
49: public void createComponent(ComponentElement componentElement,
50: CallData callData) throws ContelligentException;
51:
52: public Component updateComponent(ComponentElement componentElement,
53: CallData callData) throws ContelligentException;
54:
55: public long getSubtreeSize(Component subTree)
56: throws ComponentPersistenceException;
57:
58: public long getSubtreeComponents(Component subTree)
59: throws ComponentPersistenceException;
60:
61: public int getMaxCacheSize();
62:
63: public void setMaxCacheSize(int maxSize);
64:
65: public int getActualCacheSize();
66:
67: public long getCacheCalls();
68:
69: public long getCacheMisses();
70:
71: public void cleanMissingSubcomponent(SortedFolder parentContainer,
72: String subcomponentName) throws ModificationVetoException;
73:
74: public void checkRelations(CallData callData)
75: throws ComponentPersistenceException,
76: WouldCreateDeadRelationsException;
77:
78: }
|