|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.notes.java.api.data.NotesData com.ibm.notes.java.api.data.NotesDatabaseData
public class NotesDatabaseData
Class that contains data that would be associated with a Notes database.
Field Summary |
---|
Fields inherited from class com.ibm.notes.java.api.data.NotesData |
---|
baseUrl, ENCODE_ERR, NOTES_COMMAND_SEPARATOR, NOTES_PARAMETER_SEPARATOR, NOTES_PATH_SEPARATOR, NOTES_PROTOCOL, NULL_ERR |
Constructor Summary | |
---|---|
NotesDatabaseData(Database database)
Constructs a NotesDatabaseData object using a lotus.domino.Database object. |
|
NotesDatabaseData(String url)
Constructs a NotesDatabaseData object using the database's encoded Notes URL. |
|
NotesDatabaseData(String server,
String database)
Constructs a NotesDatabaseData object using a server and a database. |
|
NotesDatabaseData(String server,
String database,
String title)
Constructs a NotesDatabaseData object using a server and a database. |
|
NotesDatabaseData(String server,
String filePath,
String replicaId,
String title)
Constructs a NotesDatabaseData object with all necessary parameters about the database. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether two NotesDatabaseData objects are equals to each other. |
String |
getFilePath()
Gets the file path to this database. |
String |
getOpenUrl()
Gets the encoded Notes URL to open the NotesData object. |
String |
getReplicaId()
Gets the replica id of this database. |
String |
getServer()
Gets the server of this database. |
String |
getTitle()
Gets the title of the database. |
Database |
open(Session session)
Gets the lotus.domino.Database object for a given session. |
protected void |
setBaseUrl()
Constructs the Notes URL of the data object from the given information. |
void |
setFilePath(String filePath)
Sets the file path. |
void |
setReplicaId(String replicaId)
Sets the replica id of this database. |
void |
setTitle(String title)
Sets the title of the database. |
Methods inherited from class com.ibm.notes.java.api.data.NotesData |
---|
encode, getBaseUrl, getParser, removeCommandAndParams |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotesDatabaseData(String server, String database) throws NotesException
server
- the name of the server where the database resides, should never be null,
use an empty string for a local database, should not be encodeddatabase
- file path on the server, or replica id of the database, should never be null, should not be encoded
NotesException
- thrown when the object cannot be constructed from the supplied parameterspublic NotesDatabaseData(String server, String filePath, String replicaId, String title) throws NotesException
server
- the name of the server where the database resides, should never be null,
use an empty string for a local database, should not be encodedfilePath
- file path on the server, should not be encodedreplicaId
- the replica id of the databasetitle
- the title of the database
NotesException
- thrown when the object cannot be constructed from the supplied parameterspublic NotesDatabaseData(String server, String database, String title) throws NotesException
server
- the name of the server where the database resides, should never be null,
use an empty string for a local database, should not be encodeddatabase
- database file path on the server, or replica id of the database, should never be null, should not be encodedtitle
- the title of the database
NotesException
- thrown when the object cannot be constructed from the supplied parameterspublic NotesDatabaseData(String url) throws NotesException
url
- the encoded Notes URL of the database
NotesException
- thrown when the URL specified cannot be parsedpublic NotesDatabaseData(Database database) throws NotesException
database
- database object representing this database
NotesException
- thrown when the object could not be constructedMethod Detail |
---|
protected void setBaseUrl() throws UnsupportedEncodingException
NotesData
setBaseUrl
in class NotesData
UnsupportedEncodingException
- thrown when the URL cannot be encodedpublic String getServer()
public String getFilePath()
public void setFilePath(String filePath) throws NotesException
filePath
- the unencoded file path to set
NotesException
- thrown when the file path cannot be setpublic String getReplicaId()
public void setReplicaId(String replicaId) throws NotesException
replicaId
- the replica id to set
NotesException
- thrown when the replica id cannot be setpublic String getTitle()
public void setTitle(String title)
title
- the title of the databasepublic boolean equals(Object obj)
equals
in class Object
obj
- object to test for equality
public String getOpenUrl()
NotesData
getOpenUrl
in class NotesData
public Database open(Session session) throws NotesException
session
- the session to use to get the database
NotesException
- thrown when the database cannot be opened
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |