org.teiid.metadata
Class AbstractMetadataRecord

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

public abstract class AbstractMetadataRecord
extends Object
implements Serializable

AbstractMetadataRecord

See Also:
Serialized Form

Nested Class Summary
static interface AbstractMetadataRecord.DataModifiable
           
static interface AbstractMetadataRecord.Modifiable
           
 
Field Summary
static char NAME_DELIM_CHAR
           
static String RELATIONAL_URI
           
 
Constructor Summary
AbstractMetadataRecord()
           
 
Method Summary
 boolean equals(Object obj)
          Compare two records for equality.
 String getAnnotation()
           
 String getCanonicalName()
           
 String getFullName()
          WARNING - The name returned by this method may be ambiguous and is not SQL safe - it may need quoted/escaped
 String getName()
           
 String getNameInSource()
           
 AbstractMetadataRecord getParent()
           
 Map<String,String> getProperties()
          Return the extension properties for this record - may be unmodifiable if setProperties(LinkedHashMap) or setProperty(String, String) has not been called.
 String getProperty(String key, boolean checkUnqualified)
           
 String getUUID()
           
 int hashCode()
           
 void setAnnotation(String annotation)
           
 void setName(String name)
           
 void setNameInSource(String nameInSource)
           
 void setProperties(LinkedHashMap<String,String> properties)
           
 String setProperty(String key, String value)
          The preferred setter for extension properties.
 void setUUID(String uuid)
           
 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

RELATIONAL_URI

public static final String RELATIONAL_URI
See Also:
Constant Field Values
Constructor Detail

AbstractMetadataRecord

public AbstractMetadataRecord()
Method Detail

getUUID

public String getUUID()

setUUID

public void setUUID(String uuid)

getNameInSource

public String getNameInSource()

setNameInSource

public void setNameInSource(String nameInSource)

getFullName

public 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 String getName()

setName

public void setName(String name)

getCanonicalName

public String getCanonicalName()

toString

public String toString()
Overrides:
toString in class Object

getProperties

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

Returns:

getProperty

public String getProperty(String key,
                          boolean checkUnqualified)

setProperty

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

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

setProperties

public void setProperties(LinkedHashMap<String,String> properties)

getAnnotation

public String getAnnotation()

setAnnotation

public void setAnnotation(String annotation)

equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.