Package org.cyclos.impl.sql
Class DatabaseCachingMetadata
- java.lang.Object
-
- org.cyclos.impl.sql.DatabaseCachingMetadata
-
public class DatabaseCachingMetadata extends Object
Stores metadata for cached tables
-
-
Constructor Summary
Constructors Constructor Description DatabaseCachingMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCacheableTable(String table)Defines the given table and column as cacheablevoidaddManyToManyCacheableTable(String table, List<String> relatedTables)Marks the given table as a cacheable many-to-many relationSet<String>getCacheableTables()List<String>getInverseDependencies(String table)Map<String,List<String>>getManyToManyTables()booleanisCacheable(String table)Returns whether the given table is cacheablebooleanisManyToManyCacheable(String table)
-
-
-
Method Detail
-
addCacheableTable
public void addCacheableTable(String table)
Defines the given table and column as cacheable
-
addManyToManyCacheableTable
public void addManyToManyCacheableTable(String table, List<String> relatedTables)
Marks the given table as a cacheable many-to-many relation
-
isCacheable
public boolean isCacheable(String table)
Returns whether the given table is cacheable
-
isManyToManyCacheable
public boolean isManyToManyCacheable(String table)
-
-