public int insertObject(Object obj) {
		String table = this.getTableName(this.getObjectClass(obj).toString());
		String fieldName[] = this.getField(obj);

		String sql = "INSERT INTO "+PREFIX+table+"(";

		for (int i = 0; i < fieldName.length; i++) {
			sql += fieldName[i];
			if(i != fieldName.length -1)
				sql += ",";
		}
		sql += ") values(";
		int result = -1;
		try {
			Object value[] = this.getValue(obj);
			for (int i = 0; i < value.length; i++) {
				if(value[i] instanceof Date){
					Date date = (Date)value[i];

					String values = this.dateFormat(date);
					sql += "'"+values+"'";
				}else{
					if(!validUtf8(value[i].toString())){
						sql += "N'"+value[i]+"'";
					}else{
						sql += "'"+value[i]+"'";
					}
				}

				if(i != value.length -1)
					sql += ",";
			}



			sql += ")";
			//system.out.println(sql);
			Statement stt = this.connection.createStatement();
			result = stt.executeUpdate(sql);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			return result;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return result;

	}