com.dotmarketing.cache
Class FieldsCache
java.lang.Object
com.dotmarketing.cache.FieldsCache
public class FieldsCache
- extends java.lang.Object
- Author:
- David
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldsCache
public FieldsCache()
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.