All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class postgresql.fastpath.FastpathArg

java.lang.Object
   |
   +----postgresql.fastpath.FastpathArg

public class FastpathArg
extends Object
Each fastpath call requires an array of arguments, the number and type dependent on the function being called.

This class implements methods needed to provide this capability.

For an example on how to use this, refer to the postgresql.largeobject package

See Also:
Fastpath, LargeObjectManager, LargeObject

Variable Index

 o bytes
Byte value if type=false;
 o type
Type of argument, true=integer, false=byte[]
 o value
Integer value if type=true

Constructor Index

 o FastpathArg(byte[])
Constructs an argument that consists of an array of bytes
 o FastpathArg(byte[], int, int)
Constructs an argument that consists of part of a byte array
 o FastpathArg(int)
Constructs an argument that consists of an integer value
 o FastpathArg(String)
Constructs an argument that consists of a String.

Variables

 o type
 public boolean type
Type of argument, true=integer, false=byte[]

 o value
 public int value
Integer value if type=true

 o bytes
 public byte bytes[]
Byte value if type=false;

Constructors

 o FastpathArg
 public FastpathArg(int value)
Constructs an argument that consists of an integer value

Parameters:
value - int value to set
 o FastpathArg
 public FastpathArg(byte bytes[])
Constructs an argument that consists of an array of bytes

Parameters:
bytes - array to store
 o FastpathArg
 public FastpathArg(byte buf[],
                    int off,
                    int len)
Constructs an argument that consists of part of a byte array

Parameters:
buf - source array
off - offset within array
len - length of data to include
 o FastpathArg
 public FastpathArg(String s)
Constructs an argument that consists of a String.

Parameters:
s - String to store

All Packages  Class Hierarchy  This Package  Previous  Next  Index