cassis.database
public class SqliteDataBaseConnection extends java.lang.Object implements DataBaseConnection
| Modifier and Type | Field and Description |
|---|---|
int |
MAX_PARTITION_SIZE |
NOT_IN_DATABASE| Constructor and Description |
|---|
SqliteDataBaseConnection(java.lang.String base) |
| Modifier and Type | Method and Description |
|---|---|
double |
buildQt(double tex,
int molTag) |
static boolean |
checkSQLiteFile(java.lang.String pathFile)
Check if a file is a sqlite database for cassis.
|
void |
finalize() |
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(SimpleMoleculeDescriptionDB simpleMolDB) |
java.lang.String |
getMolName(int molTag) |
boolean |
testDatabaseConnection(javax.swing.JFrame frame) |
public final int MAX_PARTITION_SIZE
public MoleculeDescriptionDB getMoleculeDescriptionDB(SimpleMoleculeDescriptionDB simpleMolDB)
getMoleculeDescriptionDB in interface DataBaseConnectionpublic 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)
buildQt in interface DataBaseConnectionpublic 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(javax.swing.JFrame frame)
testDatabaseConnection in interface DataBaseConnectionpublic void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic 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 DataBaseConnection