|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.persist.RemoteDbContainer
public class RemoteDbContainer
The RemoteDbContainer class implements the Container
interface for remote access of specific persistence operations.
| Field Summary | |
|---|---|
static RemoteDbContainer |
BB6X_CONTAINER
|
| Constructor Summary | |
|---|---|
RemoteDbContainer(AppVersion defaultAppVersion)
Constructor - creates a new XmlContainer object with the given
AppVersion as the default AppVersion for future
framework calls on this container. |
|
| Method Summary | |
|---|---|
Id |
generateId(DataType dataType,
int nKey1)
Generates an Id instance specific to this DatabaseContainer
. |
Id |
generateId(DataType dataType,
int nKey1,
int nKey2)
Generates an Id instance specific to this XmlContainer
. |
Id |
generateId(DataType dataType,
java.lang.String strKey)
Generates an Id instance specific to this XmlContainer
. |
AppVersion |
getAppVersion()
Return the AppVersion |
static RemoteDbContainer |
getDefaultInstance()
Returns the default XmlContainer for the system. |
boolean |
isValidId(Id id)
Determines if the provided Id is a "valid" id for this
XmlContainer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RemoteDbContainer BB6X_CONTAINER
| Constructor Detail |
|---|
public RemoteDbContainer(AppVersion defaultAppVersion)
XmlContainer object with the given
AppVersion as the default AppVersion for future
framework calls on this container.
defaultAppVersion - the AppVersion to use in configuring this
container| Method Detail |
|---|
public AppVersion getAppVersion()
AppVersion associated with this XmlContainer
. This AppVersion serves as a default AppVersion
for subsequent calls into the persistence framework.
- Specified by:
getAppVersion in interface Container
- Returns:
- the
AppVersion defined for this container
public static RemoteDbContainer getDefaultInstance()
XmlContainer for the system. This container
represents an xml container instance configured to use the default application
version information.
XmlContainer as defined based upon the
default application version information
public Id generateId(DataType dataType,
java.lang.String strKey)
throws PersistenceException
Id instance specific to this XmlContainer
. The format of the provided string does not matter, but, it should
be a unique value in order for the generated Id itself to be
unique.
generateId in interface ContainerdataType - the DataType of the object that the generated
Id instance will refer tostrKey - the String value to use when generating the key value
of the Id instance
Id implementation instance, appropriate to this XmlContainer, whose key value is generated from the given value
PersistenceException - if an error occurs in the Id
generation processId.toExternalString()
public Id generateId(DataType dataType,
int nKey1,
int nKey2)
throws PersistenceException
Id instance specific to this XmlContainer
. The value of the provided integers does not matter, but, the
combination of the two values should be unique in order for the generated
Id itself to be unique.
generateId in interface ContainerdataType - the DataType of the object that the generated
Id instance will refer tonKey1 - an integer value to use when generating the key value of the
Id instancenKey2 - another integer value to use when generating the key value of
the Id instance
Id implementation instance, appropriate to this Container, whose key value is generated from the given integer
values
PersistenceException - if an error occurs in the Id
generation process
public Id generateId(DataType dataType,
int nKey1)
throws PersistenceException
Id instance specific to this DatabaseContainer
. The value of the provided integers does not matter, but, the
combination of the two values should be unique in order for the generated
Id itself to be unique.
generateId in interface ContainerdataType - the DataType of the object that the generated
Id instance will refer tonKey1 - an integer value to use when generating the key value of the
Id instance
Id implementation instance, appropriate to this DatabaseContainer, whose key value is generated from the given
integer values
PersistenceException - if an error occurs in the Id
generation processpublic boolean isValidId(Id id)
Id is a "valid" id for this
XmlContainer.
Id is considered valid for this XmlContainer
if it is "set" (see Id.isSet()), if it originates from this xml
container, and if it is an instance of the appropriate Id subclass for this
xml container.
isValidId in interface Containerid - the Id to examine for validity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||