1 // license-header java merge-point
2 //
3 // Attention: generated code (by Metafacade.vsl) - do not modify!
4 //
5 package org.andromda.cartridges.hibernate.metafacades;
6
7 import org.andromda.metafacades.uml.EntityAssociation;
8
9 /**
10 * TODO: Model Documentation for org.andromda.cartridges.hibernate.metafacades.HibernateAssociation
11 *
12 * Metafacade interface to be used by AndroMDA cartridges.
13 */
14 public interface HibernateAssociation
15 extends EntityAssociation
16 {
17 /**
18 * Indicates the metafacade type (used for metafacade mappings).
19 *
20 * @return boolean always <code>true</code>
21 */
22 public boolean isHibernateAssociationMetaType();
23
24 /**
25 * EhCache property. Defines the maximum number of objects that will be created in memory.
26 * @return int
27 */
28 public int getEhCacheMaxElementsInMemory();
29
30 /**
31 * EhCache property. Defines the time to idle for an element before it expires.
32 * @return int
33 */
34 public int getEhCacheTimeToIdleSeconds();
35
36 /**
37 * EhCache property. Defines the time to live for an element before it expires.
38 * @return int
39 */
40 public int getEhCacheTimeToLiveSeconds();
41
42 /**
43 * TODO: Model Documentation for
44 * org.andromda.cartridges.hibernate.metafacades.HibernateAssociation.hibernateCacheType
45 * @return String
46 */
47 public String getHibernateCacheType();
48
49 /**
50 * EhCache property. Defines if elements are eternal.
51 * @return boolean
52 */
53 public boolean isEhCacheEternal();
54
55 /**
56 * EhCache property. Defines if elements can overflow to disk
57 * @return boolean
58 */
59 public boolean isEhCacheOverflowToDisk();
60
61 /**
62 * Specifies whether the cache for this association is distributed.
63 * @return boolean
64 */
65 public boolean isHibernateCacheDistributed();
66 }