public class GpsCorrectionDatabase
extends java.lang.Object
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
GpsCorrectionDatabase()
Creates a GpsCorrectionDatabase pointing at the MySQL database "partner" server on PartnerHub.
|
GpsCorrectionDatabase(SqlDatabase database)
Creates a GpsCorrectionDatabase pointing at the given database.
|
GpsCorrectionDatabase(java.lang.String serverAddress)
Creates a GpsCorrectionDatabase pointing at the MySQL database "partner" server on the given server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
GpsCorrectionFile |
correctionFileNamed(java.lang.String name)
Returns the correction file for the given name, or null if there is none.
|
GpsCorrection |
correctionForGuid(java.lang.String guid)
Returns the correction for the given GUID, or null if there is none.
|
void |
createTables() |
void |
dropTables() |
void |
storeCorrection(GpsCorrection correction)
Stores the given correction so that it can be looked up later by guid.
|
void |
storeCorrection(java.lang.String guid,
java.lang.String fileName,
double longitude,
double latitude)
Stores the given correction so that it can be looked up later by guid.
|
void |
storeCorrectionFile(GpsCorrectionFile file)
Stores the given correction file so that it can be looked up later by name.
|
void |
storeCorrectionFile(java.lang.String name,
java.lang.String path,
long checksum,
DateAndTime lastModified)
Stores the given correction file so that it can be looked up later by name.
|
boolean |
tablesExist() |
public GpsCorrectionDatabase()
public GpsCorrectionDatabase(java.lang.String serverAddress)
public GpsCorrectionDatabase(SqlDatabase database)
public void connect()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dropTables()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean tablesExist()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void createTables()
throws java.sql.SQLException
java.sql.SQLExceptionpublic GpsCorrection correctionForGuid(java.lang.String guid) throws java.sql.SQLException
guid - java.sql.SQLExceptionpublic void storeCorrection(GpsCorrection correction) throws java.sql.SQLException
correction - java.sql.SQLExceptionpublic void storeCorrection(java.lang.String guid,
java.lang.String fileName,
double longitude,
double latitude)
throws java.sql.SQLException
java.sql.SQLExceptionpublic GpsCorrectionFile correctionFileNamed(java.lang.String name) throws java.sql.SQLException
java.sql.SQLExceptionpublic void storeCorrectionFile(GpsCorrectionFile file) throws java.sql.SQLException
java.sql.SQLExceptionpublic void storeCorrectionFile(java.lang.String name,
java.lang.String path,
long checksum,
DateAndTime lastModified)
throws java.sql.SQLException
java.sql.SQLException