⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sqlrcursor.java

📁 适合于Unix/Linux下的一个持久数据库连接池
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
	/** Returns the number of columns in the current	 *  result set.  */	public native int	colCount();	/** Returns the number of rows in the current 	 *  result set (if the result set is being	 *  stepped through, this returns the number	 *  of rows processed so far).  */	public native long	rowCount();	/** Returns the total number of rows that will 	 *  be returned in the result set.  Not all 	 *  databases support this call.  Don't use it 	 *  for applications which are designed to be 	 *  portable across databases.  -1 is returned	 *  by databases which don't support this option.  */	public native long	totalRows();	/** Returns the number of rows that were 	 *  updated, inserted or deleted by the query.	 *  Not all databases support this call.  Don't 	 *  use it for applications which are designed 	 *  to be portable across databases.  -1 is 	 *  returned by databases which don't support 	 *  this option.  */	public native long	affectedRows();	/** Returns the index of the first buffered row.	 *  This is useful when buffering only part of	 *  the result set at a time.  */	public native long	firstRowIndex();	/** Returns 0 if part of the result set is still	 *  pending on the server and 1 if not.  This	 *  method can only return 0 if 	 *  setResultSetBufferSize() has been called	 *  with a parameter other than 0.  */	public native boolean	endOfResultSet();	/** If a query failed and generated an error, 	 *  the error message is available here.  If 	 *  the query succeeded then this method 	 *  returns a NULL.  */	public native String	errorMessage();	/** Tells the connection to return NULL fields	 *  and output bind variables as empty strings. 	 *  This is the default.  */	public native void	getNullsAsEmptyStrings();	/** Tells the connection to return NULL fields	 *  and output bind variables as NULL's rather	 *  than as empty strings.  */	public native void	getNullsAsNulls();	/** Returns a pointer to the value of the 	 *  specified row and column.  */	public native String	getField(long row, int col);	/** Returns a pointer to the value of the 	 *  specified row and column.  */	public native String	getField(long row, String col);	/** Returns the specified field as a long integer */	public native long	getFieldAsInteger(long row, int col);	/** Returns the specified field as a long integer */	public native long	getFieldAsInteger(long row, String col);	/** Returns the specified field as a double floating point number */	public native double	getFieldAsDouble(long row, int col);	/** Returns the specified field as a double floating point number */	public native double	getFieldAsDouble(long row, String col);	/** Returns a pointer to the value of the 	 *  specified row and column.  */	public native byte[]	getFieldAsByteArray(long row, int col);	/** Returns the length of the 	 *  specified row and column.  */	public native byte[]	getFieldAsByteArray(long row, String col);	/** Returns the length of the 	 *  specified row and column.  */	public native long	getFieldLength(long row, int col);	/** Returns the length of the 	 *  specified row and column.  */	public native long	getFieldLength(long row, String col);	/** Returns a null terminated array of the 	 *  values of the fields in the specified row.  */	public native String[]	getRow(long row);	/** Returns a null terminated array of the 	 *  lengths of the fields in the specified row.  */	public native long[]	getRowLengths(long row);	/** Returns a null terminated array of the 	 *  column names of the current result set.  */	public native String[]	getColumnNames();	/** Returns the name of the specified column.  */	public native String	getColumnName(int col);	/** Returns the type of the specified column.  */	public native String	getColumnType(int col);	/** Returns the type of the specified column.  */	public native String	getColumnType(String col);	/** Returns the precision of the specified	 *  column.	 *  Precision is the total number of digits in	 *  a number.  eg: 123.45 has a precision of 5.	 *  For non-numeric types, it's the number of	 *  characters in the string. */	public native long	getColumnPrecision(int col);	/** Returns the precision of the specified	 *  column.	 *  Precision is the total number of digits in	 *  a number.  eg: 123.45 has a precision of 5.	 *  For non-numeric types, it's the number of	 *  characters in the string. */	public native long	getColumnPrecision(String col);	/** Returns the scale of the specified column.	 *  Scale is the total number of digits to the	 *  right of the decimal point in a number.	 *  eg: 123.45 has a scale of 2. */	public native long	getColumnScale(int col);	/** Returns the scale of the specified column.	 *  Scale is the total number of digits to the	 *  right of the decimal point in a number.	 *  eg: 123.45 has a scale of 2. */	public native long	getColumnScale(String col);	/** Returns true if the specified column can	 *  contain nulls and false otherwise. */	public native boolean	getColumnIsNullable(int col);	/** Returns true if the specified column can	 *  contain nulls and false otherwise. */	public native boolean	getColumnIsNullable(String col);	/** Returns true if the specified column is a	 * primary key and false otherwise. */	public native boolean	getColumnIsPrimaryKey(int col);	/** Returns true if the specified column is a	 * primary key and false otherwise. */	public native boolean	getColumnIsPrimaryKey(String col);	/** Returns true if the specified column is	 * unique and false otherwise. */	public native boolean	getColumnIsUnique(int col);	/** Returns true if the specified column is	 * unique and false otherwise. */	public native boolean	getColumnIsUnique(String col);	/** Returns true if the specified column is	 * part of a composite key and false otherwise. */	public native boolean	getColumnIsPartOfKey(int col);	/** Returns true if the specified column is	 * part of a composite key and false otherwise. */	public native boolean	getColumnIsPartOfKey(String col);	/** Returns true if the specified column is	 * an unsigned number and false otherwise. */	public native boolean	getColumnIsUnsigned(int col);	/** Returns true if the specified column is	 * an unsigned number and false otherwise. */	public native boolean	getColumnIsUnsigned(String col);	/** Returns true if the specified column was	 * created with the zero-fill flag and false	 * otherwise. */	public native boolean	getColumnIsZeroFilled(int col);	/** Returns true if the specified column was	 * created with the zero-fill flag and false	 * otherwise. */	public native boolean	getColumnIsZeroFilled(String col);	/** Returns true if the specified column	 * contains binary data and false	 * otherwise. */	public native boolean	getColumnIsBinary(int col);	/** Returns true if the specified column	 * contains binary data and false	 * otherwise. */	public native boolean	getColumnIsBinary(String col);	/** Returns true if the specified column	 * auto-increments and false otherwise. */	public native boolean	getColumnIsAutoIncrement(int col);	/** Returns true if the specified column	 * auto-increments and false otherwise. */	public native boolean	getColumnIsAutoIncrement(String col);	/** Returns the length of the specified column.  */	public native int	getColumnLength(int col);	/** Returns the length of the specified column.  */	public native int	getColumnLength(String col);	/** Returns the length of the longest field	 *  in the specified column.  */	public native int	getLongest(int col);	/** Returns the length of the longest field	 *  in the specified column.  */	public native int	getLongest(String col);	/** Tells the server to leave this result	 *  set open when the connection calls 	 *  suspendSession() so that another connection 	 *  can connect to it using resumeResultSet() 	 *  after it calls resumeSession(). */	public native void	suspendResultSet();	/** Returns the internal ID of this result set.	 *  This parameter may be passed to another 	 *  cursor for use in the resumeResultSet() 	 *  method.	 *  Note: the value returned by this method is only	 *  valid after a call to suspendResultSet(). */	public native short	getResultSetId();	/** Resumes a result set previously left open 	 *  using suspendSession().	 *  Returns 1 on success and 0 on failure.  */	public native boolean	resumeResultSet(short id);	/** Resumes a result set previously left open	 *  using suspendSession() and continues caching	 *  the result set to "filename".	 *  Returns 1 on success and 0 on failure.  */	public native boolean	resumeCachedResultSet(short id,							String filename);	/** cursor and connection are used internally, they're just	 *  public to make the JNI wrapper work faster.  */	public long		cursor;	public SQLRConnection	connection;	private native long	alloc(long con);	private native long	getOutputBindCursorInternal(String variable);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -