|
|||||||||
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 FormConstructor Summary | |
---|---|
BatchFetchPolicy()
|
|
BatchFetchPolicy(BatchFetchType type)
|
Method Summary | |
---|---|
void |
addDataResults(org.eclipse.persistence.internal.sessions.AbstractRecord row)
INTERNAL: Add the row to the set of data results. |
BatchFetchPolicy |
clone()
|
List<Expression> |
getAttributeExpressions()
INTERNAL: Return all attributes specified for batch reading. |
List<String> |
getAttributes()
PERF: Return the cached local (only) batch read attribute names. |
List<DatabaseMapping> |
getBatchedMappings()
INTERNAL: Return any mappings that are always batched. |
Map<Object,Object> |
getBatchObjects()
INTERNAL: Return temporary map of batched objects. |
Map<Object,List<org.eclipse.persistence.internal.sessions.AbstractRecord>> |
getDataResults()
INTERNAL: Return temporary list of rows from parent batch query per batched mapping. |
List<org.eclipse.persistence.internal.sessions.AbstractRecord> |
getDataResults(DatabaseMapping mapping)
INTERNAL: Return the remaining data results for the mapping. |
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,
String attributeName)
INTERNAL: Return if the attribute is specified for batch reading. |
boolean |
isAttributeBatchRead(String attributeName)
INTERNAL: Return if the attribute is specified for batch reading. |
boolean |
isEXISTS()
Return if using the EXISTS fetch type. |
boolean |
isIN()
Return if using the IN fetch type. |
boolean |
isJOIN()
Return if using the JOIN fetch type. |
void |
setAttributeExpressions(List<Expression> attributeExpressions)
|
void |
setAttributes(List<String> attributes)
PERF: Set the cached local (only) batch read attribute names. |
void |
setBatchedMappings(List<DatabaseMapping> batchedMappings)
INTERNAL: Set any mappings that are always batched. |
void |
setBatchObjects(Map<Object,Object> batchObjects)
INTERNAL: Set temporary map of batched objects. |
void |
setDataResults(DatabaseMapping mapping,
List<org.eclipse.persistence.internal.sessions.AbstractRecord> rows)
INTERNAL: Set the remaining data results for the mapping. |
void |
setDataResults(List<org.eclipse.persistence.internal.sessions.AbstractRecord> rows)
INTERNAL: Set the rows to the set of data results for each mapping. |
void |
setDataResults(Map<Object,List<org.eclipse.persistence.internal.sessions.AbstractRecord>> dataResults)
INTERNAL: Set temporary list of rows from parent batch query per batched mapping. |
void |
setMappingQueries(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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchFetchPolicy()
public BatchFetchPolicy(BatchFetchType type)
Method Detail |
---|
public BatchFetchPolicy clone()
clone
in class Object
public boolean isIN()
public boolean isJOIN()
public boolean isEXISTS()
public BatchFetchType getType()
public void setType(BatchFetchType type)
public int getSize()
public void setSize(int size)
public Map<DatabaseMapping,ReadQuery> getMappingQueries()
public void setMappingQueries(Map<DatabaseMapping,ReadQuery> mappingQueries)
public List<String> getAttributes()
public void setAttributes(List<String> attributes)
public void setAttributeExpressions(List<Expression> attributeExpressions)
public List<Expression> getAttributeExpressions()
public boolean hasAttributes()
public List<DatabaseMapping> getBatchedMappings()
public void setBatchedMappings(List<DatabaseMapping> batchedMappings)
public boolean isAttributeBatchRead(String attributeName)
public boolean isAttributeBatchRead(ClassDescriptor mappingDescriptor, String attributeName)
public void addDataResults(org.eclipse.persistence.internal.sessions.AbstractRecord row)
public List<org.eclipse.persistence.internal.sessions.AbstractRecord> getDataResults(DatabaseMapping mapping)
public void setDataResults(DatabaseMapping mapping, List<org.eclipse.persistence.internal.sessions.AbstractRecord> rows)
public void setDataResults(List<org.eclipse.persistence.internal.sessions.AbstractRecord> rows)
public Map<Object,List<org.eclipse.persistence.internal.sessions.AbstractRecord>> getDataResults()
public void setDataResults(Map<Object,List<org.eclipse.persistence.internal.sessions.AbstractRecord>> dataResults)
public Map<Object,Object> getBatchObjects()
public void setBatchObjects(Map<Object,Object> batchObjects)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |