|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.schema.id.GraphEntityClassID
public class GraphEntityClassID
A GraphEntityClassID
identifies an graph entity class in the
schema.
Constructor Summary | |
---|---|
GraphEntityClassID(DataSourceURL dataSourceURL,
java.io.Serializable internalIdentifier,
java.lang.String name)
Creates a new ID for a graph entity class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equality with another object. |
DataSourceURL |
getDataSourceURL()
Returns the URL to the data source that uses the Schema to which the schema class represented by this ID belongs. |
GraphEntityClass |
getGraphEntityClass()
Returns the graph entity class referenced by this ID. |
java.io.Serializable |
getInternalIdentifier()
Returns the internal ID of the schema entity. |
java.lang.String |
getName()
Returns the name of the schema entity. |
int |
hashCode()
|
boolean |
isSubclassID()
Returns true if this is an ID of a subclass (edge,
node...), false if this is an ID of a GraphEntityClass
itself. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphEntityClassID(DataSourceURL dataSourceURL, java.io.Serializable internalIdentifier, java.lang.String name)
dataSourceURL
- The dataSourceURL of the GraphPool.internalIdentifier
- Internal graph entity class ID.name
- The name of the graph entity class.Method Detail |
---|
public GraphEntityClass getGraphEntityClass() throws DragosException
DragosException
- in case of internal errors.public final DataSourceURL getDataSourceURL()
null
.
public final java.io.Serializable getInternalIdentifier()
public java.lang.String getName()
public boolean equals(java.lang.Object o)
This object is considered equal if all of the following conditions are met:
o != null
o instanceof GraphEntityClassID
getDataSourceURL().equals(((GraphEntityClassID) o).getDataSourceURL())
getInternalIdentifier().equals(((GraphEntityClassID) o).getInternalIdentifier())
Subclasses and implementations might want to extend this list by adding
assertions comparing additional or internal data (e.g. the type of the
graph entity). However, equality must only be determined by the above
rules, preferably by using super.equals(o)
, and any
difference in the additional data for two equal IDs is an error.
equals
in class java.lang.Object
o
- The Object to compare to.
true
if o
is equal according to
above rules, false
otherwise.public final int hashCode()
hashCode
in class java.lang.Object
public boolean isSubclassID()
true
if this is an ID of a subclass (edge,
node...), false
if this is an ID of a GraphEntityClass
itself.
true
if this is an ID of a subclass (edge,
node...), false
if this is an ID of a
GraphEntityClass itself.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |