org.teiid.metadata
Class Table
java.lang.Object
org.teiid.metadata.AbstractMetadataRecord
org.teiid.metadata.ColumnSet<Schema>
org.teiid.metadata.Table
- All Implemented Interfaces:
- java.io.Serializable, AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
public class Table
- extends ColumnSet<Schema>
- implements AbstractMetadataRecord.Modifiable, AbstractMetadataRecord.DataModifiable
- See Also:
- Serialized Form
|
Constructor Summary |
Table()
|
| Methods inherited from class org.teiid.metadata.AbstractMetadataRecord |
equals, getAnnotation, getCanonicalName, getFullName, getName, getNameInSource, getProperties, getUUID, hashCode, setAnnotation, setName, setNameInSource, setProperties, setProperty, setUUID, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Table
public Table()
getBindings
public java.util.List<java.lang.String> getBindings()
setBindings
public void setBindings(java.util.List<java.lang.String> bindings)
getSchemaPaths
public java.util.List<java.lang.String> getSchemaPaths()
setSchemaPaths
public void setSchemaPaths(java.util.List<java.lang.String> schemaPaths)
getCardinality
public int getCardinality()
isVirtual
public boolean isVirtual()
isMaterialized
public boolean isMaterialized()
isPhysical
public boolean isPhysical()
isSystem
public boolean isSystem()
getTableType
public Table.Type getTableType()
supportsUpdate
public boolean supportsUpdate()
setCardinality
public void setCardinality(int i)
- Parameters:
i -
setTableType
public void setTableType(Table.Type i)
- Parameters:
i -
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 -
getInsertPlan
public java.lang.String getInsertPlan()
getUpdatePlan
public java.lang.String getUpdatePlan()
getDeletePlan
public java.lang.String getDeletePlan()
setInsertPlan
public void setInsertPlan(java.lang.String insertPlan)
setUpdatePlan
public void setUpdatePlan(java.lang.String updatePlan)
setDeletePlan
public void setDeletePlan(java.lang.String deletePlan)
getForeignKeys
public java.util.List<ForeignKey> getForeignKeys()
setForiegnKeys
public void setForiegnKeys(java.util.List<ForeignKey> foriegnKeys)
getIndexes
public java.util.List<KeyRecord> getIndexes()
setIndexes
public void setIndexes(java.util.List<KeyRecord> indexes)
getUniqueKeys
public java.util.List<KeyRecord> getUniqueKeys()
setUniqueKeys
public void setUniqueKeys(java.util.List<KeyRecord> uniqueKeys)
getAccessPatterns
public java.util.List<KeyRecord> getAccessPatterns()
setAccessPatterns
public void setAccessPatterns(java.util.List<KeyRecord> accessPatterns)
getPrimaryKey
public KeyRecord getPrimaryKey()
setPrimaryKey
public void setPrimaryKey(KeyRecord primaryKey)
getSelectTransformation
public java.lang.String getSelectTransformation()
setSelectTransformation
public void setSelectTransformation(java.lang.String selectTransformation)
getMaterializedStageTable
public Table getMaterializedStageTable()
getMaterializedTable
public Table getMaterializedTable()
setMaterializedStageTable
public void setMaterializedStageTable(Table materializedStageTable)
setMaterializedTable
public void setMaterializedTable(Table materializedTable)
setResourcePath
public void setResourcePath(java.lang.String resourcePath)
getResourcePath
public java.lang.String getResourcePath()
getAllKeys
public java.util.Collection<KeyRecord> getAllKeys()
addColumn
public void addColumn(Column column)
- Overrides:
addColumn in class ColumnSet<Schema>
getLastDataModification
public long getLastDataModification()
- Specified by:
getLastDataModification in interface AbstractMetadataRecord.DataModifiable
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface AbstractMetadataRecord.Modifiable
setLastDataModification
public void setLastDataModification(long lastDataModification)
setLastModified
public void setLastModified(long lastModified)
setTableStats
public void setTableStats(TableStats stats)
isDeletePlanEnabled
public boolean isDeletePlanEnabled()
isInsertPlanEnabled
public boolean isInsertPlanEnabled()
isUpdatePlanEnabled
public boolean isUpdatePlanEnabled()
setInsertPlanEnabled
public void setInsertPlanEnabled(boolean insertPlanEnabled)
setDeletePlanEnabled
public void setDeletePlanEnabled(boolean deletePlanEnabled)
setUpdatePlanEnabled
public void setUpdatePlanEnabled(boolean updatePlanEnabled)
addAttchment
public <T> T addAttchment(java.lang.Class<T> type,
T attachment)
- Add attachment
- Type Parameters:
T - the expected type- Parameters:
attachment - the attachmenttype - the type
- Returns:
- any previous attachment
- Throws:
java.lang.IllegalArgumentException - for a null name, attachment or type
java.lang.UnsupportedOperationException - when not supported by the implementation
getAttachment
public <T> T getAttachment(java.lang.Class<T> type)
- Get attachment
- Type Parameters:
T - the expected type- Parameters:
type - the type
- Returns:
- the attachment or null if not present
- Throws:
java.lang.IllegalArgumentException - for a null name or type
Copyright © 2011. All Rights Reserved.