BioFunctionalDesigner  1.0
 All Classes Functions
Public Member Functions | List of all members
com.sanmixy.io.DataStorage Class Reference

Insert all the data into database. More...

Public Member Functions

void partStore ()
 
void rulesStore ()
 Insert all the rules into database, include the relations of all parts.

Exceptions
FileNotFoundException.

 
void headPartStore (BufferedReader br)
 Insert the rules of head nodes in a part sequence. More...
 
void doublePartCirStore (BufferedReader br)
 Insert the rules between two parts into database. More...
 
void triplePartCirStore (BufferedReader br)
 Insert the rules among three parts into database. More...
 
void quadraPartCirStore (BufferedReader br)
 Insert the rules among four parts into database. More...
 
void pentaPartCirStore (BufferedReader br)
 Insert the rules among five parts into database. More...
 
void deviceStore ()
 Insert the device data into database. More...
 
void twinsStore (String temp)
 Insert twin data into database. More...
 
void twinsStore ()
 Insert twin data into database. More...
 

Detailed Description

Insert all the data into database.

Author
Xia Yu
Version
1.0

Member Function Documentation

void com.sanmixy.io.DataStorage.deviceStore ( )

Insert the device data into database.

Exceptions
IOExceptionCreate a device object, and initial all the attributes, then save it by using device DAO object
void com.sanmixy.io.DataStorage.doublePartCirStore ( BufferedReader  br)

Insert the rules between two parts into database.

Exceptions
NumberFormatException,IOException
Parameters
br(BufferedReader) Create the DoublePartCir object, and initial all the attributes, then ues the DAO object to save it.
void com.sanmixy.io.DataStorage.headPartStore ( BufferedReader  br)

Insert the rules of head nodes in a part sequence.

Parameters
br(BufferedReader)
Exceptions
NumberFormatException,IOExceptionScan data from files, and create the object that you want to save. Use the setter to initial all the attributes,And then use the dao object to save it.

< Create a dao object with beanFactory object

void com.sanmixy.io.DataStorage.partStore ( )

Scan data from xml files and insert into PART table.

void com.sanmixy.io.DataStorage.pentaPartCirStore ( BufferedReader  br)

Insert the rules among five parts into database.

Exceptions
NumberFormatException,IOException
Parameters
br(BufferedReader) Create the PentaPartCir object, and initial all the attributes, then ues the DAO object to save it.
void com.sanmixy.io.DataStorage.quadraPartCirStore ( BufferedReader  br)

Insert the rules among four parts into database.

Exceptions
NumberFormatException,IOException
Parameters
br(BufferedReader) Create the QuadraPartCir object, and initial all the attributes, then ues the DAO object to save it.
void com.sanmixy.io.DataStorage.triplePartCirStore ( BufferedReader  br)

Insert the rules among three parts into database.

Exceptions
NumberFormatException,IOException
Parameters
br(BufferedReader) Create the TriplePartCir object, and initial all the attributes, then ues the DAO object to save it.
void com.sanmixy.io.DataStorage.twinsStore ( String  temp)

Insert twin data into database.

Exceptions
DocumentException
Parameters
tempCreate a xml reader, and get the twin data of a part which is giving in the parameter, then save all the twins by DAO object.
void com.sanmixy.io.DataStorage.twinsStore ( )

Insert twin data into database.

Exceptions
DocumentException
Parameters
tempCreate a xml reader, and get the twin data of a part, then save all the twins by DAO object.

The documentation for this class was generated from the following file: