⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testmain.java

📁 一个汽车售后服务站的典型的进销管理系统,B/S模式的
💻 JAVA
字号:
package com.xfaccp.base;

import java.util.Iterator;
import java.util.List;
import java.util.Set;


public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		BooksTable books=new BooksTable();
//		
//		BooksTableDao bstdao=new BooksTableDao();
//		//主表对象
//		BooktypeTable btype=new BooktypeTable();
//		btype.setCatalogid(1);
//		books.setBookname("ksdksd");
//		books.setPicture("picturebooks");
//		books.setBooktypeTable(btype);
		
		
		/*BooktypeTable table=new BooktypeTable();
		table.setCatalogid(1);
		BooktypeDao dao=new BooktypeDao();
		try
		{
			dao.loadbBooktype(table);
			dao.deleteBooktype(table);
			
		}*/
		
		
		/*BooksTableDao booksdao=new BooksTableDao();
		BooksTable books=new BooksTable();
		try
		{
			List list=booksdao.loadAllBooks();
			Iterator it=list.iterator();
			while(it.hasNext())
			{
				books=(BooksTable)it.next();
				System.out.println("=====图书编号======"+books.getBookid());
				System.out.println("====类型编号======"+books.getBooktypeTable().getCatalogid());
				System.out.println("====图片======"+books.getPicture());
			}
		}*/
		
		/*BooksTableDao booksdao=new BooksTableDao();
		BooksTable books=new BooksTable();
		BooktypeTable btype=new BooktypeTable();
		btype.setCatalogid(8);
		books.setBookid(21);
		books.setBookname("Html入门之后");
		books.setPicture("bb.gif");
		books.setPrice(66.6f);
		books.setBooktypeTable(btype);
		*/
		
//		BooktypeDao dao=new BooktypeDao();
//		BooktypeTable booktype=null;
//		try
//		{
//			List list=dao.loadbBooktypeByname("音乐类");
//			
//			Iterator it=list.iterator();
//			while(it.hasNext())
//			{
//				booktype=(BooktypeTable)it.next();
//				Set set=booktype.getBooksTables();
//				Iterator its=set.iterator();
//			}
//		}
		
	/*	try
		{
			books=booksdao.loadBooksById(20);
			System.out.println("=========="+books.getBookid());
			System.out.println("=========="+books.getBookname());
			System.out.println("=========="+books.getBooktypeTable().getCatalogid());
			System.out.println("=========="+books.getPrice());
			
		}*/
		
//		try
//		{
//		bstdao.addBooks(books);
//		}
	

		try
		{
			
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -