class PrepareMachine extends StateMachine[ParseComplete]
Implements part of the "Extended Query" message flow described here https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY.
This machine is used in combination with ExecuteMachine. That is, after executing this machine, an execution of ExecuteMachine is required to obtain the results.
- Alphabetic
- By Inheritance
- PrepareMachine
- StateMachine
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PrepareMachine(name: Types.Name, statement: String)
- name
the portal's name to create or overwrite.
- statement
the statement to prepare.
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def receive(state: State, msg: BackendMessage): TransitionResult[State, ParseComplete]
Given the current state and a message from the backend server, this method will produce the appropriate transition to execute.
Given the current state and a message from the backend server, this method will produce the appropriate transition to execute.
Specifically, this may be additional messages to send to the backend, a response to send to the client, etc.
- state
the current state of the connection previously returned by a call to
start
orreceive
.- msg
the message received from the backend server
- returns
the transition to execute to realize the new state
- Definition Classes
- PrepareMachine → StateMachine
- def start: TransitionResult[State, ParseComplete]
The initial transition to execute upon starting this particular machine.
The initial transition to execute upon starting this particular machine. Normally, this will contain
Send
actions to send messages to the Postgres backend.- returns
the initial transition to execute upon starting the machine.
- Definition Classes
- PrepareMachine → StateMachine
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object Parsing extends State with Product with Serializable
- case object Syncing extends State with Product with Serializable