Package hec.data.meta
Class CatalogTemplate
java.lang.Object
hec.data.meta.CatalogTemplate
- All Implemented Interfaces:
MetaCatalogQuery
,SqlQuery
,Serializable
- Direct Known Subclasses:
Catalog
Contains the meta data for a catalog object.
- See Also:
-
Field Summary
Fields inherited from interface hec.data.meta.MetaCatalogQuery
META_CATALOG, META_CATALOG_COLUMN_DESCRIPTION, META_CATALOG_COLUMN_NAME, META_CATALOG_COLUMNS, META_CATALOG_OBJECT_DESCRIPTION, META_CATALOG_OBJECT_NAME, META_CATALOG_ORDER_BY, META_CATALOG_ORDER_BY_STRING_ARRAY, META_CATALOG_VISIBLE_COLUMNS
Fields inherited from interface hec.data.meta.SqlQuery
AND, DISTINCT, EQUAL_TO, FROM, GREATER_THAN, GREATER_THAN_EQUAL_TO, LESS_THAN, LESS_THAN_EQUAL_TO, NOT_EQUAL_TO, OR, ORDER_BY, SELECT, UNDEFINED, UPPER, WHERE
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogTemplate
(CatalogTemplate catTemplate) CatalogTemplate
(String table, String[] columns, boolean[] visible, boolean distinct, Conditional conditional, OrderBy orderBy) CatalogTemplate
(String table, String[] columns, String[] columnNameHeaders, boolean[] visible, boolean distinct, Conditional conditional, OrderBy orderBy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOfficeIdConditional
(String officeId, String officeColumn) boolean
containsColumns
(String[] columns) int
getColumnIndex
(String columnName) Returns the column index for a given column name or -1 if the column is not in this catalog.String[]
String[]
Returns the column names for this catalog.boolean
static CatalogTemplate
int
getTable()
boolean[]
boolean
boolean
void
-
Constructor Details
-
CatalogTemplate
-
CatalogTemplate
public CatalogTemplate(String table, String[] columns, boolean[] visible, boolean distinct, Conditional conditional, OrderBy orderBy) throws SQLException - Throws:
SQLException
-
CatalogTemplate
public CatalogTemplate(String table, String[] columns, String[] columnNameHeaders, boolean[] visible, boolean distinct, Conditional conditional, OrderBy orderBy) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getMetaCatalogTemplate
-
getColumnNames
Returns the column names for this catalog. -
getColumnNameHeaders
-
getColumnIndex
Returns the column index for a given column name or -1 if the column is not in this catalog.- Parameters:
columnName
- a case insensitive String.- Returns:
- int index of the column, -1 if the column name is not found.
-
getOrderBy
-
getVisibleColumns
public boolean[] getVisibleColumns() -
getDistinct
public boolean getDistinct() -
getConditional
-
setConditional
-
addOfficeIdConditional
-
getTable
-
isDistinct
public boolean isDistinct() -
containsColumns
-
isMetaCatalogTemplate
public boolean isMetaCatalogTemplate() -
getNumColumns
public int getNumColumns() -
buildSqlQuery
- Specified by:
buildSqlQuery
in interfaceSqlQuery
-
buildSqlQuery
- Specified by:
buildSqlQuery
in interfaceSqlQuery
-