org.teiid.metadata
Class AbstractMetadataRecord

java.lang.Object
  extended by org.teiid.metadata.AbstractMetadataRecord
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BaseColumn, ColumnSet, Datatype, FunctionMethod, Procedure, Schema, TransformationRecordImpl

public abstract class AbstractMetadataRecord
extends java.lang.Object
implements java.io.Serializable

AbstractMetadataRecord

See Also:
Serialized Form

Nested Class Summary
static interface AbstractMetadataRecord.DataModifiable
           
static interface AbstractMetadataRecord.Modifiable
           
 
Field Summary
static char NAME_DELIM_CHAR
           
 
Constructor Summary
AbstractMetadataRecord()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare two records for equality.
 java.lang.String getAnnotation()
           
 java.lang.String getCanonicalName()
           
 java.lang.String getFullName()
          WARNING - The name returned by this method may be ambiguous and is not SQL safe - it may need quoted/escaped
 java.lang.String getName()
           
 java.lang.String getNameInSource()
           
 AbstractMetadataRecord getParent()
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Return the extension properties for this record - may be unmodifiable if setProperties(LinkedHashMap) or setProperty(String, String) has not been called.
 java.lang.String getUUID()
           
 int hashCode()
           
 void setAnnotation(java.lang.String annotation)
           
 void setName(java.lang.String name)
           
 void setNameInSource(java.lang.String nameInSource)
           
 void setProperties(java.util.LinkedHashMap<java.lang.String,java.lang.String> properties)
           
 java.lang.String setProperty(java.lang.String key, java.lang.String value)
          The preferred setter for extension properties.
 void setUUID(java.lang.String uuid)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_DELIM_CHAR

public static final char NAME_DELIM_CHAR
See Also:
Constant Field Values
Constructor Detail

AbstractMetadataRecord

public AbstractMetadataRecord()
Method Detail

getUUID

public java.lang.String getUUID()

setUUID

public void setUUID(java.lang.String uuid)

getNameInSource

public java.lang.String getNameInSource()

setNameInSource

public void setNameInSource(java.lang.String nameInSource)

getFullName

public java.lang.String getFullName()
WARNING - The name returned by this method may be ambiguous and is not SQL safe - it may need quoted/escaped


getParent

public AbstractMetadataRecord getParent()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getCanonicalName

public java.lang.String getCanonicalName()

toString

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

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Return the extension properties for this record - may be unmodifiable if setProperties(LinkedHashMap) or setProperty(String, String) has not been called.

Returns:

setProperty

public java.lang.String setProperty(java.lang.String key,
                                    java.lang.String value)
The preferred setter for extension properties.

Parameters:
key -
value, - if null the property will be removed

setProperties

public void setProperties(java.util.LinkedHashMap<java.lang.String,java.lang.String> properties)

getAnnotation

public java.lang.String getAnnotation()

setAnnotation

public void setAnnotation(java.lang.String annotation)

equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2011. All Rights Reserved.