Home > iBATIS, Java Language, Spring > Spring + iBatis // Part 6 // The Result Map Class

Spring + iBatis // Part 6 // The Result Map Class

You may have noticed when creating the sqlMap details that we referenced a class that we were mapping the table to.  This class is just a simple class that has read/write class properties for each of the table columns we will be using.

package com.example;

public class FilePickup {

 private long id;
 private String root_dir;
 private String include_subdirs;
 private String target_dir;
 private String file_filter_list;
 private String prefix_text;
 private String postfix_text;
 private String new_ext;
 private String keep_unique;
 private String del_source;
 private String audit_db_properties_file;

 public FilePickup() {
 }

 public void setId(long id) {
  this.id = id;
 }

 public long getId() {
  return id;
 }

 public void setRoot_dir(String root_dir) {
  this.root_dir = root_dir;
 }

 public String getRoot_dir() {
  return root_dir;
 }

 public void setInclude_subdirs(String include_subdirs) {
  this.include_subdirs = include_subdirs;
 }

 public String getInclude_subdirs() {
  return include_subdirs;
 }

 public void setTarget_dir(String target_dir) {
  this.target_dir = target_dir;
 }

 public String getTarget_dir() {
  return target_dir;
 }

 public void setFile_filter_list(String file_filter_list) {
  this.file_filter_list = file_filter_list;
 }

 public String getFile_filter_list() {
  return file_filter_list;
 }

 public void setPrefix_text(String prefix_text) {
  this.prefix_text = prefix_text;
 }

 public String getPrefix_text() {
  return prefix_text;
 }

 public void setPostfix_text(String postfix_text) {
  this.postfix_text = postfix_text;
 }

 public String getPostfix_text() {
  return postfix_text;
 }

 public void setNew_ext(String new_ext) {
  this.new_ext = new_ext;
 }

 public String getNew_ext() {
  return new_ext;
 }

 public void setKeep_unique(String keep_unique) {
  this.keep_unique = keep_unique;
 }

 public String getKeep_unique() {
  return keep_unique;
 }

 public void setDel_source(String del_source) {
  this.del_source = del_source;
 }

 public String getDel_source() {
  return del_source;
 }

 public void setAudit_db_properties(String audit_db_properties_file) {
  this.audit_db_properties_file = audit_db_properties_file;
 }

 public String getAudit_db_properties() {
  return audit_db_properties_file;
 }

 public String toString() {
  return this.target_dir;
 }

}

 

Advertisement
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.