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
相关文档:
表设计方面:
1、字段名尽量简化,不要超过18个字符
2、使用尽量小的数据类型,例如:MEDIUMINT比INT少占用25%空间
3、字段类型应尽量避免设置成可变长度,如:VARCHAR、BLOB、TEXT
4、用于比较的不同字段,应设置相同的类型及长度
5、尽可能将字段声明为NOT NULL,并指定DEFAULT
6、主索引尽可能短
7、仅创建真正 ......
MySQL Cluster
is a technology that enables
clustering of in-memory databases in a shared-nothing system. The
shared-nothing architecture allows the system to work with very
inexpensive hardware, and with a minimum of specific requirements
for hardware or software.
......
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 ......
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 ......
1、java是跨平台的,是一门解释性语言,一条一条地执行,解释器就是jvm,所以可以跨平台;
C/C++是编译性语言,所有编译完后再执行,跨平台的时候需要重新编译一次,以适应新的平台。
2、向上转型,继承 白马非马
父类对象转化为子类必须强制(SonClass)fatherClass
子类当 ......