BasicConfigure.java 3.1 KB
Newer Older
MaxKey单点登录官方's avatar
init v1  
MaxKey单点登录官方 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
package com.blazer.export.file;

import javax.sql.DataSource;

public class BasicConfigure {
	protected DataSource sourceDataSource;
	protected String fromUrl;
	protected String fromUser;
	
	protected int  	commitNumber = 2000;
	protected int  	threadSize =1;
	protected int	   limitTextSize=0;
	
	
	protected String fileNameSuffix=".txt";
	protected String terminatedString="|+|";

	protected String exportFilePath;

	protected String tableName;
	protected String outFileName;
	protected String selectFieldsString;
	protected String whereSqlString;
	protected String fileType="csv";
	protected boolean merge=true;
	protected int fileNameUseSysdate = 0;
	
	
	public BasicConfigure() {

	}


	public DataSource getSourceDataSource() {
		return sourceDataSource;
	}


	public void setSourceDataSource(DataSource sourceDataSource) {
		this.sourceDataSource = sourceDataSource;
	}


	public String getFromUrl() {
		return fromUrl;
	}


	public void setFromUrl(String fromUrl) {
		this.fromUrl = fromUrl;
	}


	public String getFromUser() {
		return fromUser;
	}


	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}


	public int getCommitNumber() {
		return commitNumber;
	}


	public void setCommitNumber(int commitNumber) {
		this.commitNumber = commitNumber;
	}


	public int getThreadSize() {
		return threadSize;
	}


	public void setThreadSize(int threadSize) {
		this.threadSize = threadSize;
	}


	public int getLimitTextSize() {
		return limitTextSize;
	}


	public void setLimitTextSize(int limitTextSize) {
		this.limitTextSize = limitTextSize;
	}


	public String getFileNameSuffix() {
		return fileNameSuffix;
	}


	public void setFileNameSuffix(String fileNameSuffix) {
		this.fileNameSuffix = fileNameSuffix;
	}


	public String getTerminatedString() {
		return terminatedString;
	}


	public void setTerminatedString(String terminatedString) {
		this.terminatedString = terminatedString;
	}


	public String getExportFilePath() {
		return exportFilePath;
	}


	public void setExportFilePath(String exportFilePath) {
		this.exportFilePath = exportFilePath;
	}


	public String getTableName() {
		return tableName;
	}


	public void setTableName(String tableName) {
		this.tableName = tableName;
	}


	public String getOutFileName() {
		return outFileName;
	}


	public void setOutFileName(String outFileName) {
		this.outFileName = outFileName;
	}


	public String getSelectFieldsString() {
		return selectFieldsString;
	}


	public void setSelectFieldsString(String selectFieldsString) {
		this.selectFieldsString = selectFieldsString;
	}


	public String getWhereSqlString() {
		return whereSqlString;
	}


	public void setWhereSqlString(String whereSqlString) {
		this.whereSqlString = whereSqlString;
	}


	public String getFileType() {
		return fileType;
	}


	public void setFileType(String fileType) {
		this.fileType = fileType;
	}


	public boolean isMerge() {
		return merge;
	}


	public void setMerge(boolean merge) {
		this.merge = merge;
	}


	public int getFileNameUseSysdate() {
		return fileNameUseSysdate;
	}


	public void setFileNameUseSysdate(int fileNameUseSysdate) {
		this.fileNameUseSysdate = fileNameUseSysdate;
	}
	
	
	
}