net.rim.device.api.database
Class DatabaseOptions

java.lang.Object
  extended by net.rim.device.api.database.DatabaseOptions

public final class DatabaseOptions
extends Object

Defines general database options.

Currently there is one supported option:

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 6.0.0

Constructor Summary
Category: Signed DatabaseOptions()
          Creates database options with default values.
 
Method Summary
Category: Signed  boolean foreignKeyConstraintsOn()
          Returns whether foreign key constraint is turned ON
Category: Signed  void set(String key, String value)
          Sets a new key-value pair.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

DatabaseOptions

public DatabaseOptions()
Creates database options with default values.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 6.0.0


Method Detail

set

public void set(String key,
                String value)
         throws DatabaseOptionsSetInvalidKeyException,
                DatabaseOptionsSetInvalidValueException
Sets a new key-value pair.

Parameters:
key - The key to be set; for example, foreign_key_constraints.
value - The value to be set; for example, on or off.
Throws:
DatabaseOptionsSetInvalidKeyException - If an invalid key was specified.
DatabaseOptionsSetInvalidValueException - If an invalid value for a key was specified.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 6.0.0

foreignKeyConstraintsOn

public boolean foreignKeyConstraintsOn()
Returns whether foreign key constraint is turned ON

Returns:
true if constraint is ON, false otherwise
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal