Package org.apache.jackrabbit.spi2jcr
Class BatchReadConfig
- java.lang.Object
-
- org.apache.jackrabbit.spi2jcr.BatchReadConfig
-
public class BatchReadConfig extends Object
BatchReadConfigdefines if and how deep child item information should be retrieved, when accessing aNode. The configuration is based on node type names.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEPTH_DEFAULTstatic intDEPTH_INFINITE
-
Constructor Summary
Constructors Constructor Description BatchReadConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDepth(Name ntName)Return the depth for the given node type name.voidsetDepth(Name ntName, int depth)Define the batch-read depth for the given node type name.
-
-
-
Field Detail
-
DEPTH_DEFAULT
public static final int DEPTH_DEFAULT
- See Also:
- Constant Field Values
-
DEPTH_INFINITE
public static final int DEPTH_INFINITE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDepth
public int getDepth(Name ntName)
Return the depth for the given node type name. If the name is not defined in this configuration, thedefault valueis returned.
-
setDepth
public void setDepth(Name ntName, int depth)
Define the batch-read depth for the given node type name.- Parameters:
ntName-depth-
-
-