Package org.postgresql.pljava.jdbc
Interface SPIReadOnlyControl
- All Known Implementing Classes:
SPIPreparedStatement
,SPIStatement
public interface SPIReadOnlyControl
An extended interface on
Statement
(accessible with unwrap()
)
allowing control of the read_only
flag that PostgreSQL SPI will see
when the statement is next executed.
Currently an internal interface, not in pljava-api
, as the known need
so far is just for the internal class loader.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Specify that the statement, when next executed, will have haveread_only
set tofalse
unconditionally.void
Specify that the statement, when next executed, will have the behavior recommended in the PostgreSQL SPI documentation:read_only
will be set totrue
if the currently-executing PL/Java function is declaredIMMUTABLE
,false
otherwise.void
Specify that the statement, when next executed, will have haveread_only
set totrue
unconditionally.
-
Method Details
-
defaultReadOnly
void defaultReadOnly()Specify that the statement, when next executed, will have the behavior recommended in the PostgreSQL SPI documentation:read_only
will be set totrue
if the currently-executing PL/Java function is declaredIMMUTABLE
,false
otherwise. -
forceReadOnly
void forceReadOnly()Specify that the statement, when next executed, will have haveread_only
set totrue
unconditionally. -
clearReadOnly
void clearReadOnly()Specify that the statement, when next executed, will have haveread_only
set tofalse
unconditionally.
-