com.dotmarketing.cache
Class FieldsCache

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

public class FieldsCache
extends java.lang.Object

Author:
David

Constructor Summary
FieldsCache()
           
 
Method Summary
static void addFields(Structure st, java.util.List<Field> fields)
           
static void clearCache()
           
static java.util.List<Field> getFieldsByStructureInode(long inode)
           
static java.util.List<Field> getFieldsByStructureInode(java.lang.String inode)
           
static java.util.List<Field> getFieldsByStructureName(java.lang.String name)
          This methods retrieves the fields from the cache based in the structure name.
static java.util.List<Field> getFieldsByStructureType(java.lang.String type)
           
 boolean hasFieldsByStructureInode(long inode)
           
 boolean hasFieldsByStructureInode(java.lang.String inode)
           
 boolean hasFieldsByStructureName(java.lang.String name)
           
 boolean hasFieldsByStructureType(java.lang.String name)
           
static void removeFields(Structure st)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldsCache

public FieldsCache()
Method Detail

addFields

public static void addFields(Structure st,
                             java.util.List<Field> fields)

getFieldsByStructureInode

public static java.util.List<Field> getFieldsByStructureInode(long inode)

getFieldsByStructureInode

public static java.util.List<Field> getFieldsByStructureInode(java.lang.String inode)

getFieldsByStructureName

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

Parameters:
name - Name of the structure
Returns:
The fields of the structure

getFieldsByStructureType

public static java.util.List<Field> getFieldsByStructureType(java.lang.String type)
Parameters:
type - Type of the structure
Returns:
The fields of the structure
See Also:
getFieldsByStructureName(String)

hasFieldsByStructureType

public boolean hasFieldsByStructureType(java.lang.String name)

hasFieldsByStructureName

public boolean hasFieldsByStructureName(java.lang.String name)

hasFieldsByStructureInode

public boolean hasFieldsByStructureInode(java.lang.String inode)

hasFieldsByStructureInode

public boolean hasFieldsByStructureInode(long inode)

removeFields

public static void removeFields(Structure st)

clearCache

public static void clearCache()


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.