All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.syncbuilder.internal.sync.DlpImpl
Summary |
public final class DlpImpl extends java.lang.Object { // Constructors 1 public DlpImpl(Socket) throws IOException; // Methods 12 public void addSyncLogEntry(String) throws DlpException; public void closeDB(int) throws DlpException; public int createDB(String, Char4, Char4, int, int, int) throws DlpException; public void deleteRecord(int, boolean, RecordID) throws DlpException; public void endHotSync(int) throws IOException, DlpException; public DBInfo getDBInfo(int, int, int) throws DlpException; public int getRecordCount(int) throws DlpException; public int openDB(String, int, int) throws DlpException; public Record readRecordByIndex(int, int, DatabaseImpl) throws DlpException; public UserInfo readUserInfo() throws DlpException; public void switchMessage() throws DlpException; public void writeRecord(int, Record) throws DlpException; }
This class implements the DLP in pure Java. It is here to
avoid cluttering of the com.syncbuilder.sync.Dlp
class, which
acts as a front-end to this class.
See Also: Dlp
Constructors |
· DlpImpl | Summary | Top |
public DlpImpl(Socket socket) throws IOException
!!!This constructor shall only be invoked by the Dlp class!!!
Methods |
· openDB | Summary | Top |
public int openDB(String name, int mode, int cardno) throws DlpException
Open a database on the Palm device through its cardnumber and its name, using the specified mode.
- Returns:
- the handle of the database
· closeDB | Summary | Top |
public void closeDB(int handle) throws DlpException
Close a single open database.
· createDB | Summary | Top |
public int createDB(String dbname, Char4 creator, Char4 type, int cardno, int flags, int version) throws DlpException
· getDBInfo | Summary | Top |
public DBInfo getDBInfo(int index, int cardno, int flags) throws DlpException
Get meta-information about a database on the Palm device.
- Returns:
- the meta-information about the database, or
null
if the database does not exist
· getRecordCount | Summary | Top |
public int getRecordCount(int handle) throws DlpException
Retrieve the number of records in the specified database.
· readRecordByIndex | Summary | Top |
public Record readRecordByIndex(int handle, int index, DatabaseImpl dbclass) throws DlpException
Retrieve a Record from the database.
- Returns:
null
if the record could not be found, a specialization ofcom.syncbuilder.storage.Record
otherwise.
· writeRecord | Summary | Top |
public void writeRecord(int handle, Record record) throws DlpException
Write the specified record to the specified database. If the Record had a RecordID of 0 before, it will be assigned a valid RecordID afterwards.
· deleteRecord | Summary | Top |
public void deleteRecord(int handle, boolean all, RecordID id) throws DlpException
Delete a Record from the database.
· readUserInfo | Summary | Top |
public UserInfo readUserInfo() throws DlpException
Read information about the HotSync user.
· switchMessage | Summary | Top |
public void switchMessage() throws DlpException
Switch the message on the Palm device from 'Identifying User' to 'Synchronizing'.
· addSyncLogEntry | Summary | Top |
public void addSyncLogEntry(String entry) throws DlpException
· endHotSync | Summary | Top |
public void endHotSync(int status) throws IOException, DlpException
End the HotSync procedure
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7