Java Doc for PostgresModule.java in  » EJB-Server-resin-3.1.5 » quercus » com » caucho » quercus » lib » db » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » quercus » com.caucho.quercus.lib.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.quercus.module.AbstractQuercusModule
      com.caucho.quercus.lib.db.PostgresModule

PostgresModule
public class PostgresModule extends AbstractQuercusModule (Code)
Quercus postgres routines.


Field Summary
final public static  intPGSQL_ASSOC
    
final public static  intPGSQL_BAD_RESPONSE
    
final public static  intPGSQL_BOTH
    
final public static  intPGSQL_COMMAND_OK
    
final public static  intPGSQL_CONNECTION_BAD
    
final public static  intPGSQL_CONNECTION_OK
    
final public static  intPGSQL_CONNECT_FORCE_NEW
    
final public static  intPGSQL_CONV_FORCE_NULL
    
final public static  intPGSQL_CONV_IGNORE_DEFAULT
    
final public static  intPGSQL_COPY_IN
    
final public static  intPGSQL_COPY_OUT
    
final public static  intPGSQL_DIAG_CONTEXT
    
final public static  intPGSQL_DIAG_INTERNAL_POSITION
    
final public static  intPGSQL_DIAG_INTERNAL_QUERY
    
final public static  intPGSQL_DIAG_MESSAGE_DETAIL
    
final public static  intPGSQL_DIAG_MESSAGE_HINT
    
final public static  intPGSQL_DIAG_MESSAGE_PRIMARY
    
final public static  intPGSQL_DIAG_SEVERITY
    
final public static  intPGSQL_DIAG_SOURCE_FILE
    
final public static  intPGSQL_DIAG_SOURCE_FUNCTION
    
final public static  intPGSQL_DIAG_SOURCE_LINE
    
final public static  intPGSQL_DIAG_SQLSTATE
    
final public static  intPGSQL_DIAG_STATEMENT_POSITION
    
final public static  intPGSQL_EMPTY_QUERY
    
final public static  intPGSQL_ERRORS_DEFAULT
    
final public static  intPGSQL_ERRORS_TERSE
    
final public static  intPGSQL_ERRORS_VERBOSE
    
final public static  intPGSQL_FATAL_ERROR
    
final public static  intPGSQL_NONFATAL_ERROR
    
final public static  intPGSQL_NUM
    
final public static  intPGSQL_SEEK_CUR
    
final public static  intPGSQL_SEEK_END
    
final public static  intPGSQL_SEEK_SET
    
final public static  intPGSQL_STATUS_LONG
    
final public static  intPGSQL_STATUS_STRING
    
final public static  intPGSQL_TRANSACTION_ACTIVE
    
final public static  intPGSQL_TRANSACTION_IDLE
    
final public static  intPGSQL_TRANSACTION_INERROR
    
final public static  intPGSQL_TRANSACTION_INTRANS
    
final public static  intPGSQL_TRANSACTION_UNKNOWN
    
final public static  intPGSQL_TUPLES_OK
    

Constructor Summary
public  PostgresModule()
    

Method Summary
public  String[]getLoadedExtensions()
     Returns true for the postgres extension.
public static  intpg_affected_rows(Env env, PostgresResult result)
    
public static  booleanpg_cancel_query(Env env, Postgres conn)
    
public static  Stringpg_client_encoding(Env env, Postgres conn)
    
public static  booleanpg_close(Env env, Postgres conn)
    
public static  intpg_cmdtuples(Env env, PostgresResult result)
     pg_affected_rows() alias.
public static  Postgrespg_connect(Env env, String connectionString, int connectionType)
    
public static  booleanpg_connection_busy(Env env, Postgres conn)
    
public static  booleanpg_connection_reset(Env env, Postgres conn)
    
public static  intpg_connection_status(Env env, Postgres conn)
    
public static  ArrayValuepg_convert(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)
    
public static  booleanpg_copy_from(Env env, Postgres conn, String tableName, ArrayValue rows, String delimiter, String nullAs)
    
public static  ArrayValuepg_copy_to(Env env, Postgres conn, String tableName, String delimiter, String nullAs)
    
public static  Stringpg_dbname(Env env, Postgres conn)
    
public static  booleanpg_delete(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)
    
public static  booleanpg_end_copy(Env env, Postgres conn)
    
public static  Stringpg_errormessage(Env env, Postgres conn)
     pg_last_error() alias.
public static  StringValuepg_escape_bytea(Env env, StringValue data)
    
public static  StringValuepg_escape_bytea(Env env, Postgres conn, StringValue data)
     Escape a string for insertion into a bytea field.
public static  StringValuepg_escape_string(Env env, StringValue data)
    
public static  PostgresResultpg_exec(Env env, Postgres conn, String query)
    
public static  PostgresResultpg_execute(Env env, Postgres conn, String stmtName, ArrayValue params)
    
public static  ArrayValuepg_fetch_all(Env env, PostgresResult result)
    
public static  ArrayValuepg_fetch_all_columns(Env env, PostgresResult result, int column)
    
public static  ArrayValuepg_fetch_array(Env env, PostgresResult result, Value row, int resultType)
    
public static  ArrayValuepg_fetch_assoc(Env env, PostgresResult result, Value row)
    
public static  Valuepg_fetch_object(Env env, PostgresResult result, Value row, int resultType)
    
public static  Valuepg_fetch_result(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)
    
public static  ArrayValuepg_fetch_row(Env env, PostgresResult result, Value row)
    
public static  LongValuepg_field_is_null(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)
    
public static  Valuepg_field_name(Env env, PostgresResult result, int fieldNumber)
    
public static  intpg_field_num(Env env, PostgresResult result, String fieldName)
    
public static  intpg_field_prtlen(Env env, PostgresResult result, Value rowNumber, Value fieldNameOrNumber)
    
public static  LongValuepg_field_size(Env env, PostgresResult result, int fieldNumber)
    
public static  Stringpg_field_table(Env env, PostgresResult result, int fieldNumber, boolean oidOnly)
    
public static  StringValuepg_field_type(Env env, PostgresResult result, int fieldNumber)
    
public static  LongValuepg_field_type_oid(Env env, PostgresResult result, int fieldNumber)
    
public static  LongValuepg_fieldisnull(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)
     pg_field_is_null() alias.
public static  Valuepg_fieldname(Env env, PostgresResult result, int fieldNumber)
     pg_field_name() alias.
public static  intpg_fieldnum(Env env, PostgresResult result, String fieldName)
     pg_field_num() alias.
public static  intpg_fieldprtlen(Env env, PostgresResult result, Value rowNumber, Value fieldNameOrNumber)
     pg_field_ptrlen() alias.
public static  LongValuepg_fieldsize(Env env, PostgresResult result, int fieldNumber)
     pg_field_size() alias.
public static  StringValuepg_fieldtype(Env env, PostgresResult result, int fieldNumber)
     pg_field_type() alias.
public static  booleanpg_free_result(Env env, PostgresResult result)
    
public static  booleanpg_freeresult(Env env, PostgresResult result)
     pg_free_result() alias.
public static  ArrayValuepg_get_notify(Env env, Postgres conn, int resultType)
    
public static  intpg_get_pid(Env env, Postgres conn)
    
public static  PostgresResultpg_get_result(Env env, Postgres conn)
    
public static  Stringpg_getlastoid(Env env, PostgresResult result)
    
public static  Stringpg_host(Env env, Postgres conn)
    
public static  booleanpg_insert(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)
    
public static  Stringpg_last_error(Env env, Postgres conn)
    
public static  Stringpg_last_notice(Env env, Postgres conn)
    
public static  Stringpg_last_oid(Env env, PostgresResult result)
     Returns the last row's OID Note that: - OID is a unique id.
public static  booleanpg_lo_close(Env env, Object largeObject)
    
public static  LongValuepg_lo_create(Env env, Postgres conn)
    
public static  booleanpg_lo_export(Env env, Postgres conn, int oid, Path path)
    
public static  LongValuepg_lo_import(Env env, Postgres conn, Path path)
    
public static  Objectpg_lo_open(Env env, Postgres conn, int oid, String mode)
    
public static  StringValuepg_lo_read(Env env, Object largeObject, int len)
    
public static  LongValuepg_lo_read_all(Env env, Object largeObject)
    
public static  booleanpg_lo_seek(Env env, Object largeObject, int offset, int whence)
    
public static  intpg_lo_tell(Env env, Object largeObject)
    
public static  booleanpg_lo_unlink(Env env, Postgres conn, int oid)
    
public static  LongValuepg_lo_write(Env env, Object largeObject, String data, int len)
    
public static  booleanpg_loclose(Env env, Object largeObject)
     pg_lo_close() alias.
public static  LongValuepg_locreate(Env env, Postgres conn)
    
public static  booleanpg_loexport(Env env, Postgres conn, int oid, Path path)
     pg_lo_export() alias.
public static  LongValuepg_loimport(Env env, Postgres conn, Path path)
     pg_lo_import() alias.
public static  Objectpg_loopen(Env env, Postgres conn, int oid, String mode)
     pg_lo_open() alias.
public static  StringValuepg_loread(Env env, Object largeObject, int len)
     pg_lo_read() alias.
public static  LongValuepg_loreadall(Env env, Object largeObject)
     pg_lo_read_all() alias.
public static  booleanpg_lounlink(Env env, Postgres conn, int oid)
     pg_lo_unlink() alias.
public static  LongValuepg_lowrite(Env env, Object largeObject, String data, int len)
     pg_lo_write() alias.
public static  ArrayValuepg_meta_data(Env env, Postgres conn, String tableName)
    
public static  intpg_num_fields(Env env, PostgresResult result)
    
public static  LongValuepg_num_rows(Env env, PostgresResult result)
    
public static  intpg_numfields(Env env, PostgresResult result)
     pg_num_fields() alias.
public static  LongValuepg_numrows(Env env, PostgresResult result)
     pg_num_rows() alias.
public static  Stringpg_options(Env env, Postgres conn)
    
public static  Valuepg_parameter_status(Env env, Postgres conn, StringValue paramName)
    
public static  Valuepg_parameter_status(Env env, StringValue paramName)
    
public static  Postgrespg_pconnect(Env env, String connectionString, int connectType)
    
public static  booleanpg_ping(Env env, Postgres conn)
    
public static  StringValuepg_port(Env env, Postgres conn)
    
public static  PostgresStatementpg_prepare(Env env, Postgres conn, String stmtName, String query)
    
public static  booleanpg_put_line(Env env, Postgres conn, String data)
    
public static  PostgresResultpg_query(Env env, String query)
    
public static  PostgresResultpg_query(Env env, Postgres conn, String query)
    
public static  PostgresResultpg_query_params(Env env, Postgres conn, String query, ArrayValue params)
    
public static  Valuepg_result(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)
    
public static  Stringpg_result_error(Env env, PostgresResult result)
    
public static  Valuepg_result_error_field(Env env, PostgresResult result, int fieldCode)
    
public static  booleanpg_result_seek(Env env, PostgresResult result, int offset)
    
public static  intpg_result_status(Env env, PostgresResult result, int type)
    
public static  ArrayValuepg_select(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)
    
public static  booleanpg_send_execute(Env env, Postgres conn, String stmtName, ArrayValue params)
    
public static  booleanpg_send_prepare(Env env, Postgres conn, String stmtName, String query)
    
public static  booleanpg_send_query(Env env, Postgres conn, String query)
    
public static  booleanpg_send_query_params(Env env, Postgres conn, String query, ArrayValue params)
    
public static  intpg_set_client_encoding(Env env, Postgres conn, String encoding)
    
public static  intpg_set_error_verbosity(Env env, Postgres conn, int intVerbosity)
    
public static  booleanpg_trace(Env env, Path path, String mode, Postgres conn)
    
public static  intpg_transaction_status(Env env, Postgres conn)
    
public static  Stringpg_tty(Env env, Postgres conn)
    
public static  Stringpg_unescape_bytea(Env env, String data)
    
public static  booleanpg_untrace(Env env, Postgres conn)
    
public static  booleanpg_update(Env env, Postgres conn, String tableName, ArrayValue data, ArrayValue condition, int options)
    
public static  Stringpg_version(Env env, Postgres conn)
    

Field Detail
PGSQL_ASSOC
final public static int PGSQL_ASSOC(Code)



PGSQL_BAD_RESPONSE
final public static int PGSQL_BAD_RESPONSE(Code)



PGSQL_BOTH
final public static int PGSQL_BOTH(Code)



PGSQL_COMMAND_OK
final public static int PGSQL_COMMAND_OK(Code)



PGSQL_CONNECTION_BAD
final public static int PGSQL_CONNECTION_BAD(Code)



PGSQL_CONNECTION_OK
final public static int PGSQL_CONNECTION_OK(Code)



PGSQL_CONNECT_FORCE_NEW
final public static int PGSQL_CONNECT_FORCE_NEW(Code)



PGSQL_CONV_FORCE_NULL
final public static int PGSQL_CONV_FORCE_NULL(Code)



PGSQL_CONV_IGNORE_DEFAULT
final public static int PGSQL_CONV_IGNORE_DEFAULT(Code)



PGSQL_COPY_IN
final public static int PGSQL_COPY_IN(Code)



PGSQL_COPY_OUT
final public static int PGSQL_COPY_OUT(Code)



PGSQL_DIAG_CONTEXT
final public static int PGSQL_DIAG_CONTEXT(Code)



PGSQL_DIAG_INTERNAL_POSITION
final public static int PGSQL_DIAG_INTERNAL_POSITION(Code)



PGSQL_DIAG_INTERNAL_QUERY
final public static int PGSQL_DIAG_INTERNAL_QUERY(Code)



PGSQL_DIAG_MESSAGE_DETAIL
final public static int PGSQL_DIAG_MESSAGE_DETAIL(Code)



PGSQL_DIAG_MESSAGE_HINT
final public static int PGSQL_DIAG_MESSAGE_HINT(Code)



PGSQL_DIAG_MESSAGE_PRIMARY
final public static int PGSQL_DIAG_MESSAGE_PRIMARY(Code)



PGSQL_DIAG_SEVERITY
final public static int PGSQL_DIAG_SEVERITY(Code)



PGSQL_DIAG_SOURCE_FILE
final public static int PGSQL_DIAG_SOURCE_FILE(Code)



PGSQL_DIAG_SOURCE_FUNCTION
final public static int PGSQL_DIAG_SOURCE_FUNCTION(Code)



PGSQL_DIAG_SOURCE_LINE
final public static int PGSQL_DIAG_SOURCE_LINE(Code)



PGSQL_DIAG_SQLSTATE
final public static int PGSQL_DIAG_SQLSTATE(Code)



PGSQL_DIAG_STATEMENT_POSITION
final public static int PGSQL_DIAG_STATEMENT_POSITION(Code)



PGSQL_EMPTY_QUERY
final public static int PGSQL_EMPTY_QUERY(Code)



PGSQL_ERRORS_DEFAULT
final public static int PGSQL_ERRORS_DEFAULT(Code)



PGSQL_ERRORS_TERSE
final public static int PGSQL_ERRORS_TERSE(Code)



PGSQL_ERRORS_VERBOSE
final public static int PGSQL_ERRORS_VERBOSE(Code)



PGSQL_FATAL_ERROR
final public static int PGSQL_FATAL_ERROR(Code)



PGSQL_NONFATAL_ERROR
final public static int PGSQL_NONFATAL_ERROR(Code)



PGSQL_NUM
final public static int PGSQL_NUM(Code)



PGSQL_SEEK_CUR
final public static int PGSQL_SEEK_CUR(Code)



PGSQL_SEEK_END
final public static int PGSQL_SEEK_END(Code)



PGSQL_SEEK_SET
final public static int PGSQL_SEEK_SET(Code)



PGSQL_STATUS_LONG
final public static int PGSQL_STATUS_LONG(Code)



PGSQL_STATUS_STRING
final public static int PGSQL_STATUS_STRING(Code)



PGSQL_TRANSACTION_ACTIVE
final public static int PGSQL_TRANSACTION_ACTIVE(Code)



PGSQL_TRANSACTION_IDLE
final public static int PGSQL_TRANSACTION_IDLE(Code)



PGSQL_TRANSACTION_INERROR
final public static int PGSQL_TRANSACTION_INERROR(Code)



PGSQL_TRANSACTION_INTRANS
final public static int PGSQL_TRANSACTION_INTRANS(Code)



PGSQL_TRANSACTION_UNKNOWN
final public static int PGSQL_TRANSACTION_UNKNOWN(Code)



PGSQL_TUPLES_OK
final public static int PGSQL_TUPLES_OK(Code)




Constructor Detail
PostgresModule
public PostgresModule()(Code)
Constructor




Method Detail
getLoadedExtensions
public String[] getLoadedExtensions()(Code)
Returns true for the postgres extension.



pg_affected_rows
public static int pg_affected_rows(Env env, PostgresResult result)(Code)
Returns number of affected records (tuples)



pg_cancel_query
public static boolean pg_cancel_query(Env env, Postgres conn)(Code)
Cancel an asynchronous query



pg_client_encoding
public static String pg_client_encoding(Env env, Postgres conn)(Code)
Gets the client encoding



pg_close
public static boolean pg_close(Env env, Postgres conn)(Code)
Closes a PostgreSQL connection



pg_cmdtuples
public static int pg_cmdtuples(Env env, PostgresResult result)(Code)
pg_affected_rows() alias.



pg_connect
public static Postgres pg_connect(Env env, String connectionString, int connectionType)(Code)
Open a PostgreSQL connection



pg_connection_busy
public static boolean pg_connection_busy(Env env, Postgres conn)(Code)
Get connection is busy or not



pg_connection_reset
public static boolean pg_connection_reset(Env env, Postgres conn)(Code)
Reset connection (reconnect)



pg_connection_status
public static int pg_connection_status(Env env, Postgres conn)(Code)
Get connection status



pg_convert
public static ArrayValue pg_convert(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)(Code)
Convert associative array values into suitable for SQL statement



pg_copy_from
public static boolean pg_copy_from(Env env, Postgres conn, String tableName, ArrayValue rows, String delimiter, String nullAs)(Code)
Insert records into a table from an array



pg_copy_to
public static ArrayValue pg_copy_to(Env env, Postgres conn, String tableName, String delimiter, String nullAs)(Code)
Copy a table to an array



pg_dbname
public static String pg_dbname(Env env, Postgres conn)(Code)
Get the database name



pg_delete
public static boolean pg_delete(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)(Code)
Deletes records



pg_end_copy
public static boolean pg_end_copy(Env env, Postgres conn)(Code)
Sync with PostgreSQL backend



pg_errormessage
public static String pg_errormessage(Env env, Postgres conn)(Code)
pg_last_error() alias.



pg_escape_bytea
public static StringValue pg_escape_bytea(Env env, StringValue data)(Code)
Escape a string for insertion into a bytea field



pg_escape_bytea
public static StringValue pg_escape_bytea(Env env, Postgres conn, StringValue data)(Code)
Escape a string for insertion into a bytea field.



pg_escape_string
public static StringValue pg_escape_string(Env env, StringValue data)(Code)
Escape a string for insertion into a text field



pg_exec
public static PostgresResult pg_exec(Env env, Postgres conn, String query)(Code)
pg_query() alias



pg_execute
public static PostgresResult pg_execute(Env env, Postgres conn, String stmtName, ArrayValue params)(Code)
Sends a request to execute a prepared statement with given parameters, and waits for the result



pg_fetch_all
public static ArrayValue pg_fetch_all(Env env, PostgresResult result)(Code)
Fetches all rows from a result as an array



pg_fetch_all_columns
public static ArrayValue pg_fetch_all_columns(Env env, PostgresResult result, int column)(Code)
Fetches all rows in a particular result column as an array



pg_fetch_array
public static ArrayValue pg_fetch_array(Env env, PostgresResult result, Value row, int resultType)(Code)
Fetch a row as an array



pg_fetch_assoc
public static ArrayValue pg_fetch_assoc(Env env, PostgresResult result, Value row)(Code)
Fetch a row as an associative array



pg_fetch_object
public static Value pg_fetch_object(Env env, PostgresResult result, Value row, int resultType)(Code)
Fetch a row as an object



pg_fetch_result
public static Value pg_fetch_result(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)(Code)
Returns values from a result resource



pg_fetch_row
public static ArrayValue pg_fetch_row(Env env, PostgresResult result, Value row)(Code)
Get a row as an enumerated array



pg_field_is_null
public static LongValue pg_field_is_null(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)(Code)
Test if a field is SQL NULL



pg_field_name
public static Value pg_field_name(Env env, PostgresResult result, int fieldNumber)(Code)
Returns the name of a field



pg_field_num
public static int pg_field_num(Env env, PostgresResult result, String fieldName)(Code)
Returns the field number of the named field the field number (0-based) or -1 on error



pg_field_prtlen
public static int pg_field_prtlen(Env env, PostgresResult result, Value rowNumber, Value fieldNameOrNumber)(Code)
Returns the printed length



pg_field_size
public static LongValue pg_field_size(Env env, PostgresResult result, int fieldNumber)(Code)
Returns the internal storage size of the named field



pg_field_table
public static String pg_field_table(Env env, PostgresResult result, int fieldNumber, boolean oidOnly)(Code)
Returns the name or oid of the tables field By default the tables name that field belongs tois returned but if oid_only is set to TRUE,then the oid will instead be returned.



pg_field_type
public static StringValue pg_field_type(Env env, PostgresResult result, int fieldNumber)(Code)
Returns the type name for the corresponding field number



pg_field_type_oid
public static LongValue pg_field_type_oid(Env env, PostgresResult result, int fieldNumber)(Code)
Returns the type ID (OID) for the corresponding field number



pg_fieldisnull
public static LongValue pg_fieldisnull(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)(Code)
pg_field_is_null() alias.



pg_fieldname
public static Value pg_fieldname(Env env, PostgresResult result, int fieldNumber)(Code)
pg_field_name() alias.



pg_fieldnum
public static int pg_fieldnum(Env env, PostgresResult result, String fieldName)(Code)
pg_field_num() alias.



pg_fieldprtlen
public static int pg_fieldprtlen(Env env, PostgresResult result, Value rowNumber, Value fieldNameOrNumber)(Code)
pg_field_ptrlen() alias.



pg_fieldsize
public static LongValue pg_fieldsize(Env env, PostgresResult result, int fieldNumber)(Code)
pg_field_size() alias.



pg_fieldtype
public static StringValue pg_fieldtype(Env env, PostgresResult result, int fieldNumber)(Code)
pg_field_type() alias.



pg_free_result
public static boolean pg_free_result(Env env, PostgresResult result)(Code)
Free result memory



pg_freeresult
public static boolean pg_freeresult(Env env, PostgresResult result)(Code)
pg_free_result() alias.



pg_get_notify
public static ArrayValue pg_get_notify(Env env, Postgres conn, int resultType)(Code)
Gets SQL NOTIFY message



pg_get_pid
public static int pg_get_pid(Env env, Postgres conn)(Code)
Gets the backend's process ID



pg_get_result
public static PostgresResult pg_get_result(Env env, Postgres conn)(Code)
Get asynchronous query result



pg_getlastoid
public static String pg_getlastoid(Env env, PostgresResult result)(Code)



pg_host
public static String pg_host(Env env, Postgres conn)(Code)
Returns the host name associated with the connection



pg_insert
public static boolean pg_insert(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)(Code)
Insert array into table



pg_last_error
public static String pg_last_error(Env env, Postgres conn)(Code)
Get the last error message string of a connection



pg_last_notice
public static String pg_last_notice(Env env, Postgres conn)(Code)
Returns the last notice message from PostgreSQL server



pg_last_oid
public static String pg_last_oid(Env env, PostgresResult result)(Code)
Returns the last row's OID Note that: - OID is a unique id. It will not work if the table was created with "No oid". - MySql's "mysql_insert_id" receives the conection handler as argument but PostgreSQL's "pg_last_oid" uses the result handler.



pg_lo_close
public static boolean pg_lo_close(Env env, Object largeObject)(Code)
Close a large object



pg_lo_create
public static LongValue pg_lo_create(Env env, Postgres conn)(Code)
Create a large object



pg_lo_export
public static boolean pg_lo_export(Env env, Postgres conn, int oid, Path path)(Code)
Export a large object to a file



pg_lo_import
public static LongValue pg_lo_import(Env env, Postgres conn, Path path)(Code)
Import a large object from file



pg_lo_open
public static Object pg_lo_open(Env env, Postgres conn, int oid, String mode)(Code)
Open a large object



pg_lo_read
public static StringValue pg_lo_read(Env env, Object largeObject, int len)(Code)
Read a large object



pg_lo_read_all
public static LongValue pg_lo_read_all(Env env, Object largeObject)(Code)
Reads an entire large object and send straight to browser



pg_lo_seek
public static boolean pg_lo_seek(Env env, Object largeObject, int offset, int whence)(Code)
Seeks position within a large object



pg_lo_tell
public static int pg_lo_tell(Env env, Object largeObject)(Code)
Returns current seek position a of large object



pg_lo_unlink
public static boolean pg_lo_unlink(Env env, Postgres conn, int oid)(Code)
Delete a large object



pg_lo_write
public static LongValue pg_lo_write(Env env, Object largeObject, String data, int len)(Code)
Write to a large object



pg_loclose
public static boolean pg_loclose(Env env, Object largeObject)(Code)
pg_lo_close() alias.



pg_locreate
public static LongValue pg_locreate(Env env, Postgres conn)(Code)
pg_lo_create() alias



pg_loexport
public static boolean pg_loexport(Env env, Postgres conn, int oid, Path path)(Code)
pg_lo_export() alias.



pg_loimport
public static LongValue pg_loimport(Env env, Postgres conn, Path path)(Code)
pg_lo_import() alias.



pg_loopen
public static Object pg_loopen(Env env, Postgres conn, int oid, String mode)(Code)
pg_lo_open() alias.



pg_loread
public static StringValue pg_loread(Env env, Object largeObject, int len)(Code)
pg_lo_read() alias.



pg_loreadall
public static LongValue pg_loreadall(Env env, Object largeObject)(Code)
pg_lo_read_all() alias.



pg_lounlink
public static boolean pg_lounlink(Env env, Postgres conn, int oid)(Code)
pg_lo_unlink() alias.



pg_lowrite
public static LongValue pg_lowrite(Env env, Object largeObject, String data, int len)(Code)
pg_lo_write() alias.



pg_meta_data
public static ArrayValue pg_meta_data(Env env, Postgres conn, String tableName)(Code)
Get meta data for table



pg_num_fields
public static int pg_num_fields(Env env, PostgresResult result)(Code)
Returns the number of fields in a result



pg_num_rows
public static LongValue pg_num_rows(Env env, PostgresResult result)(Code)
Returns the number of rows in a result



pg_numfields
public static int pg_numfields(Env env, PostgresResult result)(Code)
pg_num_fields() alias.



pg_numrows
public static LongValue pg_numrows(Env env, PostgresResult result)(Code)
pg_num_rows() alias.



pg_options
public static String pg_options(Env env, Postgres conn)(Code)
Get the options associated with the connection



pg_parameter_status
public static Value pg_parameter_status(Env env, Postgres conn, StringValue paramName)(Code)
Looks up a current parameter setting of the server



pg_parameter_status
public static Value pg_parameter_status(Env env, StringValue paramName)(Code)
Looks up a current parameter setting of the server



pg_pconnect
public static Postgres pg_pconnect(Env env, String connectionString, int connectType)(Code)
Open a persistent PostgreSQL connection



pg_ping
public static boolean pg_ping(Env env, Postgres conn)(Code)
Ping database connection



pg_port
public static StringValue pg_port(Env env, Postgres conn)(Code)
Return the port number associated with the connection



