Package org.postgresql.pljava.jdbc
Interface SPIReadOnlyControl
-
- All Known Implementing Classes:
SPIPreparedStatement
,SPIStatement
public interface SPIReadOnlyControl
An extended interface onStatement
(accessible withunwrap()
) allowing control of theread_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 Type Method Description void
clearReadOnly()
Specify that the statement, when next executed, will have haveread_only
set tofalse
unconditionally.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.void
forceReadOnly()
Specify that the statement, when next executed, will have haveread_only
set totrue
unconditionally.
-
-
-
Method Detail
-
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.
-
-