public class TempMetadataID extends Object implements Serializable, AbstractMetadataRecord.Modifiable, AbstractMetadataRecord.DataModifiable
Modifier and Type | Class and Description |
---|---|
static class |
TempMetadataID.TableData |
static class |
TempMetadataID.Type |
DATA_TTL
Constructor and Description |
---|
TempMetadataID(String ID,
Class<?> type)
Constructor for element form of metadata ID.
|
TempMetadataID(String ID,
Class<?> type,
Object metadataID)
Constructor for element form of metadata ID with the underlying element.
|
TempMetadataID(String ID,
List<TempMetadataID> elements)
Constructor for group form of metadata ID.
|
TempMetadataID(String ID,
List<TempMetadataID> elements,
TempMetadataID.Type type)
Constructor for group form of metadata ID.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addElement(TempMetadataID elem)
add a element to the temp table.
|
void |
addIndex(Object originalMetadataId,
List<TempMetadataID> index) |
void |
addUniqueKey(List<TempMetadataID> key) |
boolean |
equals(Object obj)
Compare this temp metadata ID with another object.
|
Collection<TempMetadataID> |
getAccessPatterns() |
CacheHint |
getCacheHint() |
long |
getCardinality() |
List<TempMetadataID> |
getElements()
Get elements - only valid for groups
|
String |
getID()
Get ID value
|
List<TempMetadataID> |
getIndexes() |
long |
getLastDataModification() |
long |
getLastModified() |
TempMetadataID.Type |
getMetadataType() |
String |
getName() |
Object |
getOriginalMetadataID() |
int |
getPosition() |
List<TempMetadataID> |
getPrimaryKey() |
QueryNode |
getQueryNode() |
TempMetadataID.TableData |
getTableData() |
Class<?> |
getType()
Get type - only valid for elements
|
List<List<TempMetadataID>> |
getUniqueKeys() |
int |
hashCode()
Return hash code
|
boolean |
isAccessed() |
boolean |
isAutoIncrement() |
boolean |
isNotNull() |
boolean |
isScalarGroup() |
boolean |
isTempTable()
Whether it is a temporary table
|
boolean |
isUpdatable() |
boolean |
isVirtual()
Check whether this group is virtual
|
void |
setAccessed(boolean accessed) |
void |
setAccessPatterns(Collection<TempMetadataID> accessPatterns) |
void |
setAutoIncrement(boolean autoIncrement) |
void |
setCacheHint(CacheHint cacheHint) |
void |
setCardinality(long cardinality) |
void |
setMetadataType(TempMetadataID.Type metadataType) |
void |
setNotNull(boolean notNull) |
void |
setOriginalMetadataID(Object metadataId) |
void |
setPosition(int position) |
void |
setPrimaryKey(List<TempMetadataID> primaryKey) |
void |
setQueryNode(QueryNode queryNode) |
void |
setTempTable(boolean isTempTable) |
void |
setUpdatable(boolean updatable) |
String |
toString()
Return string representation of ID
|
public TempMetadataID(String ID, List<TempMetadataID> elements)
ID
- Fully-qualified, upper-case name of IDelements
- List of TempMetadataID representing elementspublic TempMetadataID(String ID, List<TempMetadataID> elements, TempMetadataID.Type type)
ID
- Fully-qualified, upper-case name of IDelements
- List of TempMetadataID representing elementsisVirtual
- whether or not the group is a virtual grouppublic TempMetadataID(String ID, Class<?> type)
ID
- Fully-qualified, upper-case name of IDtype
- Type of elements List of TempMetadataID representing elementspublic TempMetadataID(String ID, Class<?> type, Object metadataID)
ID
- Fully-qualified, upper-case name of IDtype
- Type of elements List of TempMetadataID representing elementsmetadataID
- the orginal metadataIDpublic long getLastDataModification()
getLastDataModification
in interface AbstractMetadataRecord.DataModifiable
public long getLastModified()
getLastModified
in interface AbstractMetadataRecord.Modifiable
public String getID()
public Class<?> getType()
public List<TempMetadataID> getElements()
protected void addElement(TempMetadataID elem)
elem
- public boolean isVirtual()
public boolean isTempTable()
public String toString()
public boolean equals(Object obj)
public int hashCode()
public void setOriginalMetadataID(Object metadataId)
public Object getOriginalMetadataID()
public Collection<TempMetadataID> getAccessPatterns()
public void setAccessPatterns(Collection<TempMetadataID> accessPatterns)
public long getCardinality()
public void setCardinality(long cardinality)
public void setTempTable(boolean isTempTable)
public boolean isScalarGroup()
public void setMetadataType(TempMetadataID.Type metadataType)
public TempMetadataID.Type getMetadataType()
public List<TempMetadataID> getPrimaryKey()
public void setPrimaryKey(List<TempMetadataID> primaryKey)
public int getPosition()
public void setPosition(int position)
public QueryNode getQueryNode()
public void setQueryNode(QueryNode queryNode)
public CacheHint getCacheHint()
public void setCacheHint(CacheHint cacheHint)
public List<TempMetadataID> getIndexes()
public void addIndex(Object originalMetadataId, List<TempMetadataID> index)
public List<List<TempMetadataID>> getUniqueKeys()
public void addUniqueKey(List<TempMetadataID> key)
public TempMetadataID.TableData getTableData()
public boolean isAutoIncrement()
public void setAutoIncrement(boolean autoIncrement)
public boolean isNotNull()
public void setNotNull(boolean notNull)
public void setUpdatable(boolean updatable)
public boolean isUpdatable()
public String getName()
public void setAccessed(boolean accessed)
public boolean isAccessed()
Copyright © 2018 JBoss by Red Hat. All rights reserved.