public final class ColumnDescriptor extends Object
Constructor and Description |
---|
ColumnDescriptor(AttributeValueTable avt,
LibrarySession session)
Constructs a ColumnDescriptor using a table containing the definitions.
|
ColumnDescriptor(LibrarySession session,
String colAlias,
String targAlias,
String className,
String attrName)
Constructs a ColumnDescriptor using
column alias, target (table) alias, ClassObject name, and Attribute name.
|
ColumnDescriptor(LibrarySession session,
String colAlias,
String targAlias,
String className,
String attrName,
String objIdAlias)
Constructs a ColumnDescriptor using
column alias, target (table) alias, ClassObject name, and Attribute name,
and an optional Object ID alias.
|
ColumnDescriptor(String colAlias,
String targAlias,
Attribute attr)
Constructs a ColumnDescriptor using
column alias, target (table) alias, and Attribute.
|
ColumnDescriptor(String colAlias,
String targAlias,
Attribute attr,
String objIdAlias)
Constructs a ColumnDescriptor using
column alias, target (table) alias, and Attribute,
and an optional Object ID alias.
|
ColumnDescriptor(String colAlias,
String qualColumn,
int dataType)
Constructs a ColumnDescriptor using
column alias, qualified column name, and data type.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAttributeId()
Gets the associated attribute ID for the selected column.
|
Long |
getClassId()
Gets Class ID for the selected column.
|
String |
getColumnAlias()
Gets the column alias name (used in AS clause).
|
int |
getDataType()
Gets the data type to use for the selected column.
|
long |
getObjectId(AttributeValueTable rowTable)
Gets the object ID for the specified row, using this
object's Object ID alias.
|
String |
getObjectIdAlias()
Gets the alias for the ColumnDescriptor that references the object ID
for the same search target as this column uses.
|
String |
getOriginalAttributeName()
Gets the original attribute name (specified during construction) to use
for the selected column.
|
String |
getOriginalClassName()
Gets the original class name (specified during construction) to use
for the selected column.
|
String |
getOriginalDataTypeString()
Gets the original data type label (specified during construction) to use
for the selected column.
|
String |
getOriginalQualifiedColumn()
Gets the original Column name (specified during construction)
qualified with the table/view alias, e.g.
|
String |
getOriginalSearchTargetAlias()
Gets the original search target alias (specified during construction) to use
for the selected column.
|
Long |
getPrimaryClassId()
Gets the class ID reflecting a ClassDomain setting (for SimpleObjects).
|
String |
getQualifiedColumn()
Gets the column name qualified with the table/view alias,
e.g.
|
String |
getTargetAlias()
Gets the target alias name.
|
boolean |
isLiteralQualifiedColumnSpecified()
Gets whether the qualified Column name was specified literally.
|
boolean |
isSelectLibaryObjectSpecified()
Gets whether the column represents a selected LibraryObject.
|
void |
overwriteQualifiedColumn(String qualColumn)
Overwrite the column name qualified with the specified String.
|
public ColumnDescriptor(AttributeValueTable avt, LibrarySession session) throws IfsException
avt
- the options tablesession
- the sesson contextIfsException
- if operation fails.public ColumnDescriptor(String colAlias, String qualColumn, int dataType) throws IfsException
colAlias
- the selected column alias (used in AS clause)qualColumn
- the column qualified with the table alias, e.g. "d.name"dataType
- the data type to use for the selected columnIfsException
- if operation fails.public ColumnDescriptor(String colAlias, String targAlias, Attribute attr) throws IfsException
colAlias
- the selected column alias (used in AS clause)targAlias
- the target alias containing the columnattr
- the Attribute that represents the column elementIfsException
- if operation fails.public ColumnDescriptor(String colAlias, String targAlias, Attribute attr, String objIdAlias) throws IfsException
colAlias
- the selected column alias (used in AS clause)targAlias
- the target alias containing the columnattr
- the Attribute that represents the column elementobjIdAlias
- the Object ID aliasIfsException
- if operation fails.public ColumnDescriptor(LibrarySession session, String colAlias, String targAlias, String className, String attrName) throws IfsException
session
- the sesson contextcolAlias
- the selected column alias (used in AS clause)targAlias
- the target alias containing the columnclassName
- the name of the class for the Attribute specifiedattrName
- the name of the specified AttributeIfsException
- if operation fails.public ColumnDescriptor(LibrarySession session, String colAlias, String targAlias, String className, String attrName, String objIdAlias) throws IfsException
session
- the sesson contextcolAlias
- the selected column alias (used in AS clause)targAlias
- the target alias containing the columnclassName
- the name of the class for the Attribute specifiedattrName
- the name of the specified AttributeobjIdAlias
- the Object ID aliasIfsException
- if operation fails.public String getOriginalQualifiedColumn() throws IfsException
IfsException
- if operation fails.public String getOriginalDataTypeString() throws IfsException
IfsException
- if operation fails.public String getOriginalClassName() throws IfsException
IfsException
- if operation fails.public String getOriginalAttributeName() throws IfsException
IfsException
- if operation fails.public String getOriginalSearchTargetAlias() throws IfsException
IfsException
- if operation fails.public String getColumnAlias() throws IfsException
IfsException
- if operation fails.public String getTargetAlias() throws IfsException
IfsException
- if operation fails.public String getQualifiedColumn() throws IfsException
IfsException
- if operation fails.public boolean isLiteralQualifiedColumnSpecified() throws IfsException
IfsException
- if operation fails.public boolean isSelectLibaryObjectSpecified() throws IfsException
IfsException
- if operation fails.public int getDataType() throws IfsException
IfsException
- if operation fails.public Long getClassId() throws IfsException
Specified during construction, using variants that indicate that the entire object should be selected.
IfsException
- if operation fails.public Long getAttributeId() throws IfsException
Specified during construction, using variants with an Attribute.
IfsException
- if operation fails.public Long getPrimaryClassId() throws IfsException
Specified during construction, using variants with an Attribute.
IfsException
- if operation fails.public String getObjectIdAlias() throws IfsException
Specified during construction, using variants with an Object ID alias.
IfsException
- if operation fails.public long getObjectId(AttributeValueTable rowTable) throws IfsException
rowTable
- the results for a selectred rowIfsException
- if operation fails.public void overwriteQualifiedColumn(String qualColumn) throws IfsException
Used in PreparedSelectorGenerator. Can only be used for instances that were constructed using a literal qualified column value.
qualColumn
- the new qualified column nameIfsException
- if operation fails.Copyright © 2023. All rights reserved.