quick retrieval help

[prev] [thread] [next] [Date index for 2005/01/13]

From: Hartmaier Alexander
Subject: quick retrieval help
Date: 15:27 on 13 Jan 2005
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4F984.6D4B5D09
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi!

=20

I have to fetch a lot of records from my db and want to use the way
described 'quick retrieval'.

=20

I added

__PACKAGE__->add_constructor(down =3D> '__IDENTIFIER__ IN (SELECT
__IDENTIFIER__ FROM nacadm.view_down_interfaces)');

to the object NAC::Interface.

=20

My code looks like this:

=20

my $sth_int_down =3D NAC::Interface->sql_down();

$sth_int_down->execute();

$hash =3D $sth_int_down->fetchall_hash();

map NAC::Interface->construct($_), $sth_int_down->fetchall_hash;

=20

I don't know how to use the last line (from the docs).

Can someone show me an example?

How can I iterate over the fetched objects?

=20

Thanks!

=20

With kind regards

Alexander Hartmaier

=20

T-Systems Austria GesmbH

Rennweg 97-99 1030 Wien

=20

phone: +43 57057-4320

fax: +43 57057-95-4320

mobile: +43 676 8642 4320

mail: alexander.hartmaier@xxxxxxxxx.xx

internet: http://www.t-systems.at <http://www.t-systems.at/>=20

=20

=20


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*"*
Hinweis: Dieses E-mail kann vertrauliche und gesch=FCtzte Informationen e=
nthalten.
Sollten Sie nicht der beabsichtigte Empf=E4nger sein, verst=E4ndigen Sie =
bitte den Absender und l=F6schen Sie dieses E-mail dann sofort.

Notice: This e-mail contains information that is confidential and may be =
privileged.
If you are not the intended recipient, please notify the sender and then =
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*"*

------_=_NextPart_001_01C4F984.6D4B5D09
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-mi=
crosoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:wo=
rd" xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" xmlns=3D"htt=
p://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-asci=
i">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<title>Briefvorlage</title>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttag=
s"
 name=3D"country-region"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttag=
s"
 name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:TeleLogo;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tele-Antiqua;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tele-GroteskNor;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tele-GroteskFet;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tele-GroteskHal;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tele-GroteskUlt;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
h1
	{margin-top:18.0pt;
	margin-right:0cm;
	margin-bottom:12.0pt;
	margin-left:41.1pt;
	text-indent:-34.0pt;
	page-break-after:avoid;
	mso-list:l4 level1 lfo1;
	font-size:20.0pt;
	font-family:Tele-GroteskFet;
	font-weight:normal;}
h2
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:24.0pt;
	margin-left:52.45pt;
	text-indent:-45.35pt;
	page-break-after:avoid;
	mso-list:l4 level2 lfo1;
	font-size:18.0pt;
	font-family:Tele-GroteskFet;
	font-weight:normal;}
h3
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:60.95pt;
	margin-bottom:.0001pt;
	text-indent:-53.85pt;
	page-break-after:avoid;
	mso-list:l4 level3 lfo1;
	font-size:16.0pt;
	font-family:Tele-GroteskFet;
	color:black;
	font-weight:normal;}
h4
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:43.2pt;
	margin-bottom:.0001pt;
	text-indent:-43.2pt;
	page-break-after:avoid;
	mso-list:l4 level4 lfo1;
	font-size:14.0pt;
	font-family:Tele-GroteskFet;
	color:black;
	font-weight:normal;}
h5
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:50.4pt;
	text-indent:-50.4pt;
	mso-list:l4 level5 lfo1;
	font-size:14.0pt;
	font-family:Tele-GroteskHal;
	font-weight:normal;}
h6
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:57.6pt;
	text-indent:-57.6pt;
	mso-list:l4 level6 lfo1;
	font-size:12.0pt;
	font-family:Tele-GroteskFet;
	font-weight:normal;}
p.MsoHeading7, li.MsoHeading7, div.MsoHeading7
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:64.8pt;
	text-indent:-64.8pt;
	mso-list:l4 level7 lfo1;
	font-size:12.0pt;
	font-family:Tele-GroteskHal;}
p.MsoHeading8, li.MsoHeading8, div.MsoHeading8
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:72.0pt;
	text-indent:-72.0pt;
	mso-list:l4 level8 lfo1;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoHeading9, li.MsoHeading9, div.MsoHeading9
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:79.2pt;
	text-indent:-79.2pt;
	mso-list:l4 level9 lfo1;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoIndex1, li.MsoIndex1, div.MsoIndex1
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:12.0pt;
	margin-bottom:.0001pt;
	text-indent:-12.0pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc1, li.MsoToc1, div.MsoToc1
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:14.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc2, li.MsoToc2, div.MsoToc2
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:12.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc3, li.MsoToc3, div.MsoToc3
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:24.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc4, li.MsoToc4, div.MsoToc4
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:36.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc5, li.MsoToc5, div.MsoToc5
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:48.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc6, li.MsoToc6, div.MsoToc6
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:60.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc7, li.MsoToc7, div.MsoToc7
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:72.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc8, li.MsoToc8, div.MsoToc8
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:84.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToc9, li.MsoToc9, div.MsoToc9
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:96.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoIndexHeading, li.MsoIndexHeading, div.MsoIndexHeading
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskUlt;
	font-weight:bold;}
p.MsoEnvelopeAddress, li.MsoEnvelopeAddress, div.MsoEnvelopeAddress
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:.05pt;
	margin-bottom:.0001pt;
	mso-element:frame;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoEnvelopeReturn, li.MsoEnvelopeReturn, div.MsoEnvelopeReturn
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
span.MsoFootnoteReference
	{font-family:Tele-GroteskNor;
	vertical-align:super;}
span.MsoCommentReference
	{font-family:Tele-GroteskNor;}
span.MsoLineNumber
	{font-family:Tele-GroteskNor;}
span.MsoPageNumber
	{font-family:Tele-GroteskNor;}
span.MsoEndnoteReference
	{font-family:Tele-GroteskNor;
	vertical-align:super;}
p.MsoMacroText, li.MsoMacroText, div.MsoMacroText
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:Tele-GroteskNor;}
p.MsoToaHeading, li.MsoToaHeading, div.MsoToaHeading
	{margin-top:6.0pt;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoListBullet, li.MsoListBullet, div.MsoListBullet
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:21.25pt;
	margin-bottom:.0001pt;
	text-indent:-21.25pt;
	mso-list:l3 level1 lfo2;
	mso-element:frame;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoListBullet2, li.MsoListBullet2, div.MsoListBullet2
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:45.35pt;
	margin-bottom:.0001pt;
	text-indent:-21.25pt;
	mso-list:l5 level1 lfo3;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoListBullet3, li.MsoListBullet3, div.MsoListBullet3
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:72.3pt;
	margin-bottom:.0001pt;
	text-indent:-24.1pt;
	mso-list:l2 level1 lfo4;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoListBullet4, li.MsoListBullet4, div.MsoListBullet4
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:96.4pt;
	margin-bottom:.0001pt;
	text-indent:-24.1pt;
	mso-list:l1 level1 lfo5;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoListBullet5, li.MsoListBullet5, div.MsoListBullet5
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:123.3pt;
	margin-bottom:.0001pt;
	text-indent:-24.05pt;
	mso-list:l0 level1 lfo6;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
	{margin-top:12.0pt;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:7.1pt;
	text-align:center;
	font-size:22.0pt;
	font-family:Tele-Antiqua;
	color:gray;}
p.MsoMessageHeader, li.MsoMessageHeader, div.MsoMessageHeader
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:2.0cm;
	margin-bottom:.0001pt;
	text-indent:-2.0cm;
	background:#CCCCCC;
	border:none;
	padding:0cm;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
p.MsoSubtitle, li.MsoSubtitle, div.MsoSubtitle
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:3.0pt;
	margin-left:7.1pt;
	text-align:center;
	font-size:12.0pt;
	font-family:Tele-GroteskHal;}
p.MsoBlockText, li.MsoBlockText, div.MsoBlockText
	{margin-top:0cm;
	margin-right:1.15pt;
	margin-bottom:0cm;
	margin-left:27.0pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
a:link, span.MsoHyperlink
	{font-family:Tele-GroteskNor;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{font-family:Tele-GroteskNor;
	color:purple;
	text-decoration:underline;}
strong
	{font-family:Tele-GroteskFet;}
em
	{font-family:Tele-GroteskUlt;
	font-style:normal;}
p.MsoDocumentMap, li.MsoDocumentMap, div.MsoDocumentMap
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	background:navy;
	font-size:12.0pt;
	font-family:Tele-GroteskUlt;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:Tele-GroteskNor;}
p
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;}
acronym
	{font-family:Tele-GroteskNor;}
address
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:7.1pt;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:Tele-GroteskNor;
	font-style:normal;
	text-decoration:underline;}
code
	{font-family:Tele-GroteskNor;}
dfn
	{font-family:Tele-GroteskNor;
	font-style:normal;}
samp
	{font-family:Tele-GroteskNor;}
tt
	{font-family:Tele-GroteskNor;}
span.E-MailFormatvorlage35
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
 /* Page Definitions */
 @page
	{mso-endnote-separator:url("cid:header.htm\@01C4F98C.D1CD3200") es;
	mso-endnote-continuation-separator:url("cid:header.htm\@01C4F98C.D1CD320=
0") ecs;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:99.25pt 2.0cm 70.9pt 2.0cm;
	mso-footer:url("cid:header.htm\@01C4F98C.D1CD3200") f1;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:-128;
	mso-list-type:simple;
	mso-list-template-ids:-1158138250;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-style-link:"Aufz\00E4hlungszeichen 5";
	mso-level-text:\F06E;
	mso-level-tab-stop:123.3pt;
	mso-level-number-position:left;
	margin-left:123.3pt;
	text-indent:-24.05pt;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;
	color:#FF0066;
	text-underline:#FF0066;}
@list l1
	{mso-list-id:-127;
	mso-list-type:simple;
	mso-list-template-ids:787791588;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-style-link:"Aufz\00E4hlungszeichen 4";
	mso-level-text:\F06E;
	mso-level-tab-stop:96.4pt;
	mso-level-number-position:left;
	margin-left:96.4pt;
	text-indent:-24.1pt;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;
	color:#FF0066;
	text-underline:#FF0066;}
@list l2
	{mso-list-id:-126;
	mso-list-type:simple;
	mso-list-template-ids:-652344512;}
@list l2:level1
	{mso-level-number-format:bullet;
	mso-level-style-link:"Aufz\00E4hlungszeichen 3";
	mso-level-text:\F06E;
	mso-level-tab-stop:72.3pt;
	mso-level-number-position:left;
	margin-left:72.3pt;
	text-indent:-24.1pt;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;
	color:#FF0066;
	text-underline:#FF0066;}
@list l3
	{mso-list-id:-119;
	mso-list-type:simple;
	mso-list-template-ids:1638926230;}
@list l3:level1
	{mso-level-number-format:bullet;
	mso-level-style-link:Aufz\00E4hlungszeichen;
	mso-level-text:\F06E;
	mso-level-tab-stop:21.25pt;
	mso-level-number-position:left;
	margin-left:21.25pt;
	text-indent:-21.25pt;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;
	color:#FF0066;
	text-underline:#FF0066;}
@list l4
	{mso-list-id:1644121226;
	mso-list-template-ids:67567653;}
@list l4:level1
	{mso-level-style-link:"\00DCberschrift 1";
	mso-level-text:%1;
	mso-level-tab-stop:21.6pt;
	mso-level-number-position:left;
	margin-left:21.6pt;
	text-indent:-21.6pt;}
@list l4:level2
	{mso-level-style-link:"\00DCberschrift 2";
	mso-level-text:"%1\.%2";
	mso-level-tab-stop:28.8pt;
	mso-level-number-position:left;
	margin-left:28.8pt;
	text-indent:-28.8pt;}
@list l4:level3
	{mso-level-style-link:"\00DCberschrift 3";
	mso-level-text:"%1\.%2\.%3";
	mso-level-tab-stop:36.0pt;
	mso-level-number-position:left;
	margin-left:36.0pt;
	text-indent:-36.0pt;}
@list l4:level4
	{mso-level-style-link:"\00DCberschrift 4";
	mso-level-text:"%1\.%2\.%3\.%4";
	mso-level-tab-stop:43.2pt;
	mso-level-number-position:left;
	margin-left:43.2pt;
	text-indent:-43.2pt;}
@list l4:level5
	{mso-level-style-link:"\00DCberschrift 5";
	mso-level-text:"%1\.%2\.%3\.%4\.%5";
	mso-level-tab-stop:50.4pt;
	mso-level-number-position:left;
	margin-left:50.4pt;
	text-indent:-50.4pt;}
@list l4:level6
	{mso-level-style-link:"\00DCberschrift 6";
	mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
	mso-level-tab-stop:57.6pt;
	mso-level-number-position:left;
	margin-left:57.6pt;
	text-indent:-57.6pt;}
@list l4:level7
	{mso-level-style-link:"\00DCberschrift 7";
	mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
	mso-level-tab-stop:64.8pt;
	mso-level-number-position:left;
	margin-left:64.8pt;
	text-indent:-64.8pt;}
@list l4:level8
	{mso-level-style-link:"\00DCberschrift 8";
	mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
	mso-level-tab-stop:72.0pt;
	mso-level-number-position:left;
	margin-left:72.0pt;
	text-indent:-72.0pt;}
@list l4:level9
	{mso-level-style-link:"\00DCberschrift 9";
	mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
	mso-level-tab-stop:79.2pt;
	mso-level-number-position:left;
	margin-left:79.2pt;
	text-indent:-79.2pt;}
@list l5
	{mso-list-id:1646740094;
	mso-list-type:hybrid;
	mso-list-template-ids:1671064250 -946445812 67567619 67567621 67567617 6=
7567619 67567621 67567617 67567619 67567621;}
@list l5:level1
	{mso-level-number-format:bullet;
	mso-level-style-link:"Aufz&auml;hlungszeichen 2";
	mso-level-text:\F06E;
	mso-level-tab-stop:45.35pt;
	mso-level-number-position:left;
	margin-left:45.35pt;
	text-indent:-21.25pt;
	mso-ansi-font-size:10.0pt;
	font-family:Wingdings;
	color:#FF0066;
	text-underline:#FF0066;}
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DDE link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'>Hi!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size=
:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>I have to fetch a lot of records from my db and=
 want
to use the way described &#8216;quick retrieval&#8217;.<o:p></o:p></span>=
</font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>I added<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>__PACKAGE__-&gt;add_constructor(down =3D&gt;
'__IDENTIFIER__ IN (SELECT __IDENTIFIER__ FROM nacadm.view_down_interface=
s)');<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>to the object NAC::Interface.<o:p></o:p></span>=
</font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>My code looks like this:<o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>my $sth_int_down =3D NAC::Interface-&gt;sql_dow=
n();<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>$sth_int_down-&gt;execute();<o:p></o:p></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>$hash =3D $sth_int_down-&gt;fetchall_hash();<o:=
p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>map NAC::Interface-&gt;construct($_),
$sth_int_down-&gt;fetchall_hash;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>I don&#8217;t know how to use the last line (fr=
om the
docs).<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>Can someone show me an example?<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>How can I iterate over the fetched objects?<o:p=
></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'>Thanks!<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB style=
=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<div>

<p><font size=3D2 face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0=
pt;font-family:
Arial'>With kind regards<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0=
pt;font-family:
Arial'>Alexander Hartmaier<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0=
pt;font-family:
Arial'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=3D2 face=3DArial><span lang=3DEN-GB style=3D'font-size:10.0=
pt;font-family:
Arial'>T-Systems <st1:country-region w:st=3D"on"><st1:place w:st=3D"on">A=
ustria</st1:place></st1:country-region>
GesmbH<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>Rennweg
97-99 1030 Wien<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>phone:
+43 57057-4320<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>fax:
+43 57057-95-4320<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>mobile:
+43 676 8642 4320<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>mail:
alexander.hartmaier@xxxxxxxxx.xx<o:p></o:p></span></font></p>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>internet:
<a href=3D"http://www.t-systems.at/">http://www.t-systems.at</a><o:p></o:=
p></span></font></p>

</div>

</div>

<p><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-famil=
y:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p class=3DMsoNormal style=3D'margin-left:0cm'><font size=3D3 face=3DTele=
-GroteskNor><span
lang=3DDE-AT style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></=
p>

</div>

<br>*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*"*"*"*<br>Hinweis: Dieses E-mail kann vertrauliche und gesch=FCtzte Inf=
ormationen enthalten.<br>Sollten Sie nicht der beabsichtigte Empf=E4nger =
sein, verst=E4ndigen Sie bitte den Absender und l=F6schen Sie dieses E-ma=
il dann sofort.<br><br>Notice: This e-mail contains information that is c=
onfidential and may be privileged.<br>If you are not the intended recipie=
nt, please notify the sender and then delete this e-mail immediately.<br>=
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*"*</body>

</html>

------_=_NextPart_001_01C4F984.6D4B5D09--

quick retrieval help
Hartmaier Alexander 15:27 on 13 Jan 2005

Re: quick retrieval help
Aleksandr Guidrevitch 18:47 on 13 Jan 2005

Re: quick retrieval help
Hartmaier Alexander 07:23 on 14 Jan 2005

Re: quick retrieval help
Aleksandr Guidrevitch 07:51 on 14 Jan 2005

Re: quick retrieval help
Peter Speltz 08:06 on 14 Jan 2005

Re: quick retrieval help
Tony Bowden 10:06 on 14 Jan 2005

Re: quick retrieval help
Peter Speltz 17:04 on 14 Jan 2005

Re: quick retrieval help
Aleksandr Guidrevitch 14:44 on 14 Jan 2005

Re: quick retrieval help
Hartmaier Alexander 15:25 on 14 Jan 2005

Generated at 17:42 on 27 Jan 2005 by mariachi v0.52