<s>
PeopleCode	B-Application
is	O
a	O
proprietary	O
object-oriented	B-Language
programming	I-Language
language	I-Language
used	O
to	O
express	O
business	B-Architecture
logic	I-Architecture
for	O
PeopleSoft	O
applications	O
.	O
</s>
<s>
Syntactically	O
,	O
PeopleCode	B-Application
is	O
similar	O
to	O
other	O
programming	O
languages	O
,	O
and	O
can	O
be	O
found	O
in	O
both	O
loosely-typed	O
and	O
strongly-typed	O
forms	O
.	O
</s>
<s>
PeopleCode	B-Application
and	O
its	O
run-time	O
environment	O
is	O
part	O
of	O
the	O
larger	O
PeopleTools	B-Application
framework	O
.	O
</s>
<s>
PeopleCode	B-Application
has	O
evolved	O
over	O
time	O
and	O
its	O
implementation	O
through	O
the	O
PeopleSoft	O
applications	O
lack	O
consistency	O
.	O
</s>
<s>
PeopleCode	B-Application
offers	O
some	O
interoperability	O
with	O
the	O
Java	B-Language
programming	I-Language
language	I-Language
.	O
</s>
<s>
Definition	O
name	O
references	O
,	O
for	O
example	O
,	O
enable	O
you	O
to	O
refer	O
to	O
PeopleTools	B-Application
definitions	O
,	O
such	O
as	O
record	O
definitions	O
or	O
pages	O
,	O
without	O
using	O
hard-coded	O
string	B-Language
literals	I-Language
.	O
</s>
<s>
Other	O
language	O
features	O
,	O
such	O
as	O
PeopleCode	B-Application
data	O
types	O
and	O
metastrings	O
,	O
reflect	O
the	O
close	O
interaction	O
of	O
PeopleTools	B-Application
and	O
Structured	B-Language
Query	I-Language
Language	I-Language
(	O
SQL	B-Language
)	O
.	O
</s>
<s>
Dot	B-Language
notation	I-Language
,	O
classes	O
and	O
methods	B-Language
in	O
PeopleCode	B-Application
are	O
similar	O
to	O
other	O
object	B-Language
oriented	I-Language
languages	I-Language
,	O
like	O
Java	B-Language
.	O
</s>
<s>
Object	O
syntax	O
was	O
an	O
important	O
feature	O
of	O
PeopleTools	B-Application
8	O
.	O
</s>
<s>
PeopleCode	B-Application
supports	O
the	O
following	O
types	O
of	O
functions	O
:	O
</s>
<s>
Built-in	O
:	O
The	O
standard	O
set	O
of	O
PeopleCode	B-Application
functions	O
.	O
</s>
<s>
Internal	O
:	O
Functions	O
that	O
are	O
defined	O
(	O
using	O
the	O
Function	O
statement	O
)	O
within	O
the	O
PeopleCode	B-Application
program	O
in	O
which	O
they	O
are	O
called	O
.	O
</s>
<s>
External	O
PeopleCode	B-Application
:	O
PeopleCode	B-Application
functions	O
defined	O
outside	O
the	O
calling	O
program	O
.	O
</s>
<s>
External	O
non-PeopleCode	O
:	O
Functions	O
stored	O
in	O
external	O
(	O
C-callable	O
)	O
libraries	O
.	O
</s>
<s>
In	O
addition	O
,	O
PeopleCode	B-Application
supports	O
methods	B-Language
.	O
</s>
<s>
A	O
method	O
can	O
only	O
be	O
executed	O
by	O
an	O
object	O
(	O
using	O
dot	B-Language
notation	I-Language
)	O
.	O
</s>
<s>
The	O
first	O
set	O
of	O
declarations	O
are	O
the	O
properties	O
and	O
methods	B-Language
that	O
are	O
part	O
of	O
the	O
public	O
,	O
external	O
interface	O
.	O
</s>
<s>
The	O
private	O
instance	O
variables	O
,	O
constants	O
,	O
and	O
the	O
methods	B-Language
are	O
declared	O
following	O
the	O
keyword	O
Private	O
.	O
</s>
<s>
The	O
keyword	O
end-class	O
follows	O
the	O
declarations	O
of	O
properties	O
,	O
methods	B-Language
,	O
instances	O
,	O
and	O
constants	O
.	O
</s>
<s>
After	O
the	O
end-class	O
keyword	O
and	O
before	O
get	O
and	O
set	O
definitions	O
or	O
method	O
definitions	O
,	O
declare	O
any	O
variable	O
and	O
functions	O
that	O
will	O
be	O
used	O
by	O
methods	B-Language
.	O
</s>
<s>
Get	O
and	O
set	O
methods	B-Language
corresponds	O
to	O
properties	O
declared	O
with	O
the	O
get	O
and	O
set	O
keywords	O
.	O
</s>
<s>
Use	O
a	O
get	O
method	O
definition	O
to	O
execute	O
PeopleCode	B-Application
that	O
will	O
return	O
a	O
value	O
.	O
</s>
<s>
Use	O
a	O
set	O
method	O
definition	O
to	O
execute	O
PeopleCode	B-Application
that	O
will	O
change	O
a	O
value	O
.	O
</s>
<s>
Where	O
a	O
SQLExec(built-in function )	O
only	O
delivers	O
a	O
single	O
row	O
,	O
using	O
the	O
SQL	B-Language
class	O
you	O
can	O
retrieve	O
and	O
process	O
multiple	O
rows	O
.	O
</s>
<s>
Instantiate	O
a	O
SQL	B-Language
object	O
with	O
the	O
CreateSQL	O
built-in	O
function	O
.	O
</s>
<s>
Use	O
CreateSQL("SQLString" )	O
to	O
pass	O
a	O
text	O
string	O
to	O
your	O
SQL	B-Language
object	O
.	O
</s>
<s>
Use	O
GetSQL( 	O
SQL.sqlname	O
)	O
to	O
get	O
the	O
SQL	B-Language
from	O
a	O
SQL	B-Language
definition	O
.	O
</s>
<s>
(	O
If	O
all	O
the	O
necessary	O
input	O
values	O
are	O
supplied	O
,	O
the	O
SQL	B-Language
is	O
executed	O
immediately	O
.	O
)	O
</s>
<s>
For	O
a	O
SQL	B-Language
object	O
containing	O
a	O
Select	O
statement	O
,	O
the	O
Fetch	O
method	O
is	O
used	O
to	O
retrieve	O
the	O
next	O
row	O
from	O
the	O
cursor	O
.	O
</s>
