|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.descriptors.CacheIndex
public class CacheIndex
Purpose: Define a secondary index on the cache.
CachePolicy
,
Serialized FormField 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
|
protected boolean |
isInsertable
|
protected boolean |
isUpdateable
|
Constructor Summary | |
---|---|
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)
|
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()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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)
Method Detail |
---|
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
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |