Servoy 5.x Public API

com.servoy.j2db.dataprocessing
Interface IDatabaseManager

All Superinterfaces:
ISaveConstants

public interface IDatabaseManager
extends ISaveConstants

The foundset manager interface for handling all kinds of database functions.


Field Summary
 
Fields inherited from interface com.servoy.j2db.dataprocessing.ISaveConstants
AUTO_SAVE_BLOCKED, SAVE_FAILED, STOPPED, VALIDATION_FAILED
 
Method Summary
 boolean commitTransaction()
          Commit a transaction
 String getDataSource(ITable table)
          Get a datasource for a table object interface
 ITable getTable(String dataSource)
          Get a table object interface for a datasource
 String getTransactionID(String serverName)
          Get the transaction id, the client may have.
 boolean hasTransaction()
          Check if a transaction is present
 void rollbackTransaction()
          rollback a transaction
 int saveData()
          Save data
 void startTransaction()
          Start a transaction
 

Method Detail

commitTransaction

boolean commitTransaction()
Commit a transaction


getDataSource

String getDataSource(ITable table)
Get a datasource for a table object interface

Parameters:
table - the table
Returns:
the datasource

getTable

ITable getTable(String dataSource)
                throws RepositoryException
Get a table object interface for a datasource

Parameters:
dataSource - the datasource
Returns:
the table interface
Throws:
RepositoryException

getTransactionID

String getTransactionID(String serverName)
                        throws ServoyException
Get the transaction id, the client may have.

Parameters:
serverName - the server name for which a transaction id is requested
Returns:
String the transaction id, returns null if none present.
Throws:
ServoyException

hasTransaction

boolean hasTransaction()
Check if a transaction is present


rollbackTransaction

void rollbackTransaction()
rollback a transaction


saveData

int saveData()
Save data

Returns:
a constant
See Also:
ISaveConstants

startTransaction

void startTransaction()
Start a transaction


Copyright © 2010 Servoy B.V.