com.metamatrix.metadata.runtime.impl
Class TableRecordImpl

java.lang.Object
  extended by com.metamatrix.metadata.runtime.impl.AbstractMetadataRecord
      extended by com.metamatrix.metadata.runtime.impl.ColumnSetRecordImpl
          extended by com.metamatrix.metadata.runtime.impl.TableRecordImpl
All Implemented Interfaces:
ColumnSetRecord, MetadataRecord, TableRecord, java.io.Serializable

public class TableRecordImpl
extends ColumnSetRecordImpl
implements TableRecord

TableRecordImpl

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.metamatrix.modeler.core.metadata.runtime.TableRecord
TableRecord.TableRecordProperties
 
Nested classes/interfaces inherited from interface com.metamatrix.modeler.core.metadata.runtime.MetadataRecord
MetadataRecord.MetadataFieldNames, MetadataRecord.MetadataRecordProperties
 
Nested classes/interfaces inherited from interface com.metamatrix.modeler.core.metadata.runtime.ColumnSetRecord
ColumnSetRecord.ColumnSetRecordProperties
 
Field Summary
 
Fields inherited from class com.metamatrix.metadata.runtime.impl.AbstractMetadataRecord
delegate, eObject
 
Constructor Summary
  TableRecordImpl()
           
protected TableRecordImpl(MetadataRecordDelegate delegate)
           
 
Method Summary
 java.util.Collection getAccessPatternIDs()
          Get a list of identifiers for the access patterns in the table
 int getCardinality()
          Get a cardinality of the table in the table
 java.util.Collection getForeignKeyIDs()
          Get a list of identifiers for the foreign keys in the table
 java.util.Collection getIndexIDs()
          Get a list of identifiers for the indexes in the table
 java.lang.Object getMaterializedStageTableID()
          Get a materialized staging table identifier for this table
 java.lang.Object getMaterializedTableID()
          Get a materialized table identifier for this table
 java.lang.Object getPrimaryKeyID()
          Get a primary key identifier in the table
 int getTableType()
          Return the table type of this table
 java.util.Collection getUniqueKeyIDs()
          Get a list of identifiers for the unique keys in the table
 boolean isMaterialized()
          Check if table represents a materialized table
 boolean isPhysical()
          Check if table represents a table in a physical model
 boolean isSystem()
          Check if table represents a table in a system model
 boolean isVirtual()
          Check if table represents a table in a virtual model
 void setAccessPatternIDs(java.util.Collection collection)
           
 void setCardinality(int i)
           
 void setForeignKeyIDs(java.util.Collection collection)
           
 void setIndexIDs(java.util.Collection collection)
           
 void setMaterialized(boolean isMaterialized)
           
 void setMaterializedStageTableID(java.lang.Object materializedStageTableID)
           
 void setMaterializedTableID(java.lang.Object materializedTableID)
           
 void setPrimaryKeyID(java.lang.Object keyID)
           
 void setSupportsUpdate(boolean b)
           
 void setSystem(boolean b)
           
 void setTableType(int i)
           
 void setUniqueKeyIDs(java.util.Collection collection)
           
 void setVirtual(boolean b)
           
 boolean supportsUpdate()
          Check if UPDATE operations are supported on the table
 java.lang.String toString()
           
 
Methods inherited from class com.metamatrix.metadata.runtime.impl.ColumnSetRecordImpl
getColumnIdEntries, getColumnIDs, getKeyTypeForRecordType, getType, isAccessPattern, isIndex, isPrimaryKey, isResultSet, isUniqueKey, setColumnIDs
 
Methods inherited from class com.metamatrix.metadata.runtime.impl.AbstractMetadataRecord
equals, getEObject, getFullName, getIndexVersion, getModelName, getName, getNameInSource, getParentFullName, getParentPathString, getParentUUID, getPath, getPathString, getPropertyValue, getRecordType, getResourcePath, getUUID, hashCode, setEObjectFinder, setFullName, setIndexVersion, setName, setNameInSource, setParentUUID, setPropertyValue, setRecordType, setResourcePath, setUUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.modeler.core.metadata.runtime.TableRecord
getColumnIDs
 
Methods inherited from interface com.metamatrix.modeler.core.metadata.runtime.MetadataRecord
getEObject, getFullName, getModelName, getName, getNameInSource, getParentFullName, getParentPathString, getParentUUID, getPath, getPathString, getPropertyValue, getRecordType, getResourcePath, getUUID, setPropertyValue
 

Constructor Detail

TableRecordImpl

public TableRecordImpl()

TableRecordImpl

protected TableRecordImpl(MetadataRecordDelegate delegate)
Method Detail

getAccessPatternIDs

public java.util.Collection getAccessPatternIDs()
Description copied from interface: TableRecord
Get a list of identifiers for the access patterns in the table

