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 | 
|---|---|
static ColumnDescriptor | 
createForClassID(String colAlias,
                String targAlias)
Constructs a ColumnDescriptor for the CLASSID of the specified target alias. 
 | 
static ColumnDescriptor | 
createForEntireLibraryObject(LibrarySession session,
                            String colAlias,
                            String targAlias,
                            String classObjName)
Constructs a ColumnDescriptor for selecting an entire object for 
 a primary or auxiliary search target that represents a ClassObject. 
 | 
static ColumnDescriptor | 
createForEntireLibraryObject(String colAlias,
                            String targAlias,
                            ClassObject classObj)
Constructs a ColumnDescriptor for selecting an entire object for 
 a primary or auxiliary search target that represents a ClassObject. 
 | 
static ColumnDescriptor | 
createForID(String colAlias,
           String targAlias)
Constructs a ColumnDescriptor for the ID of the specified target alias. 
 | 
static ColumnDescriptor | 
createForNonAttribute(String colAlias,
                     String qualColumn,
                     int dataType)
Constructs a ColumnDescriptor for non-Attributes. 
 | 
static ColumnDescriptor | 
createForNonScalarAttribute(LibrarySession session,
                           String colAlias,
                           String targAlias,
                           String className,
                           String attrName,
                           String objIdAlias)
Constructs a ColumnDescriptor for a non-scalar Attribute,
 currently Attribute's whose data type is an array or map type. 
 | 
static ColumnDescriptor | 
createForNonScalarAttribute(String colAlias,
                           String targAlias,
                           Attribute attr,
                           String objIdAlias)
Constructs a ColumnDescriptor for a non-scalar Attribute,
 currently Attribute's whose data type is an array or map type. 
 | 
static ColumnDescriptor | 
createForScalarAttribute(LibrarySession session,
                        String colAlias,
                        String targAlias,
                        String className,
                        String attrName)
Constructs a ColumnDescriptor for a scalar Attribute. 
 | 
static ColumnDescriptor | 
createForScalarAttribute(String colAlias,
                        String targAlias,
                        Attribute attr)
Constructs a ColumnDescriptor for a scalar Attribute. 
 | 
Attribute | 
getAttribute(LibrarySession sess)
Gets Attribute for the selected column, 
 when the instance represents a single Attribute to be selected. 
 | 
Long | 
getAttributeId()
Gets the associated attribute ID for the selected column. 
 | 
Long | 
getClassId()
Gets Class ID for the selected column. 
 | 
ClassObject | 
getClassObject(LibrarySession sess)
Gets ClassObject for the selected column, 
 when entire object should be selected. 
 | 
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. 
 | 
void | 
replaceAlias(String actualAlias)
Overwrite the qualified column to use the alias specified. 
 | 
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 static ColumnDescriptor createForScalarAttribute(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 static ColumnDescriptor createForScalarAttribute(LibrarySession session, String colAlias, String targAlias, String className, String attrName) throws IfsException
session - the session 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 static ColumnDescriptor createForID(String colAlias, String targAlias) throws IfsException
colAlias - the selected column alias (used in AS clause)targAlias - the target alias containing the ID columnIfsException - if operation fails.public static ColumnDescriptor createForClassID(String colAlias, String targAlias) throws IfsException
colAlias - the selected column alias (used in AS clause)targAlias - the target alias containing the CLASSID columnIfsException - if operation fails.public static ColumnDescriptor createForNonScalarAttribute(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 column alias used to select the ID of the object
                      containing the non-scalar AttributeIfsException - if operation fails.public static ColumnDescriptor createForNonScalarAttribute(LibrarySession session, String colAlias, String targAlias, String className, String attrName, String objIdAlias) throws IfsException
session - the session 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 column alias used to select the ID of the object
                      containing the non-scalar AttributeIfsException - if operation fails.public static ColumnDescriptor createForEntireLibraryObject(String colAlias, String targAlias, ClassObject classObj) throws IfsException
colAlias - the selected column alias (used in AS clause)targAlias - the alias for the primary/aux target being selectedclassObj - the ClassObjectIfsException - if operation fails.public static ColumnDescriptor createForEntireLibraryObject(LibrarySession session, String colAlias, String targAlias, String classObjName) throws IfsException
session - the session contextcolAlias - the selected column alias (used in AS clause)targAlias - the alias for the primary/aux target being selectedclassObjName - the ClassObject nameIfsException - if operation fails.public static ColumnDescriptor createForNonAttribute(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, examples: 
                      "d.name", 
                      "UPPER(ATTR{cat.CityName})"dataType - the data type to use for the selected columnIfsException - 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 ClassObject getClassObject(LibrarySession sess) throws IfsException
sess - the session contextIfsException - if operation fails.public Long getAttributeId() throws IfsException
Specified during construction, using variants with an Attribute.
IfsException - if operation fails.public Attribute getAttribute(LibrarySession sess) throws IfsException
sess - the session contextIfsException - 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.public void replaceAlias(String actualAlias) throws IfsException
Used when smart views are enabled. Can only be used for instances that were constructed using an Attribute.
actualAlias - the actual alias to useIfsException - if operation fails.Copyright © 2025. All rights reserved.