interface UAKGCollection


Inheritance:


Public Fields

[more]readonly attribute string selectQueryText
[more]readonly attribute string selectDistinctQueryText
[more]readonly attribute string selectRangeQueryText
[more]readonly attribute string countQueryText
[more]readonly attribute string insertQueryText
[more]readonly attribute string removeAllQueryText
[more]readonly attribute string orderByText
[more]readonly attribute boolean sorted
true, is select collection is ordered

Public Methods

[more]RecordDescription getRecordDescription() raises(CosQuery::QueryProcessingError)
[more]void set_readonly(in boolean rdonly) raises(ReadOnlyCollection)
[more]boolean is_readonly()
[more]void add_record(in CosQueryCollection::Record element) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError, ReadOnlyCollection)
add record
[more]void add_records(in RC::RecordSeq elements) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError, ReadOnlyCollection)
add records
[more]void add_rc(in OctSeq rc) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError, ReadOnlyCollection)
add records coded in RC sequence
[more]unsigned long get_number_of_records() raises(CosQuery::QueryProcessingError)
return number of records in collection
[more]OctSeq retrieve_by_filter(in string where_filter) raises(CosQuery::QueryProcessingError)
retrieve records by filter.
[more]OctSeq retrieve_by_pattern(in CosQueryCollection::Record pattern) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid)
retrieve records by pattern.
[more]void update_by_pattern(in CosQueryCollection::Record newRecord, in CosQueryCollection::Record pattern ) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid, ReadOnlyCollection)
update records by pattern
[more]void update_by_filter( in CosQueryCollection::Record newRecord, in string filter ) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid, ReadOnlyCollection)
update records by filter
[more]void remove_all_records() raises(CosQuery::QueryProcessingError, ReadOnlyCollection)
remove all records from collection
[more]void remove_record(in CosQueryCollection::Record record_) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid, ReadOnlyCollection)
remove records with same value as <code> record_ </code>
[more]void remove_records_by_filter(in string filter) raises(CosQuery::QueryProcessingError, ReadOnlyCollection)
remove records with are satisficated to <code> filter </code>
[more]void remove_records_by_pattern(in CosQueryCollection::Record pattern) raises(CosQuery::QueryProcessingError, ReadOnlyCollection)
remove records with are match pattern <code> pattern </code>
[more]void sort(in string order_expression) raises(CosQuery::QueryProcessingError)
sort - set new order expression
[more]UAKGIterator create_iterator()
create iterator
[more]UAKGIterator create_iterator_by_pattern( in CosQueryCollection::Record pattern) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError)
create iterator which iterate records, matched for pattern
[more]UAKGCollection create_subcollection(in string subquery) raises(CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
[more]UAKGCollection create_subcollection_by_pattern( in CosQueryCollection::Record pattern) raises(CosQuery::QueryInvalid, CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid)
[more]unsigned long add_listener(in UAKGCollectionListener listener, in unsigned short eventMask)
add listener to collection events
[more]boolean remove_listener(in unsigned long listenerIndex)
remove listener
[more]void destroy()
destroy collection and free server resources, associated with this collection


Inherited from QueryEvaluator:

Public Methods

oOctSeq evaluate_rc(in string queryText, in string queryFlags, in RecordDescription recordDescription_, in OctSeq params) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
oRC::RecordSeq evaluate_records(in string queryText, in string queryFlags, in RecordDescription recordDescription_, in RC::RecordSeq params) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
oRC::RecordSeq evaluate_record(in string queryText, in string queryFlags, in RecordDescription recordDescription_, in CosQueryCollection::Record params) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
oOctSeq evaluate_rc_e(in string queryText, in string queryFlags) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
oRC::RecordSeq evaluate_records_e(in string queryText, in string queryFlags) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
oOctSeq evaluate_rc_inout(in string queryText, in string queryFlags, in RecordDescription recordDescription_, inout OctSeq params) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)
oRC::RecordSeq evaluate_records_inout(in string queryFlags, in string queryType, in RecordDescription recordDescription_, inout RC::RecordSeq params) raises(CosQuery::QueryTypeInvalid, CosQuery::QueryInvalid, CosQuery::QueryProcessingError)


