net.java.ao.cache
Class RAMRelationsCache

java.lang.Object
  extended by net.java.ao.cache.RAMRelationsCache
All Implemented Interfaces:
RelationsCache

public final class RAMRelationsCache
extends java.lang.Object
implements RelationsCache

Author:
Daniel Spiewak

Constructor Summary
RAMRelationsCache()
           
 
Method Summary
 void flush()
           
<T extends RawEntity<K>,K>
T[]
get(RawEntity<?> from, java.lang.Class<T> toType, java.lang.Class<? extends RawEntity<?>> throughType, java.lang.String[] fields, java.lang.String where)
           
 void put(RawEntity<?> from, RawEntity<?>[] through, java.lang.Class<? extends RawEntity<?>> throughType, RawEntity<?>[] to, java.lang.Class<? extends RawEntity<?>> toType, java.lang.String[] fields, java.lang.String where)
           
 void remove(java.lang.Class<? extends RawEntity<?>>... types)
           
 void remove(RawEntity<?> entity, java.lang.String[] fields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAMRelationsCache

public RAMRelationsCache()
Method Detail

get

public <T extends RawEntity<K>,K> T[] get(RawEntity<?> from,
                                          java.lang.Class<T> toType,
                                          java.lang.Class<? extends RawEntity<?>> throughType,
                                          java.lang.String[] fields,
                                          java.lang.String where)
Specified by:
get in interface RelationsCache

put

public void put(RawEntity<?> from,
                RawEntity<?>[] through,
                java.lang.Class<? extends RawEntity<?>> throughType,
                RawEntity<?>[] to,
                java.lang.Class<? extends RawEntity<?>> toType,
                java.lang.String[] fields,
                java.lang.String where)
Specified by:
put in interface RelationsCache

remove

public void remove(java.lang.Class<? extends RawEntity<?>>... types)
Specified by:
remove in interface RelationsCache

remove

public void remove(RawEntity<?> entity,
                   java.lang.String[] fields)
Specified by:
remove in interface RelationsCache

flush

public void flush()
Specified by:
flush in interface RelationsCache


Copyright © 2007-2012. All Rights Reserved.