public class CacheIndex
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Purpose: Define a secondary index on the cache.
CachePolicy
,
Serialized FormModifier and Type | Field and Description |
---|---|
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 |
protected boolean |
isInsertable |
protected boolean |
isUpdateable |
Constructor 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() |
protected boolean isUpdateable
protected boolean isInsertable
protected java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> fields
protected int cacheSize
protected java.lang.Class cacheType
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