view src/main/java/de/mpiwg/gazetteer/bo/LGFullTextSearchFile.java @ 48:13555aff1f88

new: multiple full text searching. topics and tasks improvement.
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 21 Jan 2016 11:56:30 +0100
parents 37840afb7b80
children
line wrap: on
line source

package de.mpiwg.gazetteer.bo;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import cl.maps.duplex.DuplexKey;


@Entity
@Table(name="FullTextSearchFile")
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public class LGFullTextSearchFile extends DBEntry implements Cloneable, Serializable {
	private static final long serialVersionUID = 7805209462045170778L;
	

	@Column(name="userId")
	private Long userId;
	
	@Column(name="searchTerms")
	private String searchTerms;
	
	@Column(name="fileName")
	private String fileName;

	
	
	public boolean isEmpty() {
		if (this.fileName == null) {
			return true;
		} else {
			return false;
		}
	}



	public Long getUserId() {
		return userId;
	}



	public void setUserId(Long userId) {
		this.userId = userId;
	}


	public String getSearchTerms() {
		return searchTerms;
	}



	public void setSearchTerms(String searchTerms) {
		this.searchTerms = searchTerms;
	}



	public String getFileName() {
		return fileName;
	}



	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	
	
	public DuplexKey<Long, Long> getKey(){
		return new DuplexKey<Long, Long>(this.userId, this.id);
	}

	
	
}