|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.FOStoreSchemaUID
A FOStoreSchemaUID is an internal name used to distinguish persistence capable classes based on the structure of their persistent fields as indicated by the enhancer. This is very similar to, and the implementation is based on, the process of computing a serialVersionUID as described in Object Serialization Specification, Section 4.4, Stream Unique Identifiers. // NOI18N
Field Summary | |
private long |
fsuid
The 'value' of this FOStoreSchemaUID |
private static javax.jdo.spi.JDOImplHelper |
helper
JDOImplHelper instance |
private static java.util.HashMap |
loaderMap
Map from ClassLoader to a HashMap that in turn maps from Class to FOStoreSchemaUID. |
(package private) static org.apache.commons.logging.Log |
logger
Logger |
private static org.apache.jdo.util.I18NHelper |
msg
I18N support. |
private static FOStoreSchemaUID |
NOT_PERSISTENT
|
Constructor Summary | |
private |
FOStoreSchemaUID(java.lang.Class cls)
|
private |
FOStoreSchemaUID(long value)
|
Method Summary | |
private long |
computeUID(java.lang.Class cls)
|
private void |
computeUID(java.lang.Class cls,
java.io.DataOutputStream out)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
Computes a hashcode for this FOStoreSchemaUID. |
(package private) static FOStoreSchemaUID |
lookup(java.lang.Class cls,
FOStoreModel model)
Provides a FOStoreSchemaUID corresponding to the given class. |
(package private) static FOStoreSchemaUID |
read(java.io.DataInput in)
|
java.lang.String |
toString()
|
(package private) void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private final long fsuid
private static final java.util.HashMap loaderMap
private static final org.apache.jdo.util.I18NHelper msg
static final org.apache.commons.logging.Log logger
private static final FOStoreSchemaUID NOT_PERSISTENT
private static final javax.jdo.spi.JDOImplHelper helper
Constructor Detail |
private FOStoreSchemaUID(long value)
private FOStoreSchemaUID(java.lang.Class cls)
Method Detail |
static FOStoreSchemaUID lookup(java.lang.Class cls, FOStoreModel model)
cls
- Class for which a FOStoreSchemaUID is needed.model
- FOStoreModel for determining whether cls was enhanced.
private long computeUID(java.lang.Class cls)
private void computeUID(java.lang.Class cls, java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
static FOStoreSchemaUID read(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
public int hashCode()
long
value represented by this Long
object. That is, the
hashcode is the value of the expression:
This is the same algoritm as is used for java.lang.Long.(int)(this.longValue()^(this.longValue()>>>32))
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |