public class SqliteDataBaseConnection extends java.lang.Object implements ClosableDataBaseConnection
| Modifier and Type | Field and Description |
|---|---|
int |
MAX_PARTITION_SIZE |
NOT_IN_DATABASE| Constructor and Description |
|---|
SqliteDataBaseConnection(java.lang.String base,
boolean memoryDb) |
| Modifier and Type | Method and Description |
|---|---|
double |
buildQt(double tex,
int molTag) |
java.lang.String |
changeDatabaseConnection(javax.swing.JFrame frame) |
static boolean |
checkSQLiteFile(java.lang.String pathFile)
Check if a file is a sqlite database for CASSIS.
|
void |
close() |
java.util.List<SimpleMoleculeDescriptionDB> |
getAllMoleculeDescriptionDB() |
java.lang.String |
getDataBaseOf(int molTag) |
java.lang.String |
getId() |
java.util.List<LineDescriptionDB> |
getLineDescriptionDB(java.util.List<SimpleMoleculeDescriptionDB> listSimpleMolDB,
double frequencyMin,
double frequencyMax,
double otherThresEupMin,
double otherThresEupMax,
double otherThresAijMin,
double otherTreshAijMax) |
java.util.List<LineDescriptionDB> |
getLineDescriptionDB(MoleculeDescriptionDB molecule,
double freqMinComp,
double freqMaxComp) |
java.util.List<LineDescriptionDB> |
getLineDescriptionDB(SimpleMoleculeDescriptionDB simpleMolDB,
double frequencyMin,
double frequencyMax,
double otherThresEupMin,
double otherThresEupMax,
double otherThresAijMin,
double otherTreshAijMax) |
MoleculeDescriptionDB |
getMoleculeDescriptionDB(int tag) |
MoleculeDescriptionDB |
getMoleculeDescriptionDB(SimpleMoleculeDescriptionDB simpleMolDB) |
java.lang.String |
getMolName(int molTag) |
SimpleMoleculeDescriptionDB |
getSimpleMolecule(int id) |
boolean |
testDatabaseConnection() |
public final int MAX_PARTITION_SIZE
public SqliteDataBaseConnection(java.lang.String base,
boolean memoryDb)
public MoleculeDescriptionDB getMoleculeDescriptionDB(int tag) throws UnknowMoleculeException
UnknowMoleculeExceptionpublic MoleculeDescriptionDB getMoleculeDescriptionDB(SimpleMoleculeDescriptionDB simpleMolDB) throws UnknowMoleculeException
getMoleculeDescriptionDB in interface DataBaseConnectionUnknowMoleculeExceptionpublic java.util.List<SimpleMoleculeDescriptionDB> getAllMoleculeDescriptionDB()
getAllMoleculeDescriptionDB in interface DataBaseConnectionpublic java.lang.String getMolName(int molTag)
getMolName in interface DataBaseConnectionpublic double buildQt(double tex,
int molTag)
throws UnknowMoleculeException
buildQt in interface DataBaseConnectionUnknowMoleculeExceptionpublic java.util.List<LineDescriptionDB> getLineDescriptionDB(MoleculeDescriptionDB molecule, double freqMinComp, double freqMaxComp)
getLineDescriptionDB in interface DataBaseConnectionpublic java.util.List<LineDescriptionDB> getLineDescriptionDB(SimpleMoleculeDescriptionDB simpleMolDB, double frequencyMin, double frequencyMax, double otherThresEupMin, double otherThresEupMax, double otherThresAijMin, double otherTreshAijMax)
getLineDescriptionDB in interface DataBaseConnectionpublic java.util.List<LineDescriptionDB> getLineDescriptionDB(java.util.List<SimpleMoleculeDescriptionDB> listSimpleMolDB, double frequencyMin, double frequencyMax, double otherThresEupMin, double otherThresEupMax, double otherThresAijMin, double otherTreshAijMax)
getLineDescriptionDB in interface DataBaseConnectionpublic boolean testDatabaseConnection()
testDatabaseConnection in interface DataBaseConnectionpublic static boolean checkSQLiteFile(java.lang.String pathFile)
pathFile - The absolute path of the file to test.public java.lang.String getDataBaseOf(int molTag)
getDataBaseOf in interface DataBaseConnectionpublic java.lang.String getId()
getId in interface DataBaseConnectionpublic java.lang.String changeDatabaseConnection(javax.swing.JFrame frame)
changeDatabaseConnection in interface DataBaseConnectionpublic SimpleMoleculeDescriptionDB getSimpleMolecule(int id)
getSimpleMolecule in interface DataBaseConnectionpublic void close()
close in interface ClosableDataBaseConnection