public class DBConnectionParameters
extends java.lang.Object
The Data Transfer Object pattern is used here.
Constructor and Description |
---|
DBConnectionParameters(java.lang.String url,
java.lang.String containerName,
boolean isTransactionRequired)
Construct an instance with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContainerName()
Return the container name
for the given XML database.
|
java.lang.String |
getUrl()
Return the URL/path of the location where
the XML database file is present.
|
boolean |
isTransactionRequired()
Return true if the connection is to be
created with transaction
and false if it is to be created without transaction.
|
void |
setContainerName(java.lang.String containerName)
Set the container name parameter to the given value.
|
void |
setIsTransactionRequired(boolean isTransactionRequired)
Set the transaction required parameter to the given value.
|
void |
setUrl(java.lang.String url)
Set the URL parameter to the given value.
|
public DBConnectionParameters(java.lang.String url, java.lang.String containerName, boolean isTransactionRequired)
url
- Url/Path for the location where the database
file is presentcontainerName
- Name of the container
for the XML Database.isTransactionRequired
- To specify
whether the transaction management is required for the
connection that is created.public java.lang.String getContainerName()
setContainerName(java.lang.String)
public java.lang.String getUrl()
setUrl(java.lang.String)
public boolean isTransactionRequired()
public void setContainerName(java.lang.String containerName)
containerName
- Name of the container
for the given XML database.getContainerName()
public void setIsTransactionRequired(boolean isTransactionRequired)
isTransactionRequired
- To specify whether the transaction
management is required for the connection that is created.public void setUrl(java.lang.String url)
url
- Location where the database file is present.getUrl()