public class SYSCOLUMNSRowFactory extends CatalogRowFactory
Modifier and Type | Field | Description |
---|---|---|
private DataDictionary |
dataDictionary |
|
private static int[][] |
indexColumnPositions |
|
protected static int |
SYSCOLUMNS_AUTOINCREMENTINC |
|
protected static int |
SYSCOLUMNS_AUTOINCREMENTINCCYCLE |
|
protected static int |
SYSCOLUMNS_AUTOINCREMENTSTART |
|
protected static int |
SYSCOLUMNS_AUTOINCREMENTVALUE |
|
protected static int |
SYSCOLUMNS_COLUMN_COUNT |
|
protected static int |
SYSCOLUMNS_COLUMNDATATYPE |
|
protected static int |
SYSCOLUMNS_COLUMNDEFAULT |
|
protected static int |
SYSCOLUMNS_COLUMNDEFAULTID |
|
protected static int |
SYSCOLUMNS_COLUMNNAME |
|
protected static int |
SYSCOLUMNS_COLUMNNUMBER |
|
protected static int |
SYSCOLUMNS_INDEX1_ID |
|
protected static int |
SYSCOLUMNS_INDEX2_ID |
|
protected static int |
SYSCOLUMNS_REFERENCEID |
|
protected static int |
SYSCOLUMNS_TABLEID |
|
(package private) static java.lang.String |
TABLENAME_STRING |
|
private static boolean[] |
uniqueness |
|
private static java.lang.String[] |
uuids |
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
Constructor | Description |
---|---|
SYSCOLUMNSRowFactory(DataDictionary dd,
UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf) |
|
SYSCOLUMNSRowFactory(DataDictionary dd,
UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf,
java.lang.String myName) |
Modifier and Type | Method | Description |
---|---|---|
SystemColumn[] |
buildColumnList() |
Builds a list of columns suitable for creating this Catalog.
|
TupleDescriptor |
buildDescriptor(ExecRow row,
TupleDescriptor parentTupleDescriptor,
DataDictionary dd) |
Make a ColumnDescriptor out of a SYSCOLUMNS row
|
java.util.Properties |
getCreateHeapProperties() |
Get the Properties associated with creating the heap.
|
java.util.Properties |
getCreateIndexProperties(int indexNumber) |
Get the Properties associated with creating the specified index.
|
int |
getHeapColumnCount() |
Get the number of columns in the heap.
|
int |
getPrimaryKeyIndexNumber() |
Get the index number for the primary key index on this catalog.
|
ExecRow |
makeEmptyRowForCurrentVersion() |
Create an empty row for this conglomerate, in the format that would
be used in a database that was created with, or hard upgraded to,
the currently running version.
|
private ExecRow |
makeRow(TupleDescriptor td,
int columnCount) |
|
ExecRow |
makeRow(TupleDescriptor td,
TupleDescriptor parent) |
Make a SYSCOLUMNS row
|
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getDataValueFactory, getExecutionFactory, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow
static final java.lang.String TABLENAME_STRING
protected static final int SYSCOLUMNS_COLUMN_COUNT
protected static final int SYSCOLUMNS_TABLEID
protected static final int SYSCOLUMNS_REFERENCEID
protected static final int SYSCOLUMNS_COLUMNNAME
protected static final int SYSCOLUMNS_COLUMNNUMBER
protected static final int SYSCOLUMNS_COLUMNDATATYPE
protected static final int SYSCOLUMNS_COLUMNDEFAULT
protected static final int SYSCOLUMNS_COLUMNDEFAULTID
protected static final int SYSCOLUMNS_AUTOINCREMENTVALUE
protected static final int SYSCOLUMNS_AUTOINCREMENTSTART
protected static final int SYSCOLUMNS_AUTOINCREMENTINC
protected static final int SYSCOLUMNS_AUTOINCREMENTINCCYCLE
protected static final int SYSCOLUMNS_INDEX1_ID
protected static final int SYSCOLUMNS_INDEX2_ID
private static final boolean[] uniqueness
private static final java.lang.String[] uuids
private static final int[][] indexColumnPositions
private final DataDictionary dataDictionary
SYSCOLUMNSRowFactory(DataDictionary dd, UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
SYSCOLUMNSRowFactory(DataDictionary dd, UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf, java.lang.String myName)
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
makeRow
in class CatalogRowFactory
StandardException
- thrown on failurepublic ExecRow makeEmptyRowForCurrentVersion() throws StandardException
CatalogRowFactory
Create an empty row for this conglomerate, in the format that would be used in a database that was created with, or hard upgraded to, the currently running version. That is, even if the database is only soft-upgraded, this method should return a row in the new format.
This method is for use in code that creates the catalogs, or that
upgrades the format of the catalogs to the newest version. Other code
should call CatalogRowFactory.makeEmptyRow()
, which returns a row in the format
used in the old database version if the database is soft-upgraded.
makeEmptyRowForCurrentVersion
in class CatalogRowFactory
StandardException
- if an error happens when creating the rowprivate ExecRow makeRow(TupleDescriptor td, int columnCount) throws StandardException
StandardException
public java.util.Properties getCreateHeapProperties()
getCreateHeapProperties
in class CatalogRowFactory
public java.util.Properties getCreateIndexProperties(int indexNumber)
getCreateIndexProperties
in class CatalogRowFactory
indexNumber
- The specified index number.public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException
buildDescriptor
in class CatalogRowFactory
row
- a SYSCOLUMNS rowparentTupleDescriptor
- The UniqueTupleDescriptor for the object that is tied
to this columndd
- dataDictionaryStandardException
- thrown on failurepublic int getPrimaryKeyIndexNumber()
getPrimaryKeyIndexNumber
in class CatalogRowFactory
public SystemColumn[] buildColumnList() throws StandardException
buildColumnList
in class CatalogRowFactory
StandardException
public int getHeapColumnCount() throws StandardException
CatalogRowFactory
getHeapColumnCount
in class CatalogRowFactory
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.