public class CMP3Policy extends CMPPolicy
Modifier and Type | Field and Description |
---|---|
protected oracle.toplink.essentials.internal.ejb.cmp3.base.CMP3Policy.KeyElementAccessor[] |
keyClassFields
Stores the fields for this classes compound primary key class if required.
|
protected Class |
pkClass |
protected String |
pkClassName |
descriptor
Constructor and Description |
---|
CMP3Policy() |
Modifier and Type | Method and Description |
---|---|
void |
convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this object to actual class-based
settings.
|
protected Object |
createBeanUsingKey(Object key,
AbstractSession session)
INTERNAL:
Use the key to create a bean and initialize its primary key fields.
|
Vector |
createPkVectorFromKey(Object key,
AbstractSession session)
INTERNAL:
Use the key to create a TopLink primary key Vector.
|
Object |
createPrimaryKeyInstance(Object key,
AbstractSession session)
INTERNAL:
Create an instance of the composite primary key class for the key object.
|
protected oracle.toplink.essentials.internal.ejb.cmp3.base.CMP3Policy.KeyElementAccessor[] |
getKeyClassFields(Class clazz)
INTERNAL:
|
Class |
getPKClass()
INTERNAL:
|
Object |
getPKClassInstance()
INTERNAL:
|
String |
getPKClassName()
INTERNAL:
|
protected oracle.toplink.essentials.internal.ejb.cmp3.base.CMP3Policy.KeyElementAccessor[] |
initializePrimaryKeyFields(Class keyClass)
INTERNAL:
Cache the bean's primary key fields so speed up creating of primary key
objects and initialization of beans.
|
boolean |
isCMP3Policy()
INTERNAL:
Return if this policy is for CMP3.
|
void |
setPKClass(Class pkClass)
ADVANCED:
|
void |
setPrimaryKeyClassName(String pkClassName)
INTERNAL:
|
getDescriptor, initialize, setDescriptor
protected oracle.toplink.essentials.internal.ejb.cmp3.base.CMP3Policy.KeyElementAccessor[] keyClassFields
protected String pkClassName
protected Class pkClass
public void convertClassNamesToClasses(ClassLoader classLoader)
convertClassNamesToClasses
in class CMPPolicy
classLoader
- public boolean isCMP3Policy()
isCMP3Policy
in class CMPPolicy
public void setPrimaryKeyClassName(String pkClassName)
public Class getPKClass()
public void setPKClass(Class pkClass)
public String getPKClassName()
public Object getPKClassInstance()
public Vector createPkVectorFromKey(Object key, AbstractSession session)
key
- Object the primary key to use for creating the vectorpublic Object createPrimaryKeyInstance(Object key, AbstractSession session)
protected Object createBeanUsingKey(Object key, AbstractSession session)
key
- Object the primary key to use for initializing the bean's
corresponding pk fieldsprotected oracle.toplink.essentials.internal.ejb.cmp3.base.CMP3Policy.KeyElementAccessor[] initializePrimaryKeyFields(Class keyClass)
protected oracle.toplink.essentials.internal.ejb.cmp3.base.CMP3Policy.KeyElementAccessor[] getKeyClassFields(Class clazz)
Copyright © 2023. All rights reserved.