Specified by:
getAccessPatternIDs in interface TableRecord
Returns:
a list of identifiers

getCardinality

public int getCardinality()
Description copied from interface: TableRecord
Get a cardinality of the table in the table

Specified by:
getCardinality in interface TableRecord
Returns:
the cardinality

getForeignKeyIDs

public java.util.Collection getForeignKeyIDs()
Description copied from interface: TableRecord
Get a list of identifiers for the foreign keys in the table

Specified by:
getForeignKeyIDs in interface TableRecord
Returns:
a list of identifiers

getIndexIDs

public java.util.Collection getIndexIDs()
Description copied from interface: TableRecord
Get a list of identifiers for the indexes in the table

Specified by:
getIndexIDs in interface TableRecord
Returns:
a list of identifiers

getPrimaryKeyID

public java.lang.Object getPrimaryKeyID()
Description copied from interface: TableRecord
Get a primary key identifier in the table

Specified by:
getPrimaryKeyID in interface TableRecord
Returns:
an identifier for the primary key

getUniqueKeyIDs

public java.util.Collection getUniqueKeyIDs()
Description copied from interface: TableRecord
Get a list of identifiers for the unique keys in the table

Specified by:
getUniqueKeyIDs in interface TableRecord
Returns:
a list of identifiers

isVirtual

public boolean isVirtual()
Description copied from interface: TableRecord
Check if table represents a table in a virtual model

Specified by:
isVirtual in interface TableRecord
Returns:
true if the table is virtual

isMaterialized

public boolean isMaterialized()
Description copied from interface: TableRecord
Check if table represents a materialized table

Specified by:
isMaterialized in interface TableRecord
Returns:
true if the table is materialized
Since:
4.2
See Also:
TableRecord.isMaterialized()

isPhysical

public boolean isPhysical()
Description copied from interface: TableRecord
Check if table represents a table in a physical model

Specified by:
isPhysical in interface TableRecord
Returns:
true if the table is physical
See Also:
TableRecord.isPhysical()

isSystem

public boolean isSystem()
Description copied from interface: TableRecord
Check if table represents a table in a system model

Specified by:
isSystem in interface TableRecord
Returns:
true if the table is system
See Also:
TableRecord.isSystem()

getTableType

public int getTableType()
Description copied from interface: TableRecord
Return the table type of this table

Specified by:
getTableType in interface TableRecord
Returns:
a int value from the available table types
See Also:
MetadataConstants.TABLE_TYPES

getMaterializedStageTableID

public java.lang.Object getMaterializedStageTableID()
Description copied from interface: TableRecord
Get a materialized staging table identifier for this table

Specified by:
getMaterializedStageTableID in interface TableRecord
Returns:
an identifier for materialized staging table
Since:
4.2
See Also:
TableRecord.getMaterializedStageTableID()

getMaterializedTableID

public java.lang.Object getMaterializedTableID()
Description copied from interface: TableRecord
Get a materialized table identifier for this table

Specified by:
getMaterializedTableID in interface TableRecord
Returns:
an identifier for materialized table
Since:
4.2
See Also:
TableRecord.getMaterializedTableID()

supportsUpdate

public boolean supportsUpdate()
Description copied from interface: TableRecord
Check if UPDATE operations are supported on the table

Specified by:
supportsUpdate in interface TableRecord
Returns:
true if the table can be used in an UPDATE

setCardinality

public void setCardinality(int i)
Parameters:
i -

setTableType

public void setTableType(int i)
Parameters:
i -

setPrimaryKeyID

public void setPrimaryKeyID(java.lang.Object keyID)
Parameters:
object -

setSupportsUpdate

public void setSupportsUpdate(boolean b)
Parameters:
b -

setVirtual

public void setVirtual(boolean b)
Parameters:
b -

setMaterialized

public void setMaterialized(boolean isMaterialized)
Parameters:
isMaterialized - The isMaterialized to set.
Since:
4.2

setSystem

public void setSystem(boolean b)
Parameters:
b -

setAccessPatternIDs

public void setAccessPatternIDs(java.util.Collection collection)
Parameters:
collection -

setForeignKeyIDs

public void setForeignKeyIDs(java.util.Collection collection)
Parameters:
collection -

setMaterializedStageTableID

public void setMaterializedStageTableID(java.lang.Object materializedStageTableID)
Parameters:
materializedStageTableID - The materializedStageTableID to set.
Since:
4.2

setMaterializedTableID

public void setMaterializedTableID(java.lang.Object materializedTableID)
Parameters:
materializedTableID - The materializedTableID to set.
Since:
4.2

setIndexIDs

public void setIndexIDs(java.util.Collection collection)
Parameters:
collection -

setUniqueKeyIDs

public void setUniqueKeyIDs(java.util.Collection collection)
Parameters:
collection -

toString

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


Copyright © 2009. All Rights Reserved.