|
EclipseLink 2.1.0, build 'v20100311-r6779' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.queries.BatchFetchPolicy
public class BatchFetchPolicy
BatchFetchPolicy defines batch reading configuration.
ObjectLevelReadQuery.setBatchFetchPolicy(BatchFetchPolicy)
,
Serialized FormField Summary | |
---|---|
protected java.util.List<Expression> |
attributeExpressions
Define the attributes to be batch fetched. |
protected java.util.List<java.lang.String> |
attributes
PERF: Cache the local batch read attribute names. |
protected java.util.Map<DatabaseMapping,ReadQuery> |
mappingQueries
PERF: Used internally to store the prepared mapping queries. |
protected int |
size
Define the batch size for IN style batch fetching. |
protected BatchFetchType |
type
Define the type of batch fetching to use. |
Constructor Summary | |
---|---|
BatchFetchPolicy()
|
|
BatchFetchPolicy(BatchFetchType type)
|
Method Summary | |
---|---|
BatchFetchPolicy |
clone()
|
java.util.List<Expression> |
getAttributeExpressions()
INTERNAL: Return all attributes specified for batch reading. |
java.util.List<java.lang.String> |
getAttributes()
PERF: Return the cached local (only) batch read attribute names. |
java.util.Map<DatabaseMapping,ReadQuery> |
getMappingQueries()
PERF: Return the internally stored prepared mapping queries. |
int |
getSize()
Return the batch fetch size. |
BatchFetchType |
getType()
Return the batch fetch type, (JOIN, IN, EXISTS). |
boolean |
hasAttributes()
INTERNAL: Return true is this query has batching |
boolean |
isAttributeBatchRead(ClassDescriptor mappingDescriptor,
java.lang.String attributeName)
INTERNAL: Return if the attribute is specified for batch reading. |
boolean |
isAttributeBatchRead(java.lang.String attributeName)
INTERNAL: Return if the attribute is specified for batch reading. |
void |
setAttributeExpressions(java.util.List<Expression> attributeExpressions)
|
void |
setAttributes(java.util.List<java.lang.String> attributes)
PERF: Set the cached local (only) batch read attribute names. |
void |
setMappingQueries(java.util.Map<DatabaseMapping,ReadQuery> mappingQueries)
PERF: Set the internally stored prepared mapping queries. |
void |
setSize(int size)
Set the batch fetch size. |
void |
setType(BatchFetchType type)
Set the batch fetch type, (JOIN, IN, EXISTS). |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BatchFetchType type
protected int size
protected java.util.List<Expression> attributeExpressions
protected transient java.util.Map<DatabaseMapping,ReadQuery> mappingQueries
protected java.util.List<java.lang.String> attributes
Constructor Detail |
---|
public BatchFetchPolicy()
public BatchFetchPolicy(BatchFetchType type)
Method Detail |
---|
public BatchFetchPolicy clone()
clone
in class java.lang.Object
public BatchFetchType getType()
public void setType(BatchFetchType type)
public int getSize()
public void setSize(int size)
public java.util.Map<DatabaseMapping,ReadQuery> getMappingQueries()
public void setMappingQueries(java.util.Map<DatabaseMapping,ReadQuery> mappingQueries)
public java.util.List<java.lang.String> getAttributes()
public void setAttributes(java.util.List<java.lang.String> attributes)
public void setAttributeExpressions(java.util.List<Expression> attributeExpressions)
public java.util.List<Expression> getAttributeExpressions()
public boolean hasAttributes()
public boolean isAttributeBatchRead(java.lang.String attributeName)
public boolean isAttributeBatchRead(ClassDescriptor mappingDescriptor, java.lang.String attributeName)
|
EclipseLink 2.1.0, build 'v20100311-r6779' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |