|
EclipseLink 2.4.0, build 'v20110824-r9956' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.descriptors.CacheIndex
public class CacheIndex
Purpose: Define a secondary index on the cache.
CachePolicy,
Serialized Form| Field Summary | |
|---|---|
protected int |
cacheSize
Allows the cache size to be set. |
protected java.lang.Class |
cacheType
Allows the identity map class type to be set. |
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
fields
|
| Constructor Summary | |
|---|---|
CacheIndex()
|
|
CacheIndex(org.eclipse.persistence.internal.helper.DatabaseField[] fields)
|
|
CacheIndex(java.lang.String... fields)
|
|
| Method Summary | |
|---|---|
void |
addField(org.eclipse.persistence.internal.helper.DatabaseField field)
|
void |
addFieldName(java.lang.String field)
PUBLIC: Add the database column name to the cache index. |
int |
getCacheSize()
ADVANCED: Return the cache size. |
java.lang.Class |
getCacheType()
ADVANCED: Return the type of the cache used for the index. |
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getFields()
|
void |
setCacheSize(int cacheSize)
ADVANCED: Set the cache size. |
void |
setCacheType(java.lang.Class cacheType)
ADVANCED: Set the type of the cache used for the index. |
void |
setFields(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> fields)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> fields
protected int cacheSize
protected java.lang.Class cacheType
| Constructor Detail |
|---|
public CacheIndex()
public CacheIndex(org.eclipse.persistence.internal.helper.DatabaseField[] fields)
public CacheIndex(java.lang.String... fields)
| Method Detail |
|---|
public java.lang.Class getCacheType()
public void setCacheType(java.lang.Class cacheType)
public int getCacheSize()
public void setCacheSize(int cacheSize)
public void addField(org.eclipse.persistence.internal.helper.DatabaseField field)
public void addFieldName(java.lang.String field)
public java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getFields()
public void setFields(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> fields)
|
EclipseLink 2.4.0, build 'v20110824-r9956' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||