public class CacheIndex extends Object implements Cloneable, 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 Class |
cacheType
Allows the identity map class type to be set.
|
protected 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(List<org.eclipse.persistence.internal.helper.DatabaseField> fields) |
CacheIndex(String... fields) |
Modifier and Type | Method and Description |
---|---|
void |
addField(org.eclipse.persistence.internal.helper.DatabaseField field) |
void |
addFieldName(String field)
PUBLIC:
Add the database column name to the cache index.
|
Object |
clone() |
int |
getCacheSize()
ADVANCED:
Return the cache size.
|
Class |
getCacheType()
ADVANCED:
Return the type of the cache used for the index.
|
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(Class cacheType)
ADVANCED:
Set the type of the cache used for the index.
|
void |
setFields(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.
|
String |
toString() |
protected boolean isUpdateable
protected boolean isInsertable
protected List<org.eclipse.persistence.internal.helper.DatabaseField> fields
protected int cacheSize
protected Class cacheType
public CacheIndex()
public CacheIndex(org.eclipse.persistence.internal.helper.DatabaseField[] fields)
public CacheIndex(String... fields)
public CacheIndex(List<org.eclipse.persistence.internal.helper.DatabaseField> fields)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean isUpdateable()
public void setIsUpdateable(boolean isUpdateable)
public boolean isInsertable()
public void setIsInsertable(boolean isInsertable)
public Class getCacheType()
public void setCacheType(Class cacheType)
public int getCacheSize()
public void setCacheSize(int cacheSize)
public void addField(org.eclipse.persistence.internal.helper.DatabaseField field)
public void addFieldName(String field)
public List<org.eclipse.persistence.internal.helper.DatabaseField> getFields()
public void setFields(List<org.eclipse.persistence.internal.helper.DatabaseField> fields)
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.