Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
: Class RealPrepareSQL (RealSQL-JDBC) (realpreparesql.html)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.reality.realsql.RealPrepareSQL
This abstract class is used as the base for the different types of PREPARE commands that can be issued to the Reality SQL Server.
Field Summary | |
protected int
|
accessPlan
|
protected RealDebug
|
debug
|
protected byte
|
NULL_BYTE
|
protected RealMessage
|
prepareMsg
|
Constructor Summary | |
RealPrepareSQL(int traceFlags) |
Method Summary | |
protected int | getAccessPlan() Get the accessplan. |
protected abstract int | getParamCount() |
protected abstract int | loadMetaData(java.util.ArrayList metaData) |
protected void | processMetaDataList(byte[] buf,
java.util.ArrayList metaData,
int metaColsOffset) Extracts column metadata from the byte array and stores each row in the supplied ArrayList. |
protected void | processMsg() Process the message returned from a PREPAREd statement, the accessPlan is extracted and the return code is checked for success or failure. |
protected int | replaceDelim(byte[] buf,
int howMany,
byte oldDelim,
byte newDelim) Replaces a number of delimiters in a byte array with another delimiter. |
protected void | separateIntoColumns(byte[] buf,
int bufOffset,
int numMetaDataCols,
int numResultSetCols) Splits the column metadata returned from a PREPARE into AM separated rows, each row has column null separated column values. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int accessPlan
protected RealMessage prepareMsg
protected RealDebug debug
protected final byte NULL_BYTE
Constructor Detail |
public RealPrepareSQL(int traceFlags) throws RealSQLException
Method Detail |
protected abstract int loadMetaData(java.util.ArrayList metaData) throws java.sql.SQLException
protected abstract int getParamCount() throws java.sql.SQLException
protected void processMsg() throws RealSQLException
protected int getAccessPlan()
protected int replaceDelim(byte[] buf, int howMany, byte oldDelim, byte newDelim)
buf
- byte array containing delimiter separated values.howMany
- number of delimiters to replace.oldDelim
- delimiter to replace.newDelim
- delimiter replacing oldDelim.protected void separateIntoColumns(byte[] buf, int bufOffset, int numMetaDataCols, int numResultSetCols)
buf
- byte array containing column metadata.bufOffset
- offset into byte array where column metadata starts.numMetaDataCols
- the number columns in each row of the column metadatanumResultSetCols
- the number of columns in the result set.protected void processMetaDataList(byte[] buf, java.util.ArrayList metaData, int metaColsOffset) throws java.sql.SQLException
buf
- byte array containg AM separated column metadata.metaData
- arraylist to contain column metadata information.metaColsOffset
- offset in byte array to start of column metadata.PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |