bookmarkrecord.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 59 行

JAVA
59
字号
package com.esri.solutions.jitk.personalization.dao;

/**
 * @author Derek Sedlmyer
 * @version 1.0
 * @created 05-Nov-2007 10:29:29 AM
 * 
 * This class extends the BookmarkInfoRecord class. It adds the data property, which
 * holds the xml data for a Bookmark database record. 
 */
public class BookmarkRecord extends BookmarkInfoRecord{

	/**
	 * The xml data containing information about a Bookmark record 
	 */
	private byte[] data;
	
	public BookmarkRecord(){

	}

	public void finalize() throws Throwable {

	}
	
	/**
	 * @return The xml data for a Bookmark Record as a byte array.
	 */
	public byte[] getData(){
		return data;
	}

	/**
	 * The Bookmark Record information contained in an XML string, converted to a byte array
	 * for database persistence.
	 * @param xml
	 */
	public void setData(byte[] xml){
		this.data = xml;
	}
	
	/**
	 * @return The concatenated string of properties for this record, including:
	 * Id, 
	 * Name,
	 * Description,
	 * Creator,
	 * Time Modified,
	 * Map Composition Id,
	 * Data
	 */
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append(super.toString());
		sb.append("\nData:          " + this.data);
		return sb.toString();
	}
	
}

⌨️ 快捷键说明

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