com.dotmarketing.cache
Class StructureCache

java.lang.Object
  extended by com.dotmarketing.cache.StructureCache

public class StructureCache
extends java.lang.Object

Author:
David

Constructor Summary
StructureCache()
           
 
Method Summary
static void addStructure(Structure st)
           
static void clearCache()
           
static Structure getStructureByInode(long inode)
           
static Structure getStructureByInode(java.lang.String inode)
           
static Structure getStructureByName(java.lang.String name)
          This methods retrieves the structure from the cache based in the structure name.
static Structure getStructureByType(java.lang.String type)
           
 boolean hasStructureByInode(long inode)
           
 boolean hasStructureByInode(java.lang.String inode)
           
 boolean hasStructureByName(java.lang.String name)
           
 boolean hasStructureByType(java.lang.String name)
           
static void removeStructure(Structure st)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructureCache

public StructureCache()
Method Detail

addStructure

public static void addStructure(Structure st)

getStructureByInode

public static Structure getStructureByInode(long inode)

getStructureByInode

public static Structure getStructureByInode(java.lang.String inode)

getStructureByName

public static Structure getStructureByName(java.lang.String name)
This methods retrieves the structure from the cache based in the structure name. This methods tries to retrive the structure from the cache, if the structure were not found in the cache, it would try to find it in database and store it in cache. NOTE: This method runs the same code than getStructureByType the name and the type of a structure are synomyns

Parameters:
name - Name of the structure
Returns:
The structure from cache

getStructureByType

public static Structure getStructureByType(java.lang.String type)
Parameters:
type - Type of the structure
Returns:
The structure from cache
See Also:
getStructureByName(String)

hasStructureByType

public boolean hasStructureByType(java.lang.String name)

hasStructureByName

public boolean hasStructureByName(java.lang.String name)

hasStructureByInode

public boolean hasStructureByInode(java.lang.String inode)

hasStructureByInode

public boolean hasStructureByInode(long inode)

removeStructure

public static void removeStructure(Structure st)

clearCache

public static void clearCache()


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.