|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.core.IdentityFactoryImpl
IdentityFactory
Constructor Summary | |
IdentityFactoryImpl(PersistenceBroker broker)
|
Method Summary | |
Identity |
buildIdentity(java.lang.Class realClass,
java.lang.Class topLevelClass,
java.lang.Object[] pkValues)
Create a new Identity object based on given arguments - NOTE: There
will be no check to resolve the order of the PK values. |
Identity |
buildIdentity(java.lang.Class realClass,
java.lang.Class topLevelClass,
java.lang.String[] pkFieldNames,
java.lang.Object[] pkValues)
Build a unique Identity
for the given primary key values (composite PK's) of a
persistence capable object. |
Identity |
buildIdentity(ClassDescriptor cld,
java.lang.Object obj)
Build a unique Identity for the given
persistence capable object. |
Identity |
buildIdentity(java.lang.Class realClass,
java.lang.Object pkValue)
Convenience method for persistent objects with single primary key. |
Identity |
buildIdentity(java.lang.Class realClass,
java.lang.String[] pkFieldNames,
java.lang.Object[] pkValues)
Convenience method for buildIdentity(java.lang.Class, java.lang.Class, java.lang.String[], java.lang.Object[]) |
Identity |
buildIdentity(java.lang.Object obj)
Build a unique Identity for the given
persistence capable object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IdentityFactoryImpl(PersistenceBroker broker)
Method Detail |
public Identity buildIdentity(java.lang.Object obj)
IdentityFactory
Identity
for the given
persistence capable object.
buildIdentity
in interface IdentityFactory
obj
- The object to build the Identity
for.
IdentityFactory.buildIdentity(java.lang.Object)
public Identity buildIdentity(ClassDescriptor cld, java.lang.Object obj)
IdentityFactory
Identity
for the given
persistence capable object.
buildIdentity
in interface IdentityFactory
cld
- The ClassDescriptor
of the
object.obj
- The object to build the Identity
for.
IdentityFactory.buildIdentity(java.lang.Object)
public Identity buildIdentity(java.lang.Class realClass, java.lang.Class topLevelClass, java.lang.String[] pkFieldNames, java.lang.Object[] pkValues)
IdentityFactory
Identity
for the given primary key values (composite PK's) of a
persistence capable object.
buildIdentity
in interface IdentityFactory
realClass
- The class of the associated object.topLevelClass
- The top-level class of the associated object.pkFieldNames
- The field names of the PK fields.pkValues
- The PK values.
IdentityFactory.buildIdentity(java.lang.Class, java.lang.Class, java.lang.String[], java.lang.Object[])
public Identity buildIdentity(java.lang.Class realClass, java.lang.String[] pkFieldNames, java.lang.Object[] pkValues)
IdentityFactory
IdentityFactory.buildIdentity(java.lang.Class, java.lang.Class, java.lang.String[], java.lang.Object[])
buildIdentity
in interface IdentityFactory
IdentityFactory.buildIdentity(java.lang.Class, java.lang.String[], java.lang.Object[])
public Identity buildIdentity(java.lang.Class realClass, java.lang.Class topLevelClass, java.lang.Object[] pkValues)
IdentityFactory
Identity
object based on given arguments - NOTE: There
will be no check to resolve the order of the PK values. This method expect
the correct order.
buildIdentity
in interface IdentityFactory
realClass
- The class of the associated object.topLevelClass
- The top-level class of the associated object.pkValues
- The PK values.
IdentityFactory.buildIdentity(java.lang.Class, java.lang.String[], java.lang.Object[])
public Identity buildIdentity(java.lang.Class realClass, java.lang.Object pkValue)
IdentityFactory
buildIdentity
in interface IdentityFactory
realClass
- The class of the associated object.pkValue
- The PK value.
IdentityFactory.buildIdentity(java.lang.Class, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |