|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.metadata.MetadataCache
public class MetadataCache
Cache for all entity metadata.
| Constructor Summary | |
|---|---|
MetadataCache()
|
|
| Method Summary | |
|---|---|
void |
add(EntityMetadata metadata)
Adds the specified metadata to the cache. |
Collection<EntityMetadata> |
getAllMetadata()
Retrieves all entity metadata. |
EntityMetadata |
getMetadataById(int id)
Retrieves the metadata for the specified metadata id. |
EntityMetadata |
getMetadataForClass(Class<?> persistentClass)
Retrieves the metadata for the specified entity type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetadataCache()
| Method Detail |
|---|
public void add(EntityMetadata metadata)
metadata - the metadata to add to the cachepublic EntityMetadata getMetadataForClass(Class<?> persistentClass)
persistentClass - the entity type to retrieve the metadata for
public EntityMetadata getMetadataById(int id)
id - the metadata id
public Collection<EntityMetadata> getAllMetadata()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||