|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InspectionStore
A database or similar storage tool for a single type of Inspections.
Copyright 2008 Partner Software, Inc.
| Method Summary | |
|---|---|
void |
buildTables()
Creates the Admin table and inspection table. |
int |
checkOutJobs(InspectionStore centralStore,
java.lang.String user)
Checks out only records with assigned_to values == user name or uses where clause returned by preCheckout script. |
int |
checkOutJobsWithQuery(InspectionStore centralStore,
java.lang.String whereClause)
Checks out only records with assigned_to values == user name. |
void |
connect()
|
boolean |
databaseExists()
True/false for this store's database's existence. |
void |
disconnect()
|
java.lang.String |
getBlobTableName()
|
java.lang.String |
getFieldTableName()
|
java.lang.String |
getInspectionTableName()
|
java.lang.String |
getInspectionType()
|
java.lang.String |
getName()
|
java.lang.String |
getPicklistTableName()
|
java.lang.String |
getPublishingTableName()
|
java.lang.String |
getSyncTableName()
|
com.partnersoft.data.DateAndTime |
lastSynchronizationWith(java.lang.String storeName)
|
void |
matchDatabaseToSchema(java.lang.String tableName)
Compare table to stored schema. |
com.partnersoft.io.DataRecordSource |
query(java.lang.String sql)
Queries this store using the passed String as an SQL statement |
com.partnersoft.io.DataRecordSource |
query(java.lang.String sql,
int fetchSize)
Queries this store using the passed String as an SQL statement Uses a streaming result set. |
com.partnersoft.io.DataRecordSource |
queryBlobs()
Return record source for all Blobs in this store. |
com.partnersoft.io.DataRecordSource |
queryBlobs(int fetchSize)
Return record source for all Blobs in this store. |
com.partnersoft.io.DataRecordSource |
queryBlobs(java.lang.String whereClause)
Queries this store using the passed String as an SQL where clause. |
com.partnersoft.io.DataRecordSource |
queryBlobs(java.lang.String whereClause,
int fetchSize)
Queries this store using the passed String as an SQL where clause. |
com.partnersoft.io.DataRecordSource |
queryInspections()
Return record source for all inspections in this store. |
com.partnersoft.io.DataRecordSource |
queryInspections(int fetchSize)
Return record source for all inspections in this store. |
com.partnersoft.io.DataRecordSource |
queryInspections(java.lang.String whereClause)
Queries this store using the passed String as an SQL where clause. |
com.partnersoft.io.DataRecordSource |
queryInspections(java.lang.String whereClause,
int fetchSize)
Queries this store using the passed String as an SQL where clause. |
void |
removeInspection(java.lang.String guid)
|
Inspection |
retrieveInspection(java.lang.String guid)
Return the stored inspection with this guid. |
void |
storeInspection(Inspection inspection)
Save passed inspection in this store. |
int |
synchronize(InspectionStore centralStore)
Handles uploading changes to the central hub, and erasing the local database. |
com.partnersoft.data.Naming<java.lang.Object> |
synchronizeWithAllRecords(InspectionStore centralStore)
Updates all modified records on central store, and downloads all records from central store. |
com.partnersoft.data.Naming<java.lang.Object> |
synchronizeWithCheckOut(InspectionStore centralStore)
Updates all modified records on central store, and downloads all records from central store with module_assigned_to. |
void |
updateInspection(java.lang.String guid,
com.partnersoft.data.Naming<java.lang.Object> data)
|
void |
updateInspection(java.lang.String guid,
java.lang.Object... data)
|
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getInspectionType()
void storeInspection(Inspection inspection)
throws java.io.IOException,
java.sql.SQLException
inspection -
java.io.IOException
java.sql.SQLException
Inspection retrieveInspection(java.lang.String guid)
throws java.io.IOException,
java.sql.SQLException
guid -
java.io.IOException
java.sql.SQLExceptionboolean databaseExists()
void buildTables()
throws java.sql.SQLException
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryInspections()
throws java.sql.SQLException
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryInspections(int fetchSize)
throws java.sql.SQLException
fetchSize - - number of records to hold in memory at a time.
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryInspections(java.lang.String whereClause)
throws java.sql.SQLException
params -
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryInspections(java.lang.String whereClause,
int fetchSize)
throws java.sql.SQLException
whereClause - - Sql where clause to use.fetchSize - - number of records to hold in memory at a time.
java.sql.SQLException
com.partnersoft.io.DataRecordSource query(java.lang.String sql)
throws java.sql.SQLException
sql - - query SQL to execute
java.sql.SQLException - - When SQL badness occurs.
com.partnersoft.io.DataRecordSource query(java.lang.String sql,
int fetchSize)
throws java.sql.SQLException
sql - - query SQL to executefetchSize - - number of records to hold in memory at a time.
java.sql.SQLException - - When SQL badness occurs.
com.partnersoft.io.DataRecordSource queryBlobs()
throws java.sql.SQLException
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryBlobs(int fetchSize)
throws java.sql.SQLException
fetchSize - - number of records to hold in memory at a time.
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryBlobs(java.lang.String whereClause)
throws java.sql.SQLException
whereClause - - Sql where clause to use.
java.sql.SQLException
com.partnersoft.io.DataRecordSource queryBlobs(java.lang.String whereClause,
int fetchSize)
throws java.sql.SQLException
whereClause - - Sql where clause to use.fetchSize - - number of records to hold in memory at a time.
java.sql.SQLExceptionvoid matchDatabaseToSchema(java.lang.String tableName)
tableName -
com.partnersoft.data.DateAndTime lastSynchronizationWith(java.lang.String storeName)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
com.partnersoft.data.Naming<java.lang.Object> synchronizeWithAllRecords(InspectionStore centralStore)
throws java.io.IOException,
java.sql.SQLException
centralStore - - Store to move updated records to.
java.io.IOException
java.sql.SQLException
int synchronize(InspectionStore centralStore)
throws java.io.IOException,
java.sql.SQLException
Expects a connected centralStore.
centralStore -
java.io.IOException
java.sql.SQLException
com.partnersoft.data.Naming<java.lang.Object> synchronizeWithCheckOut(InspectionStore centralStore)
throws java.io.IOException,
java.sql.SQLException
centralStore - - Store to move updated records to.
java.io.IOException
java.sql.SQLException
void connect()
throws java.sql.SQLException
java.sql.SQLException
void disconnect()
throws java.sql.SQLException
java.sql.SQLException
int checkOutJobsWithQuery(InspectionStore centralStore,
java.lang.String whereClause)
throws java.io.IOException,
java.sql.SQLException
Where clause is appended to SQL of format 'Select * from
centralStore - - hub database.whereClause - - SQL where clause to execute.
java.io.IOException
java.sql.SQLException
int checkOutJobs(InspectionStore centralStore,
java.lang.String user)
throws java.io.IOException,
java.sql.SQLException
centralStore - user -
java.io.IOException
java.sql.SQLException
void removeInspection(java.lang.String guid)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
void updateInspection(java.lang.String guid,
com.partnersoft.data.Naming<java.lang.Object> data)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
void updateInspection(java.lang.String guid,
java.lang.Object... data)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLExceptionjava.lang.String getInspectionTableName()
java.lang.String getSyncTableName()
java.lang.String getBlobTableName()
java.lang.String getFieldTableName()
java.lang.String getPicklistTableName()
java.lang.String getPublishingTableName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||