|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDatabaseHelper
Interface that describe useful function to manage the database
| Method Summary | |
|---|---|
void |
createNormalize_textFunction()
create a postgres function in postgres to remove accent, lower cased, trim, and remove unwanted char (, . ; ") |
void |
dropNormalize_textFunction()
Drop the Normalize_text function in postgres |
List<String> |
execute(File file,
boolean continueOnError)
|
void |
generateSqlCreationSchemaFile(File outputFile)
Generate the sql file to create all the Gisgraphy tables |
void |
generateSQLCreationSchemaFileToRerunImport(File outputFile)
Generate the SQL file to create all the Gisgraphy tables that have to be reset to rerun the import, the user and role tables won't be deleted |
void |
generateSQLDropSchemaFile(File outputFile)
Generate the sql file to drop all the Gisgraphy tables |
void |
generateSqlDropSchemaFileToRerunImport(File outputFile)
Generate the SQL file to drop all the Gisgraphy tables that have to be reset to rerun the import, the user and role tables won't be deleted |
boolean |
isNormalize_textFunctionCreated()
Determines if the normalize_text function is created in postgres |
| Method Detail |
|---|
void dropNormalize_textFunction()
boolean isNormalize_textFunctionCreated()
void createNormalize_textFunction()
List<String> execute(File file,
boolean continueOnError)
throws Exception
file - the file to execute, it will be read as an UTF-8 filecontinueOnError - if an error occured, the process will go on if this value is
true, if not it will throw an exception
Exception - in case of error during execution, or if the file is null or
does not existvoid generateSqlCreationSchemaFile(File outputFile)
outputFile - The File that we want to write the SQLvoid generateSQLDropSchemaFile(File outputFile)
outputFile - The File that we want to write the SQLvoid generateSQLCreationSchemaFileToRerunImport(File outputFile)
outputFile - The File that we want to write the SQLvoid generateSqlDropSchemaFileToRerunImport(File outputFile)
outputFile - The File that we want to write the SQL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||