ex8_8.txt

来自「j2ee core design patterns」· 文本 代码 · 共 21 行

TXT
21
字号
Example 8.8  ReadOnlyRowSet.java: Populating the RowSet
package com.corej2eepatterns.dao.rowset;

// imports

public class ReadOnlyRowSet implements RowSet, Serializable {

	. . . 

	private Object[] dataRows;

	. . .  

	/** this is a read only row set */
	public boolean isReadOnly() {
		return true;
	}

	public void setReadOnly(boolean flag) throws SQLException {
		throw new SQLException(
				揜eadOnlyRowSet: Method not supported

⌨️ 快捷键说明

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