java批量导入excel到Mysql数据库
package com.google.i_sales.service.data;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.WorkbookSettings;
import jxl.read.biff.BiffException;
import org.extremecomponents.table.limit.Limit;
import org.hibernate.Criteria;
import org.hibernate.JDBCException;
import org.hibernate.criterion.CriteriaSpecification;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Projection;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;
import org.hibernate.impl.CriteriaImpl;
import org.springframework.util.Assert;
import org.springside.core.dao.HibernateEntityDao;
import org.springside.core.dao.support.Page;
import org.springside.core.utils.BeanUtils;
import com.google.i_sales.components.acegi.domain.User;
import com.google.i_sales.domain.Business;
import com.google.i_sales.domain.Dcompany;
import com.google.i_sales.domain.MsalesCompany;
import com.google.i_sales.domain.Reject;
import com.google.i_sales.domain.SalesCompany;
import com.google.i_sales.domain.Service;
import com.google.i_sales.domain.TelephoneCompany;
import com.google.i_sales.domain.TradeType;
import com.google.i_sales.domain.UnitInfo;
import com.google.i_sales.domain.Vcompany;
import com.google.i_sales.service.common.BusinessManager;
import com.google.i_sales.service.common.RejectManager;
import com.google.i_sales.service.common.ServiceManager;
import com.google.i_sales.service.common.TradeTypeManager;
import com.google.i_sales.service.msales.MsalesCompanyManager;
import com.google.i_sales.service.sales.DcompanyManager;
import com.google.i_sales.service.sales.SalesCompanyManager;
import com.google.i_sales.service.securit
相关文档:
要備份 MySQL 資料庫主要分為兩個方法,一是將資料庫目錄完整備份:二是使用 MySQL 內建的 mysqldump 程式。
備份資料庫目錄
MySQL 預設的儲存目錄在 /var/lib/mysql 內容,底下會 ......
NDBCLUSTER
(also known as NDB
) is an in-memory
storage engine offering high-availability and data-persistence
features.
The NDBCLUSTER
storage engine can be
configured with a range of failover and load-balancing options,
but it is easiest t ......
sudo apt-get install mysql-server mysql-client
sudo apt-get install sun-java6-jdk(安装出意外,sudo dpkg -P sun-java6-bin,然后重新安装)
sudo vi /etc/network/interfaces 配置网络
auto eth0
iface eth0 inet dhcp(static)
address 192.168.8.108
netmask 255.255.255.0
gateway 192.168.8.1
:x保存
sud ......
This section is a “How-To
” that describes the basics
for how to plan, install, configure, and run a MySQL Cluster.
Whereas the examples in
Chapter 3, MySQL Cluster Configuration
provide more in-depth
information on a variety of clustering options and co ......
提高JAVA的性能,一般考虑如下的四个主要方面:
(1) 程序设计的方法和模式
一个良好的设计能提高程序的性能,这一点不仅适用于JAVA,也适用也任何的编程语言。因为它充分利用了各种资源,如内存,CPU,高速缓存,对象缓冲池及多线程,从而设计出高性能和可伸缩性强的系统。
当然,为了提高程序的性能而改变原来的设计是 ......