GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
EDC_FIND
+
Point of view
All features
ANY
All features
class EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
Summary
top
Direct parents
Inherit list:
EDC_FETCH
Class invariant
top
actual_descriptor
options /= Void
Overview
top
Creation features
{
EDC_DESCRIPTOR
}
make
(a_pk: K_, a_options:
EDC_QUERY_OPTION
)
Features
{
ANY
}
list
(session:
EDC_SESSION
): TRAVERSABLE[R_]
{}
make
(a_pk: K_, a_options:
EDC_QUERY_OPTION
)
{}
data_to_record
(data:
FAST_ARRAY
[
EDC_SESSION_DATA
]): FAST_ARRAY[R_]
{}
actual_descriptor
:
BOOLEAN
descriptor
: D_
{}
_inline_agent3
(d:
EDC_SESSION_DATA
, r: R_):
BOOLEAN
{
ANY
}
options
:
EDC_QUERY_OPTION
{}
_inline_agent2
(record: R_, s:
EDC_SESSION
):
BOOLEAN
{
ANY
}
where
(crit:
EDC_CRITERION
): EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
having
(crit:
EDC_CRITERION
): EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
order_by
(crit:
EDC_ORDERING
): EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
has_where
:
BOOLEAN
has_having
:
BOOLEAN
has_order_by
:
BOOLEAN
{}
crit_where
:
EDC_CRITERION
crit_having
:
EDC_CRITERION
crit_order_by
:
EDC_ORDERING
list
(session:
EDC_SESSION
): TRAVERSABLE[R_]
effective function
{
ANY
}
top
require
session.is_open
options.valid_session(session)
ensure
Result.count.in_range(0, 1)
Result.for_all(_inline_agent2(, session))
make
(a_pk: K_, a_options:
EDC_QUERY_OPTION
)
effective procedure
{}
top
require
a_options /= Void
ensure
options
= a_options
data_to_record
(data:
FAST_ARRAY
[
EDC_SESSION_DATA
]): FAST_ARRAY[R_]
effective function
{}
top
require
data /= Void
ensure
(create {
ZIP
}.make(data, Result)).for_all(
_inline_agent3
(, ))
actual_descriptor
:
BOOLEAN
effective function
{}
top
descriptor
: D_
writable attribute
{}
top
_inline_agent3
(d:
EDC_SESSION_DATA
, r: R_):
BOOLEAN
frozen
effective function
{}
top
options
:
EDC_QUERY_OPTION
writable attribute
{
ANY
}
top
_inline_agent2
(record: R_, s:
EDC_SESSION
):
BOOLEAN
frozen
effective function
{}
top
where
(crit:
EDC_CRITERION
): EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
effective function
{
ANY
}
top
require
not
has_where
crit /= Void
ensure
has_where
crit_where
= crit
Result = Current
having
(crit:
EDC_CRITERION
): EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
effective function
{
ANY
}
top
require
not
has_having
crit /= Void
ensure
has_having
crit_having
= crit
Result = Current
order_by
(crit:
EDC_ORDERING
): EDC_FIND [D_ -> EDC_TYPED_DESCRIPTOR[R_, K_], R_ ->
EDC_RECORD
, K_ ->
TUPLE
]
effective function
{
ANY
}
top
require
not
has_order_by
crit /= Void
ensure
has_order_by
crit_order_by
= crit
Result = Current
has_where
:
BOOLEAN
effective function
{
ANY
}
top
ensure
definition:
Result =
crit_where
/= Void
has_having
:
BOOLEAN
effective function
{
ANY
}
top
ensure
definition:
Result =
crit_having
/= Void
has_order_by
:
BOOLEAN
effective function
{
ANY
}
top
ensure
definition:
Result =
crit_order_by
/= Void
crit_where
:
EDC_CRITERION
writable attribute
{}
top
crit_having
:
EDC_CRITERION
writable attribute
{}
top
crit_order_by
:
EDC_ORDERING
writable attribute
{}
top