Tabnine Logo
QueryExecutorImpl.lock
Code IndexAdd Tabnine to your IDE (free)

How to use
lock
method
in
org.postgresql.core.v3.QueryExecutorImpl

Best Java code snippets using org.postgresql.core.v3.QueryExecutorImpl.lock (Showing top 4 results out of 315)

origin: org.postgresql/postgresql

/**
 * Locks connection and calls initializer for a new CopyOperation Called via startCopy ->
 * processCopyResults.
 *
 * @param op an uninitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
 pgStream.receiveInteger4(); // length not used
 int rowFormat = pgStream.receiveChar();
 int numFields = pgStream.receiveInteger2();
 int[] fieldFormats = new int[numFields];
 for (int i = 0; i < numFields; i++) {
  fieldFormats[i] = pgStream.receiveInteger2();
 }
 lock(op);
 op.init(this, rowFormat, fieldFormats);
}
origin: postgresql/postgresql

/**
 * Locks connection and calls initializer for a new CopyOperation
 * Called via startCopy -> processCopyResults
 * @param op an unitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
  pgStream.ReceiveInteger4(); // length not used
  int rowFormat = pgStream.ReceiveChar();
  int numFields = pgStream.ReceiveInteger2();
  int[] fieldFormats = new int[numFields];
  for(int i=0; i<numFields; i++)
    fieldFormats[i] = pgStream.ReceiveInteger2();
  lock(op);
  op.init(this, rowFormat, fieldFormats);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Locks connection and calls initializer for a new CopyOperation
 * Called via startCopy -> processCopyResults
 * @param op an unitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
  pgStream.ReceiveInteger4(); // length not used
  int rowFormat = pgStream.ReceiveChar();
  int numFields = pgStream.ReceiveInteger2();
  int[] fieldFormats = new int[numFields];
  for(int i=0; i<numFields; i++)
    fieldFormats[i] = pgStream.ReceiveInteger2();
  lock(op);
  op.init(this, rowFormat, fieldFormats);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Locks connection and calls initializer for a new CopyOperation
 * Called via startCopy -> processCopyResults
 * @param op an unitialized CopyOperation
 * @throws SQLException on locking failure
 * @throws IOException on database connection failure
 */
private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException {
  pgStream.ReceiveInteger4(); // length not used
  int rowFormat = pgStream.ReceiveChar();
  int numFields = pgStream.ReceiveInteger2();
  int[] fieldFormats = new int[numFields];
  for(int i=0; i<numFields; i++)
    fieldFormats[i] = pgStream.ReceiveInteger2();
  lock(op);
  op.init(this, rowFormat, fieldFormats);
}
org.postgresql.core.v3QueryExecutorImpllock

Javadoc

Obtain lock over this connection for given object, blocking to wait if necessary.

Popular methods of QueryExecutorImpl

  • <init>
  • cancelCopy
    Finishes a copy operation and unlocks connection discarding any exchanged data.
  • doSubprotocolBegin
  • endCopy
    Finishes writing to copy and unlocks connection.
  • flushCopy
  • hasLock
  • initCopy
    Locks connection and calls initializer for a new CopyOperation Called via startCopy -> processCopyRe
  • interpretCommandStatus
  • processCopyResults
    Handles copy sub protocol responses from server. Unlocks at end of sub protocol, so operations on pg
  • processDeadParsedQueries
  • processDeadPortals
  • processResults
  • processDeadPortals,
  • processResults,
  • readFromCopy,
  • receiveAsyncNotify,
  • receiveCommandStatus,
  • receiveErrorResponse,
  • receiveFastpathResult,
  • receiveFields,
  • receiveNoticeResponse

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BoxLayout (javax.swing)
  • JFileChooser (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now