Android & PostgreSQL (application/pdf - 311.5 KB) - PGCon
Android & PostgreSQL (application/pdf - 311.5 KB) - PGCon
Android & PostgreSQL (application/pdf - 311.5 KB) - PGCon
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Example for Calling Stored Functions<br />
Call a built-in stored function that returns a value. In this example, call<br />
upper() to change a string to all upper case characters:<br />
C a l l a b l e S t a t e m e n t upperProc =<br />
conn . p r e p a r e C a l l ( ”{ ? = c a l l upper ( ? ) }” ) ;<br />
upperProc . r e g i s t e r O u t P a r a m e t e r (1 , Types .VARCHAR) ;<br />
upperProc . s e t S t r i n g (2 , ” l o w e r c a s e to u p p e r c a s e ” ) ;<br />
upperProc . e x e c u t e ( ) ;<br />
S t r i n g upperCased = upperProc . g e t S t r i n g ( 1 ) ;<br />
upperProc . c l o s e ( ) ;<br />
markwkm (<strong>PGCon</strong>2011) <strong>Android</strong> & <strong>PostgreSQL</strong> 20 May 2011 17 / 37