Search in sources :

Example 11 with SequenceDescriptor

use of org.apache.derby.iapi.sql.dictionary.SequenceDescriptor in project derby by apache.

the class DataDictionaryImpl method getSequenceDescriptor.

public SequenceDescriptor getSequenceDescriptor(UUID uuid) throws StandardException {
    DataValueDescriptor UUIDStringOrderable;
    TabInfoImpl ti = getNonCoreTI(SYSSEQUENCES_CATALOG_NUM);
    /* Use UUIDStringOrderable in both start and stop position for
           * scan.
           */
    UUIDStringOrderable = getIDValueAsCHAR(uuid);
    /* Set up the start/stop position for the scan */
    ExecIndexRow keyRow = exFactory.getIndexableRow(1);
    keyRow.setColumn(1, UUIDStringOrderable);
    SequenceDescriptor sequenceDescriptor = getDescriptorViaIndex(SYSSEQUENCESRowFactory.SYSSEQUENCES_INDEX1_ID, keyRow, (ScanQualifier[][]) null, ti, (TupleDescriptor) null, (List<TupleDescriptor>) null, SequenceDescriptor.class, false);
    putSequenceID(sequenceDescriptor);
    return sequenceDescriptor;
}
Also used : TupleDescriptor(org.apache.derby.iapi.sql.dictionary.TupleDescriptor) DataValueDescriptor(org.apache.derby.iapi.types.DataValueDescriptor) SequenceDescriptor(org.apache.derby.iapi.sql.dictionary.SequenceDescriptor) ExecIndexRow(org.apache.derby.iapi.sql.execute.ExecIndexRow)

Aggregations

SequenceDescriptor (org.apache.derby.iapi.sql.dictionary.SequenceDescriptor)11 UUID (org.apache.derby.catalog.UUID)3 DataDictionary (org.apache.derby.iapi.sql.dictionary.DataDictionary)3 SchemaDescriptor (org.apache.derby.iapi.sql.dictionary.SchemaDescriptor)3 TupleDescriptor (org.apache.derby.iapi.sql.dictionary.TupleDescriptor)3 ExecIndexRow (org.apache.derby.iapi.sql.execute.ExecIndexRow)3 DataTypeDescriptor (org.apache.derby.iapi.types.DataTypeDescriptor)3 DataValueDescriptor (org.apache.derby.iapi.types.DataValueDescriptor)3 TypeDescriptor (org.apache.derby.catalog.TypeDescriptor)2 LanguageConnectionContext (org.apache.derby.iapi.sql.conn.LanguageConnectionContext)2 DataDescriptorGenerator (org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator)2 TransactionController (org.apache.derby.iapi.store.access.TransactionController)2 SQLChar (org.apache.derby.iapi.types.SQLChar)2 SQLVarchar (org.apache.derby.iapi.types.SQLVarchar)2 ArrayList (java.util.ArrayList)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 ColumnDescriptor (org.apache.derby.iapi.sql.dictionary.ColumnDescriptor)1 ColumnDescriptorList (org.apache.derby.iapi.sql.dictionary.ColumnDescriptorList)1 ConglomerateDescriptorList (org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptorList)1