3 |
# $Id$ |
# $Id$ |
4 |
# |
# |
5 |
# $Log$ |
# $Log$ |
6 |
|
# Revision 1.47 2004/08/31 14:26:08 jonen |
7 |
|
# updated |
8 |
|
# |
9 |
|
# Revision 1.46 2004/05/06 12:54:34 jonen |
10 |
|
# + bugfix related to multiple select-'filter' |
11 |
|
# |
12 |
# Revision 1.45 2003/12/14 01:48:36 jonen |
# Revision 1.45 2003/12/14 01:48:36 jonen |
13 |
# small HACK at _insertChildNode: some special Childnodes should not be created because existing objects have to be selected! |
# small HACK at _insertChildNode: some special Childnodes should not be created because existing objects have to be selected! |
14 |
# TODO: make this more generic, e.g. implement a special flag at Schema |
# TODO: make this more generic, e.g. implement a special flag at Schema |
535 |
my @results; |
my @results; |
536 |
$logger->debug( __PACKAGE__ . "->getListFiltered( nodename => '" . $in->{nodename} . "' )" ); |
$logger->debug( __PACKAGE__ . "->getListFiltered( nodename => '" . $in->{nodename} . "' )" ); |
537 |
|
|
538 |
#print Dumper($filters); |
#print "Filter_payload: " . Dumper($in->{filters}) . "\n"; |
539 |
|
|
540 |
# 1. "Remote Object Handle" - get set of objects from odbms by object name |
# 1. "Remote Object Handle" - get set of objects from odbms by object name |
541 |
my $remote = $self->{_COREHANDLE}->remote($in->{nodename}); |
my $remote = $self->{_COREHANDLE}->remote($in->{nodename}); |
591 |
$orm_filter_tmp = $left->$op($right); |
$orm_filter_tmp = $left->$op($right); |
592 |
} |
} |
593 |
|
|
594 |
if (not $orm_filter) { |
if (!ref($orm_filter)) { |
595 |
$orm_filter = $orm_filter_tmp; |
$orm_filter = $orm_filter_tmp; |
596 |
} else { |
} else { |
597 |
$orm_filter = $orm_filter->and($orm_filter_tmp); |
$orm_filter = $orm_filter->and($orm_filter_tmp); |
600 |
} |
} |
601 |
|
|
602 |
$orm_query->{filter} = $orm_filter; |
$orm_query->{filter} = $orm_filter; |
603 |
|
|
604 |
|
# debug point: |
605 |
|
#print "Filter: " . Dumper($orm_query->{filter}) . "\n"; |
606 |
|
|
607 |
# was: |
# was: |
608 |
|
|
844 |
my $object = $cursor->getNextEntry(); |
my $object = $cursor->getNextEntry(); |
845 |
|
|
846 |
$self->erase($object); |
$self->erase($object); |
847 |
|
$self->unload($object); |
848 |
|
|
849 |
} elsif ($crud eq 'CREATE') { |
} elsif ($crud eq 'CREATE') { |
850 |
|
|
1039 |
# because they maybe exists and should only be SETTED not CREATED! |
# because they maybe exists and should only be SETTED not CREATED! |
1040 |
# TODO: Create a flag at the scheme for that reason! |
# TODO: Create a flag at the scheme for that reason! |
1041 |
# (e.g child_node => 1 for child-nodes only like e.g. UserData) |
# (e.g child_node => 1 for child-nodes only like e.g. UserData) |
1042 |
if($attr_options->{$_}->{class} eq 'NetPerson' || $attr_options->{$_}->{class} eq 'Event') { |
if($attr_options->{$_}->{class} eq 'NetPerson' || $attr_options->{$_}->{class} eq 'Event' || $attr_options->{$_}->{class} eq 'BetRule') { |
1043 |
#$obj->{$_} = undef(); |
#$obj->{$_} = undef(); |
1044 |
} else { |
} else { |
1045 |
$obj->{$_} = $self->createNode($attr_options->{$_}->{class}); |
$obj->{$_} = $self->createNode($attr_options->{$_}->{class}); |