|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.metadata.runtime.model.BasicMetadataID
com.metamatrix.metadata.runtime.model.BasicVirtualDatabaseID
public class BasicVirtualDatabaseID
| Field Summary |
|---|
| Fields inherited from class com.metamatrix.metadata.runtime.model.BasicMetadataID |
|---|
DELIMITER, FAKE_NAME, NOT_DEFINED, WILDCARD |
| Constructor Summary | |
|---|---|
BasicVirtualDatabaseID(java.lang.String fullName,
java.lang.String versionName)
Call constructor to instantiate a VirtualDatabaseID object for the fully qualified Virtual Database name and version. |
|
BasicVirtualDatabaseID(java.lang.String fullName,
java.lang.String versionName,
long internalUniqueID)
Call constructor to instantiate a VirtualDatabaseID object for the fully qualified Virtual Database name, version and an internal unique identifier. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
int |
compareToByName(java.lang.Object obj)
Compares this object to another lexicographically. |
protected int |
computeHashCode()
Return a new hash code value for this instance. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
java.lang.String |
getVersion()
returns the version. |
void |
setVersion(java.lang.String version)
|
| Methods inherited from class com.metamatrix.metadata.runtime.model.BasicMetadataID |
|---|
clone, getFullName, getName, getNameComponent, getNameComponents, getParentFullName, getPath, getUID, hashCode, hasParent, setFullName, setGroupFullName, setModelName, setName, setShortName, setUID, size, toString, updateHashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.metamatrix.metadata.runtime.api.MetadataID |
|---|
clone, getFullName, getName, getNameComponent, getNameComponents, getParentFullName, getPath, hashCode, size, toString |
| Constructor Detail |
|---|
public BasicVirtualDatabaseID(java.lang.String fullName,
java.lang.String versionName,
long internalUniqueID)
public BasicVirtualDatabaseID(java.lang.String fullName,
java.lang.String versionName)
| Method Detail |
|---|
public java.lang.String getVersion()
getVersion in interface VirtualDatabaseIDpublic void setVersion(java.lang.String version)
public boolean equals(java.lang.Object obj)
BasicMetadataIDcompareTo().
equals in interface MetadataIDequals in class BasicMetadataIDobj - the object that this instance is to be compared to.
public int compareTo(java.lang.Object obj)
BasicMetadataIDequals(), meaning
that (compare(x, y)==0) == (x.equals(y)).
The algorithm that this method follows is based primarily upon the
hash code. When two instances of MetadataID, objects A and B, are being compared,
this method first compares the (cached) hash code of the two objects. If the
two hash codes are not equal, the method returns the difference in the hash
codes (namely A.hashCode() - B.hashCode()).
If, however, the two hash code values are equivalent, then the
two MetadataID instances are potentially equivalent, and the
full names of the BaseIDs are compared (ignoring case) to determine actual result.
compareTo in interface MetadataIDcompareTo in interface java.lang.ComparablecompareTo in class BasicMetadataIDobj - the object that this instance is to be compared to.
public int compareToByName(java.lang.Object obj)
BasicMetadataIDequals().
compareToByName in interface MetadataIDcompareToByName in class BasicMetadataIDobj - the object that this instance is to be compared to.
protected int computeHashCode()
BasicMetadataID
protected int computeHashCode() {
int result = super.computeHashCode();
result = HashCodeUtil.hashCode(result, ... );
result = HashCodeUtil.hashCode(result, ... );
return result;
}
Any specialized implementation must not rely upon the hashCode
method.
Note that this method does not and cannot actually update the hash code value.
Rather, this method is called by the updateHashCode method.
computeHashCode in class BasicMetadataID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||