public class ViewInfo extends CachedObjectPointer implements Entity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addColumnInfo(ViewColumnInfo viewColumnInfo)
Adds column information to this view information.
|
void |
addTableInfo(java.lang.String tableName,
TableInfo tableInfo)
Adds table information to this view information.
|
void |
clearColumnInfo()
For use by MaximoDD
cleanNonAutoViews . |
java.lang.String |
getAuditTable(java.lang.String tableName)
Returns audit table associated with the given table, if any.
|
boolean |
getAutoSelect()
Gets autoselect.
|
java.lang.String |
getCacheName() |
java.lang.String |
getColumnName(java.lang.String entityColumnName)
Returns the column name for the given view column name.
|
java.lang.String |
getColumnName(java.lang.String entityColumnName,
java.lang.String tableName)
Returns the column name for the given view column name and table name.
|
java.util.Iterator |
getColumns(java.lang.String tableName)
Returns an Iterator to iterate over columns of the given table
on which the view is based.
|
java.lang.String |
getEntityColumnName(java.lang.String tableColumnName,
java.lang.String tableName)
Returns the Entity column name for the given table column name and table name.
|
java.util.Iterator |
getEntityColumns()
Returns an Iterator to iterate over columns of this view.
|
java.util.Iterator |
getKeyColumns(java.lang.String tableName)
Returns an Iterator to iterate over key column names.
|
java.lang.String |
getLangColumnName(java.lang.String tableName)
Returns language column Name associated with the given table, if any.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getOrphans(java.lang.String tableName)
Get rows from maxviewcolumn that have non-null "samestorageas"
and are not the Rowstamp.
|
RowStampInfo |
getRowStampInfo()
Returns rowstamp information for this view, if rowstamp
information exists with tables on which the view is based on.
|
int |
getTableCount()
Returns the number of tables associated with this view.
|
java.util.Iterator |
getTableInfos()
Returns an iterator to iterate over TableInfo objects that this
view is based on.
|
java.lang.String |
getTableName(java.lang.String entityColumnName)
Returns the table name for the given view column name.
|
java.util.Iterator |
getTables()
Returns an Iterator to iterate over table names that this view is
based on.
|
java.util.Iterator |
getTablesInHierarchyOrder()
Returns an Iterator to iterate over table names that this view is
based on.
|
java.util.Iterator |
getTablesInReverseHierarchyOrder()
Returns an Iterator to iterate over table names that this view is
based on.
|
TenantIdInfo |
getTenantIdInfo()
Returns tenantif information related to this entity.
|
ViewInfoBase |
getTypedReference() |
ViewInfoBase |
getTypedReferenceForSet() |
java.util.HashMap<java.lang.String,ViewColumnInfo> |
getViewColumns()
Return viewColumns.
|
java.lang.String |
getViewFetchAttributeName(java.lang.String viewColName)
Given view column name, return the view attribute name for fetching data.
|
java.lang.String |
getViewFetchAttributeName(java.lang.String tbName,
java.lang.String tbColName)
Given table name and table column name, return the view attribute name for fetching data.
|
java.lang.String |
getViewName()
Returns the name of the view.
|
java.lang.String |
getViewSelect()
Gets viewselect.
|
boolean |
hasImplicitTenantId()
Returns whether the entity has tenantid or not for any of the participating tables.
|
boolean |
hasImplicitTenantId(java.lang.String tableName)
Returns whether the entity has tenantid or not for the table
tableName . |
boolean |
hasRowStamp()
Returns whether rowstamp information exists for this view or not.
|
boolean |
isTenantOwned() |
void |
setRowStampInfo(RowStampInfo rowStampInfo) |
void |
setTablesInHierarchyOrder(java.util.ArrayList<java.lang.String> tableNames)
Sets the list of table names in the hierarchy order from root to
leaf node.
|
void |
setTenantIdInfo(TenantIdInfo tenantIdInfo) |
getClonedInfo, getID, getParent, getReference, getReferenceForSet, isSameTenantAsReference, setID, setParent, setReference, setTenantReference
public static final java.lang.String CACHE_NAME
public java.util.HashMap<java.lang.String,ViewColumnInfo> getViewColumns()
public java.lang.String getViewFetchAttributeName(java.lang.String tbName, java.lang.String tbColName)
tbName
- Name of the underlying table.tbColName
- Name of the underlying table column.public java.lang.String getViewFetchAttributeName(java.lang.String viewColName)
tbColName
- Name of the view column.public void clearColumnInfo()
cleanNonAutoViews
.public void addColumnInfo(ViewColumnInfo viewColumnInfo)
viewColumnInfo
- view column information to be added.public void addTableInfo(java.lang.String tableName, TableInfo tableInfo)
tableName
- table name on which the view is based.tableInfo
- information about the table on which the view is based.public java.util.Iterator getTables()
getTables
in interface Entity
Entity.getTables()
public java.util.Iterator getTableInfos()
public int getTableCount()
getTableCount
in interface Entity
Entity.getTableCount()
public java.util.Iterator getEntityColumns()
getEntityColumns
in interface Entity
Entity.getEntityColumns()
public java.util.Iterator getColumns(java.lang.String tableName)
getColumns
in interface Entity
tableName
- a table name for which columns are needed.Entity.getColumns(java.lang.String)
public java.lang.String getTableName(java.lang.String entityColumnName)
getTableName
in interface Entity
entityColumnName
- column name of the viewEntity.getTableName(java.lang.String)
public java.lang.String getColumnName(java.lang.String entityColumnName)
getColumnName
in interface Entity
entityColumnName
- view column nameEntity.getColumnName(java.lang.String)
public java.lang.String getEntityColumnName(java.lang.String tableColumnName, java.lang.String tableName)
getEntityColumnName
in interface Entity
tableColumnName
- tableName
- Entity.getEntityColumnName(java.lang.String,
java.lang.String)
public java.util.Iterator getKeyColumns(java.lang.String tableName)
getKeyColumns
in interface Entity
Entity.getKeyColumns(java.lang.String)
public java.lang.String getAuditTable(java.lang.String tableName)
getAuditTable
in interface Entity
Entity.getAuditTable(java.lang.String)
public java.lang.String getLangColumnName(java.lang.String tableName)
getLangColumnName
in interface Entity
Entity.getLangColumnName(java.lang.String)
public java.util.HashMap<java.lang.String,java.lang.String> getOrphans(java.lang.String tableName)
tableName
- The underlying table in this view for which to check for orphans.public RowStampInfo getRowStampInfo()
getRowStampInfo
in interface Entity
Entity.getRowStampInfo()
public TenantIdInfo getTenantIdInfo()
Entity
getTenantIdInfo
in interface Entity
public java.lang.String getColumnName(java.lang.String entityColumnName, java.lang.String tableName)
getColumnName
in interface Entity
entityColumnName
- view column nametableName
- table nameEntity.getColumnName(java.lang.String,
java.lang.String)
public java.lang.String getViewName()
public boolean getAutoSelect()
public java.lang.String getViewSelect()
public void setTablesInHierarchyOrder(java.util.ArrayList<java.lang.String> tableNames)
tableNames
- list of table names in the hierarchy order
from root to leaf node. The element at index 0
indicates the table name of the top-most business
object and the last element indicates the table name
of the business object at the leaf node of the
hierarchy.public java.util.Iterator getTablesInHierarchyOrder()
getTablesInHierarchyOrder
in interface Entity
Entity.getTablesInHierarchyOrder()
public java.util.Iterator getTablesInReverseHierarchyOrder()
getTablesInReverseHierarchyOrder
in interface Entity
Entity.getTablesInReverseHierarchyOrder()
public void setTenantIdInfo(TenantIdInfo tenantIdInfo)
public void setRowStampInfo(RowStampInfo rowStampInfo)
public boolean hasRowStamp()
hasRowStamp
in interface Entity
Entity.hasRowStamp()
public boolean hasImplicitTenantId(java.lang.String tableName)
Entity
tableName
.hasImplicitTenantId
in interface Entity
public boolean hasImplicitTenantId()
Entity
hasImplicitTenantId
in interface Entity
public ViewInfoBase getTypedReference()
public ViewInfoBase getTypedReferenceForSet()
public boolean isTenantOwned()
public java.lang.String getCacheName()
getCacheName
in class CachedObjectPointer