Package org.postgresql.fastpath
Class FastpathArg
- java.lang.Object
-
- org.postgresql.fastpath.FastpathArg
-
- Direct Known Subclasses:
FastpathArg.ByteStreamWriterFastpathArg
public class FastpathArg extends java.lang.ObjectEach fastpath call requires an array of arguments, the number and type dependent on the function being called.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classFastpathArg.ByteStreamWriterFastpathArg
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytesEncoded byte value of argument.private intbytesLengthprivate intbytesStart
-
Constructor Summary
Constructors Constructor Description FastpathArg(byte[] bytes)Constructs an argument that consists of an array of bytes.FastpathArg(byte[] buf, int off, int len)Constructs an argument that consists of part of a byte array.FastpathArg(int value)Constructs an argument that consists of an integer value.FastpathArg(long value)Constructs an argument that consists of an integer value.FastpathArg(java.lang.String s)Constructs an argument that consists of a String.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FastpathArgof(ByteStreamWriter writer)(package private) voidpopulateParameter(ParameterList params, int index)
-
-
-
Constructor Detail
-
FastpathArg
public FastpathArg(int value)
Constructs an argument that consists of an integer value.- Parameters:
value- int value to set
-
FastpathArg
public FastpathArg(long value)
Constructs an argument that consists of an integer value.- Parameters:
value- int value to set
-
FastpathArg
public FastpathArg(byte[] bytes)
Constructs an argument that consists of an array of bytes.- Parameters:
bytes- array to store
-
FastpathArg
public FastpathArg(byte[] buf, int off, int len)Constructs an argument that consists of part of a byte array.- Parameters:
buf- source arrayoff- offset within arraylen- length of data to include
-
FastpathArg
public FastpathArg(java.lang.String s)
Constructs an argument that consists of a String.- Parameters:
s- String to store
-
-
Method Detail
-
of
public static FastpathArg of(ByteStreamWriter writer)
-
populateParameter
void populateParameter(ParameterList params, int index) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-