Documentation

oreadonly attribute string selectQueryText

oreadonly attribute string selectDistinctQueryText

oreadonly attribute string selectRangeQueryText

oreadonly attribute string countQueryText

oreadonly attribute string insertQueryText

oreadonly attribute string removeAllQueryText

oreadonly attribute string orderByText

oRecordDescription getRecordDescription() raises(CosQuery::QueryProcessingError)

ovoid set_readonly(in boolean rdonly) raises(ReadOnlyCollection)

oboolean is_readonly()

oreadonly attribute boolean sorted
true, is select collection is ordered

ovoid add_record(in CosQueryCollection::Record element) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError, ReadOnlyCollection)
add record

ovoid add_records(in RC::RecordSeq elements) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError, ReadOnlyCollection)
add records

ovoid add_rc(in OctSeq rc) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError, ReadOnlyCollection)
add records coded in RC sequence

ounsigned long get_number_of_records() raises(CosQuery::QueryProcessingError)
return number of records in collection
Returns:
s number of records in collection

oOctSeq retrieve_by_filter(in string where_filter) raises(CosQuery::QueryProcessingError)
retrieve records by filter.
Parameters:
where-filter - : logical expression for selection of records to delete (in SQL-like DBs is context of where clause) TODO: what it return is it correct ?

oOctSeq retrieve_by_pattern(in CosQueryCollection::Record pattern) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid)
retrieve records by pattern.
Parameters:
- : pattern TODO: what it return is it correct ?

ovoid update_by_pattern(in CosQueryCollection::Record newRecord, in CosQueryCollection::Record pattern ) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid, ReadOnlyCollection)
update records by pattern
Parameters:
newRecord - -- new record instead pattern matched
pattern - -- pattern for matching

ovoid update_by_filter( in CosQueryCollection::Record newRecord, in string filter ) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid, ReadOnlyCollection)
update records by filter
Parameters:
newRecord - -- new record instead filter matched
filter - -- condition

ovoid remove_all_records() raises(CosQuery::QueryProcessingError, ReadOnlyCollection)
remove all records from collection

ovoid remove_record(in CosQueryCollection::Record record_) raises(CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid, ReadOnlyCollection)
remove records with same value as <code> record_ </code>
Parameters:
record_ - - value of record to be removed.

ovoid remove_records_by_filter(in string filter) raises(CosQuery::QueryProcessingError, ReadOnlyCollection)
remove records with are satisficated to <code> filter </code>
Parameters:
filter - - logical expression for selectiong removed records.

ovoid remove_records_by_pattern(in CosQueryCollection::Record pattern) raises(CosQuery::QueryProcessingError, ReadOnlyCollection)
remove records with are match pattern <code> pattern </code>
Parameters:
pattern - - pattern to match.

ovoid sort(in string order_expression) raises(CosQuery::QueryProcessingError)
sort - set new order expression
Parameters:
order_expressinon - - new expresiion for ORDER BY clause

oUAKGIterator create_iterator()
create iterator

oUAKGIterator create_iterator_by_pattern( in CosQueryCollection::Record pattern) raises(CosQueryCollection::ElementInvalid, CosQuery::QueryProcessingError)
create iterator which iterate records, matched for pattern

oUAKGCollection create_subcollection(in string subquery) raises(CosQuery::QueryInvalid, CosQuery::QueryProcessingError)

subquery must be specified in next form: <code> select <field_list> from <table_list> where <conditions> [order by <field_list>] </code>

oUAKGCollection create_subcollection_by_pattern( in CosQueryCollection::Record pattern) raises(CosQuery::QueryInvalid, CosQuery::QueryProcessingError, CosQueryCollection::ElementInvalid)

ounsigned long add_listener(in UAKGCollectionListener listener, in unsigned short eventMask)
add listener to collection events

oboolean remove_listener(in unsigned long listenerIndex)
remove listener

ovoid destroy()
destroy collection and free server resources, associated with this collection


Direct child classes:
UAKGKeyCollection

Alphabetic index



This page was generated with the help of DOC++.