|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.objects.ObjectKey
ObjectKey definition class
Field Summary | |
(package private) static long |
serialVersionUID
|
static int |
version
|
Constructor Summary | |
ObjectKey()
|
|
ObjectKey(java.util.ArrayList names,
java.util.ArrayList types,
java.util.ArrayList values)
Creates new instance of ObjectKey by list of field names,types, and values |
Method Summary | |
boolean |
equals(ObjectKey key)
compares if itself equals to the passed key object |
java.util.ArrayList |
getKeyNames()
gets a list of key field names |
int |
getKeyType(java.lang.String name)
gets key type for given field |
java.util.ArrayList |
getKeyTypes()
gets a list of key types |
java.lang.Object |
getKeyValue(java.lang.String name)
gets key value |
java.util.ArrayList |
getKeyValues()
gets key values |
int |
hashCode()
calculates hashCode 1. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setKeyValue(java.lang.String name,
java.lang.Object value)
sets key values by field name |
java.lang.String |
toString()
toString |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
public static final int version
Constructor Detail |
public ObjectKey()
public ObjectKey(java.util.ArrayList names, java.util.ArrayList types, java.util.ArrayList values) throws ObjectException
names
- ArrayList of field namestypes
- ArrayList of field typesvalues
- ArrayList of field values
ObjectException
- ObjectExceptionMethod Detail |
public boolean equals(ObjectKey key)
key
- ObjectKey
public java.util.ArrayList getKeyNames()
public int getKeyType(java.lang.String name) throws ObjectException
name
- name
ObjectException
- ObjectExceptionpublic java.util.ArrayList getKeyTypes()
public java.lang.Object getKeyValue(java.lang.String name) throws ObjectException
name
- key field name
ObjectException
- ObjectExceptionpublic java.util.ArrayList getKeyValues()
public int hashCode()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void setKeyValue(java.lang.String name, java.lang.Object value) throws ObjectException
name
- key field namevalue
- key value
ObjectException
- ObjectExceptionpublic java.lang.String toString()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.