Package org.apache.jackrabbit.spi2jcr
Class BatchReadConfig
- java.lang.Object
-
- org.apache.jackrabbit.spi2jcr.BatchReadConfig
-
public class BatchReadConfig extends Object
BatchReadConfig
defines 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 int
DEPTH_DEFAULT
static int
DEPTH_INFINITE
-
Constructor Summary
Constructors Constructor Description BatchReadConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDepth(Name ntName)
Return the depth for the given node type name.void
setDepth(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 value
is returned.
-
setDepth
public void setDepth(Name ntName, int depth)
Define the batch-read depth for the given node type name.- Parameters:
ntName
-depth
-
-
-