com.metamatrix.metadata.runtime.impl
Class AbstractMetadataRecord

java.lang.Object
  extended by com.metamatrix.metadata.runtime.impl.AbstractMetadataRecord
All Implemented Interfaces:
MetadataRecord, java.io.Serializable
Direct Known Subclasses:
AnnotationRecordImpl, ColumnRecordImpl, ColumnSetRecordImpl, DatatypeRecordImpl, FileRecordImpl, ModelRecordImpl, ProcedureParameterRecordImpl, ProcedureRecordImpl, PropertyRecordImpl, TransformationRecordImpl, VdbRecordImpl

public abstract class AbstractMetadataRecord
extends java.lang.Object
implements MetadataRecord

AbstractMetadataRecord

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.metamatrix.modeler.core.metadata.runtime.MetadataRecord
MetadataRecord.MetadataFieldNames, MetadataRecord.MetadataRecordProperties
 
Field Summary
protected  MetadataRecordDelegate delegate
           
protected  java.lang.Object eObject
           
 
Constructor Summary
AbstractMetadataRecord()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare two records for equality.
 java.lang.Object getEObject()
          Return the EObject for the entity this record represents.
 java.lang.String getFullName()
          Path for the entity.
 int getIndexVersion()
           
 java.lang.String getModelName()
          Return the name of the model in which this entity exists.
 java.lang.String getName()
          Get entity short name
 java.lang.String getNameInSource()
          Get entity name in source
 java.lang.String getParentFullName()
          Deprecated. the returned value may be incorrect in the case of an XML element (see defects #11326 and #11362)
 java.lang.String getParentPathString()
          Deprecated. the returned value may be incorrect in the case of an XML element (see defects #11326 and #11362)
 java.lang.String getParentUUID()
          Get the UUID of the logical parent for the entity.
 java.lang.String getPath()
          IPath object for the entity.
 java.lang.String getPathString()
          The string representation of IPath object for the entity.
 java.lang.Object getPropertyValue(java.lang.String propertyName)
          Get the value of the transient properties that get stored on the records for sake of caching.
 char getRecordType()
          Get type of the metadata record
 java.lang.String getResourcePath()
          Get path to the resource in the project
 java.lang.String getUUID()
          Get the UUID of the entity
 int hashCode()
          Get hashcode for From.
 void setEObjectFinder(EObjectFinder finder)
           
 void setFullName(java.lang.String fullName)
           
 void setIndexVersion(int version)
           
 void setName(java.lang.String name)
           
 void setNameInSource(java.lang.String string)
           
 void setParentUUID(java.lang.String string)
           
 void setPropertyValue(java.lang.String propertyName, java.lang.Object propertyVame)
          Set the value of the transient properties that get stored on the records for sake of caching.
 void setRecordType(char c)
           
 void setResourcePath(java.lang.String path)
           
 void setUUID(java.lang.String string)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

eObject

protected java.lang.Object eObject

delegate

protected MetadataRecordDelegate delegate
Constructor Detail

AbstractMetadataRecord

public AbstractMetadataRecord()
Method Detail

getUUID

public java.lang.String getUUID()
Description copied from interface: MetadataRecord
Get the UUID of the entity

Specified by:
getUUID in interface MetadataRecord
Returns:
the UUID of the entity

getParentUUID

public java.lang.String getParentUUID()
Description copied from interface: MetadataRecord
Get the UUID of the logical parent for the entity. The logical parent may or may not be the immediate parent for the entity.

Specified by:
getParentUUID in interface MetadataRecord
Returns:
the UUID of parent for the entity

getNameInSource

public java.lang.String getNameInSource()
Description copied from interface: MetadataRecord
Get entity name in source

Specified by:
getNameInSource in interface MetadataRecord
Returns:
name in source of the entity

getModelName

public java.lang.String getModelName()
Description copied from interface: MetadataRecord
Return the name of the model in which this entity exists.

Specified by:
getModelName in interface MetadataRecord
Returns:
name of the containing model
See Also:
MetadataRecord.getModelName()

getFullName

public java.lang.String getFullName()
Description copied from interface: MetadataRecord
Path for the entity.

Specified by:
getFullName in interface MetadataRecord
Returns:
path for the entity

getName

public java.lang.String getName()
Description copied from interface: MetadataRecord
Get entity short name

Specified by:
getName in interface MetadataRecord
Returns:
short name of the entity

getPathString

public java.lang.String getPathString()
Description copied from interface: MetadataRecord
The string representation of IPath object for the entity.

Specified by:
getPathString in interface MetadataRecord
Returns:
string form of IPath for the entity

getPath

public java.lang.String getPath()
Description copied from interface: MetadataRecord
IPath object for the entity.

Specified by:
getPath in interface MetadataRecord
Returns:
IPath for the entity

getParentFullName

public java.lang.String getParentFullName()
Deprecated. the returned value may be incorrect in the case of an XML element (see defects #11326 and #11362)

Description copied from interface: MetadataRecord
Path for the parent of this entity.

Specified by:
getParentFullName in interface MetadataRecord
Returns:
fullName for the parent of this entity
See Also:
MetadataRecord.getParentFullName()

getParentPathString

public java.lang.String getParentPathString()
Deprecated. the returned value may be incorrect in the case of an XML element (see defects #11326 and #11362)

Description copied from interface: MetadataRecord
The string representation of IPath object for the parent entity.

Specified by:
getParentPathString in interface MetadataRecord
Returns:
string form of IPath for the parent entity
See Also:
MetadataRecord.getParentPathString()

getRecordType

public char getRecordType()
Description copied from interface: MetadataRecord
Get type of the metadata record

Specified by:
getRecordType in interface MetadataRecord
Returns:
char representing type of the metadata record

setNameInSource

public void setNameInSource(java.lang.String string)
Parameters:
string -

setFullName

public void setFullName(java.lang.String fullName)
Parameters:
path -

setName

public void setName(java.lang.String name)
Parameters:
String -

setUUID

public void setUUID(java.lang.String string)
Parameters:
string -

setParentUUID

public void setParentUUID(java.lang.String string)
Parameters:
string -

getIndexVersion

public int getIndexVersion()
Returns:
index version number

setIndexVersion

public void setIndexVersion(int version)
Parameters:
int -

setEObjectFinder

public void setEObjectFinder(EObjectFinder finder)
Parameters:
container - The container to set.
Since:
4.2

getEObject

public java.lang.Object getEObject()
Description copied from interface: MetadataRecord
Return the EObject for the entity this record represents. May be null.

Specified by:
getEObject in interface MetadataRecord
Returns:
EObject for the Record.

getResourcePath

public java.lang.String getResourcePath()
Description copied from interface: MetadataRecord
Get path to the resource in the project

Specified by:
getResourcePath in interface MetadataRecord
Returns:

setResourcePath

public void setResourcePath(java.lang.String path)
Parameters:
path -

setRecordType

public void setRecordType(char c)
Parameters:
c -

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String propertyName)
Description copied from interface: MetadataRecord
Get the value of the transient properties that get stored on the records for sake of caching.

Specified by:
getPropertyValue in interface MetadataRecord
Parameters:
propertyName - The name of property (one among those stored on this interface)
Returns:
The property value for this property.

setPropertyValue

public void setPropertyValue(java.lang.String propertyName,
                             java.lang.Object propertyVame)
Description copied from interface: MetadataRecord
Set the value of the transient properties that get stored on the records for sake of caching.

Specified by:
setPropertyValue in interface MetadataRecord
Parameters:
propertyName - The name of property (one among those stored on this interface)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Compare two records for equality.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Get hashcode for From. WARNING: The hash code relies on the variables in the record, so changing the variables will change the hash code, causing a select to be lost in a hash structure. Do not hash a record if you plan to change it.

Overrides:
hashCode in class java.lang.Object


Copyright © 2009. All Rights Reserved.