public class CacheIndex
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Purpose: Define a secondary index on the cache.
CachePolicy
, Serialized FormConstructor and Description |
---|
CacheIndex() |
CacheIndex(org.eclipse.persistence.internal.helper.DatabaseField[] fields) |
CacheIndex(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> fields) |
CacheIndex(java.lang.String... fields) |
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
isInsertable()
Return if the index field can be inserted.
|
boolean |
isUpdateable()
Return if the index field can be updated.
|
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) |
void |
setIsInsertable(boolean isInsertable)
Set if the index field can be inserted.
|
void |
setIsUpdateable(boolean isUpdateable)
Set if the index field can be updated.
|
java.lang.String |
toString() |
public CacheIndex()
public CacheIndex(org.eclipse.persistence.internal.helper.DatabaseField[] fields)
public CacheIndex(java.lang.String... fields)
public CacheIndex(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> fields)
public boolean isUpdateable()
public void setIsUpdateable(boolean isUpdateable)
public boolean isInsertable()
public void setIsInsertable(boolean isInsertable)
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)
public java.lang.String toString()
toString
in class java.lang.Object