public interface JDOEJB11Helper
| Modifier and Type | Method and Description |
|---|---|
void |
assertInstanceOfRemoteInterfaceImpl(Object o)
Validates that this instance is of the correct implementation class
of a remote interface type.
|
Collection |
convertCollectionEJBObjectToPC(Collection coll,
PersistenceManager pm,
boolean validate)
Converts Collection of EJBObjects to a Collection of
persistence-capable instances.
|
Collection |
convertCollectionObjectIdToPrimaryKey(Collection oids)
Converts Collection of Object Id's of persistence-capable instances to a
Collection of of the PrimaryKey instances.
|
Collection |
convertCollectionPCToEJBObject(Collection pcs,
PersistenceManager pm)
Converts Collection of persistence-capable instances to a Collection of
EJBObjects.
|
Set |
convertCollectionPCToEJBObjectSet(Collection pcs,
PersistenceManager pm)
Converts Collection of persistence-capable instances to a Set of
EJBObjects.
|
Collection |
convertCollectionPCToPrimaryKey(Collection pcs,
PersistenceManager pm)
Converts Collection of persistence-capable instances to a Collection of
the PrimaryKey Class instances.
|
Collection |
convertCollectionPrimaryKeyToObjectId(Collection key)
Converts Collection of PrimaryKey instances to a Collection of Object Id's
of a corresponding persistence-capable Class.
|
Object |
convertEJBObjectToPC(javax.ejb.EJBObject o,
PersistenceManager pm,
boolean validate)
Converts EJBObject to persistence-capable instance.
|
Object |
convertObjectIdToPrimaryKey(Object objectId)
Converts Object Id of a persistence-capable instance to an instance of the
PrimaryKey Class.
|
javax.ejb.EJBObject |
convertPCToEJBObject(Object pc,
PersistenceManager pm)
Converts persistence-capable instance to EJBObject.
|
Object |
convertPCToPrimaryKey(Object pc,
PersistenceManager pm)
Converts persistence-capable instance to an instance of the PrimaryKey Class.
|
Object |
convertPrimaryKeyToObjectId(Object key)
Converts instance of a PrimaryKey Class to an instance of the Object Id of a
corresponding persistence-capable Class.
|
Object |
getContainer()
Returns Container object associated with the corresponding concrete bean class.
|
NumericConverter |
getNumericConverter()
Return NumericConverter for conversion from Number to BigDecimal or
BigInteger for this bean type.
|
Class |
getPCClass()
Returns the class object of the corresponding persistence-capable class
of the concrete bean class.
|
Serializable |
readSerializableObjectFromByteArray(byte[] byteArray)
Constructs a Serializable object from byteArray.
|
byte[] |
writeSerializableObjectToByteArray(Serializable serializableObject)
Serializes serializableObject into a byte array
|
javax.ejb.EJBObject convertPCToEJBObject(Object pc, PersistenceManager pm)
pc - the persistence-capable instance to be converted as an Object.pm - the associated instance of PersistenceManager.Object convertEJBObjectToPC(javax.ejb.EJBObject o, PersistenceManager pm, boolean validate)
o - the EJBObject instance to be converted.pm - the associated instance of PersistenceManager.validate - true if the existence of the instance is to be validated.IllegalArgumentException - if validate is true and instance does
not exist in the database or is deleted.Collection convertCollectionPCToEJBObject(Collection pcs, PersistenceManager pm)
pcs - the Collection of persistence-capable instance to be converted.pm - the associated instance of PersistenceManager.Set convertCollectionPCToEJBObjectSet(Collection pcs, PersistenceManager pm)
pcs - the Collection of persistence-capable instance to be converted.pm - the associated instance of PersistenceManager.Collection convertCollectionEJBObjectToPC(Collection coll, PersistenceManager pm, boolean validate)
coll - the Collection of EJBObject instances to be converted.pm - the associated instance of PersistenceManager.validate - true if the existence of the instances is to be validated.IllegalArgumentException - if validate is true and at least one instance does
not exist in the database or is deleted.Object convertPCToPrimaryKey(Object pc, PersistenceManager pm)
pc - the persistence-capable instance to be converted as an Object.pm - the associated instance of PersistenceManager.Collection convertCollectionPCToPrimaryKey(Collection pcs, PersistenceManager pm)
pcs - Collection of the persistence-capable instances.pm - the associated instance of PersistenceManager.Object convertObjectIdToPrimaryKey(Object objectId)
objectId - the Object Id to be converted.Object convertPrimaryKeyToObjectId(Object key)
key - the PrimaryKey instance to be converted.Collection convertCollectionObjectIdToPrimaryKey(Collection oids)
oids - Collection of the Object Id to be converted.Collection convertCollectionPrimaryKeyToObjectId(Collection key)
key - Collection of the PrimaryKey instances to be converted.Class getPCClass()
byte[] writeSerializableObjectToByteArray(Serializable serializableObject)
serializableObject - Instance of a Serializable ObjectSerializable readSerializableObjectFromByteArray(byte[] byteArray)
byteArray - Array of byte obtained from a call to writeSerializableObjectToByteArraywriteSerializableObjectToByteArray(Serializable)Object getContainer()
void assertInstanceOfRemoteInterfaceImpl(Object o)
o - the instance to validate.IllegalArgumentException - if validation fails.NumericConverter getNumericConverter()
Copyright © 2017. All rights reserved.