pg_prepare
public static PostgresStatement pg_prepare(Env env, Postgres conn, String stmtName, String query)(Code)
Submits a request to create a prepared statement with the given parameters, and waits for completion



pg_put_line
public static boolean pg_put_line(Env env, Postgres conn, String data)(Code)
Send a NULL-terminated string to PostgreSQL backend



pg_query
public static PostgresResult pg_query(Env env, String query)(Code)
Execute a query



pg_query
public static PostgresResult pg_query(Env env, Postgres conn, String query)(Code)
Execute a query



pg_query_params
public static PostgresResult pg_query_params(Env env, Postgres conn, String query, ArrayValue params)(Code)
Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text



pg_result
public static Value pg_result(Env env, PostgresResult result, Value row, Value fieldNameOrNumber)(Code)
Returns values from a result resource



pg_result_error
public static String pg_result_error(Env env, PostgresResult result)(Code)
Get error message associated with result



pg_result_error_field
public static Value pg_result_error_field(Env env, PostgresResult result, int fieldCode)(Code)
Returns an individual field of an error report



pg_result_seek
public static boolean pg_result_seek(Env env, PostgresResult result, int offset)(Code)
Set internal row offset in result resource



pg_result_status
public static int pg_result_status(Env env, PostgresResult result, int type)(Code)
Get status of query result



pg_select
public static ArrayValue pg_select(Env env, Postgres conn, String tableName, ArrayValue assocArray, int options)(Code)
Select records



pg_send_execute
public static boolean pg_send_execute(Env env, Postgres conn, String stmtName, ArrayValue params)(Code)
Sends a request to execute a prepared statement with given parameters, without waiting for the result(s)



pg_send_prepare
public static boolean pg_send_prepare(Env env, Postgres conn, String stmtName, String query)(Code)
Sends a request to create a prepared statement with the given parameters, without waiting for completion



pg_send_query
public static boolean pg_send_query(Env env, Postgres conn, String query)(Code)
Sends asynchronous query



pg_send_query_params
public static boolean pg_send_query_params(Env env, Postgres conn, String query, ArrayValue params)(Code)
Submits a command and separate parameters to the server without waiting for the result(s)



pg_set_client_encoding
public static int pg_set_client_encoding(Env env, Postgres conn, String encoding)(Code)
Set the client encoding



pg_set_error_verbosity
public static int pg_set_error_verbosity(Env env, Postgres conn, int intVerbosity)(Code)
Determines the verbosity of messages returned by pg_last_error() and pg_result_error()



pg_trace
public static boolean pg_trace(Env env, Path path, String mode, Postgres conn)(Code)
Enable tracing a PostgreSQL connection



pg_transaction_status
public static int pg_transaction_status(Env env, Postgres conn)(Code)
Returns the current in-transaction status of the server



pg_tty
public static String pg_tty(Env env, Postgres conn)(Code)
Return the TTY name associated with the connection



pg_unescape_bytea
public static String pg_unescape_bytea(Env env, String data)(Code)
Unescape binary for bytea type



pg_untrace
public static boolean pg_untrace(Env env, Postgres conn)(Code)
Disable tracing of a PostgreSQL connection



pg_update
public static boolean pg_update(Env env, Postgres conn, String tableName, ArrayValue data, ArrayValue condition, int options)(Code)
Update table



pg_version
public static String pg_version(Env env, Postgres conn)(Code)
Returns an array with client, protocol and server version (when available)



Fields inherited from com.caucho.quercus.module.AbstractQuercusModule
final protected static int PHP_INI_ALL(Code)(Java Doc)
final protected static int PHP_INI_PERDIR(Code)(Java Doc)
final protected static int PHP_INI_SYSTEM(Code)(Java Doc)
final protected static int PHP_INI_USER(Code)(Java Doc)

Methods inherited from com.caucho.quercus.module.AbstractQuercusModule
public Map<String, Value> getConstMap()(Code)(Java Doc)
public IniDefinitions getIniDefinitions()(Code)(Java Doc)
public String[] getLoadedExtensions()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.