public class FBManager extends java.lang.Object implements FBManagerMBean
Constructor and Description |
---|
FBManager() |
FBManager(GDSType type) |
FBManager(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
createDatabase(java.lang.String fileName,
java.lang.String user,
java.lang.String password) |
void |
dropDatabase(java.lang.String fileName,
java.lang.String user,
java.lang.String password) |
java.lang.String |
getDefaultCharacterSet() |
int |
getDialect() |
java.lang.String |
getFileName()
mbean get-set pair for field fileName
Get the value of fileName
|
java.lang.String |
getName() |
int |
getPageSize() |
java.lang.String |
getPassword()
mbean get-set pair for field password
Get the value of password
|
int |
getPort() |
java.lang.String |
getServer() |
java.lang.String |
getState() |
java.lang.String |
getType() |
java.lang.String |
getUserName()
mbean get-set pair for field userName
Get the value of userName
|
boolean |
isCreateOnStart()
mbean get-set pair for field createOnStart
Get the value of createOnStart
|
boolean |
isDatabaseExists(java.lang.String fileName,
java.lang.String user,
java.lang.String password) |
boolean |
isDropOnStop()
mbean get-set pair for field dropOnStop
Get the value of dropOnStop
|
boolean |
isForceCreate()
Get the ForceCreate value.
|
void |
setCreateOnStart(boolean createOnStart)
Set the value of createOnStart
|
void |
setDefaultCharacterSet(java.lang.String firebirdCharsetName)
Set the default database character set.
|
void |
setDialect(int dialect)
Sets the dialect.
|
void |
setDropOnStop(boolean dropOnStop)
Set the value of dropOnStop
|
void |
setFileName(java.lang.String fileName)
Set the value of fileName
|
void |
setForceCreate(boolean forceCreate)
Set the ForceCreate value.
|
void |
setPageSize(int pageSize)
Set the page size that will be used for the database.
|
void |
setPassword(java.lang.String password)
Set the value of password
|
void |
setPort(int port) |
void |
setServer(java.lang.String host) |
void |
setType(java.lang.String type) |
void |
setUserName(java.lang.String userName)
Set the value of userName
|
void |
start() |
void |
stop() |
public FBManager()
public FBManager(GDSType type)
public FBManager(java.lang.String type)
public void start() throws java.lang.Exception
start
in interface FBManagerMBean
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface FBManagerMBean
java.lang.Exception
public java.lang.String getState()
getState
in interface FBManagerMBean
public java.lang.String getName()
getName
in interface FBManagerMBean
public void setServer(java.lang.String host)
setServer
in interface FBManagerMBean
public java.lang.String getServer()
getServer
in interface FBManagerMBean
public void setPort(int port)
setPort
in interface FBManagerMBean
public int getPort()
getPort
in interface FBManagerMBean
public java.lang.String getFileName()
FBManagerMBean
getFileName
in interface FBManagerMBean
public void setFileName(java.lang.String fileName)
FBManagerMBean
setFileName
in interface FBManagerMBean
fileName
- Value to assign to fileNamepublic java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getUserName()
FBManagerMBean
getUserName
in interface FBManagerMBean
public void setUserName(java.lang.String userName)
FBManagerMBean
setUserName
in interface FBManagerMBean
userName
- Value to assign to userNamepublic java.lang.String getPassword()
FBManagerMBean
getPassword
in interface FBManagerMBean
public void setPassword(java.lang.String password)
FBManagerMBean
setPassword
in interface FBManagerMBean
password
- Value to assign to passwordpublic void setDialect(int dialect)
dialect
- Database dialect (1 or 3)java.lang.IllegalArgumentException
- if value is not 1 or 3public int getDialect()
public void setPageSize(int pageSize)
FBManagerMBean
pageSize
must be one
of PageSizeConstants
. The default value depends on the Firebird version.
Some values are not valid on all Firebird versions.
setPageSize
in interface FBManagerMBean
pageSize
- The page size to be used in the created database, see PageSizeConstants
PageSizeConstants
public int getPageSize()
getPageSize
in interface FBManagerMBean
-1
if the database default is used.public void setDefaultCharacterSet(java.lang.String firebirdCharsetName)
FBManagerMBean
setDefaultCharacterSet
in interface FBManagerMBean
firebirdCharsetName
- Character set name, use Firebird names only; null
will use Firebird default (NONE
).
Specifying an invalid name will result in an exception during database creation.public java.lang.String getDefaultCharacterSet()
getDefaultCharacterSet
in interface FBManagerMBean
null
means not set.public boolean isCreateOnStart()
FBManagerMBean
isCreateOnStart
in interface FBManagerMBean
public void setCreateOnStart(boolean createOnStart)
FBManagerMBean
setCreateOnStart
in interface FBManagerMBean
createOnStart
- Value to assign to createOnStartpublic boolean isDropOnStop()
FBManagerMBean
isDropOnStop
in interface FBManagerMBean
public void setDropOnStop(boolean dropOnStop)
FBManagerMBean
setDropOnStop
in interface FBManagerMBean
dropOnStop
- Value to assign to dropOnStoppublic boolean isForceCreate()
isForceCreate
in interface FBManagerMBean
public void setForceCreate(boolean forceCreate)
setForceCreate
in interface FBManagerMBean
forceCreate
- The new ForceCreate value.public void createDatabase(java.lang.String fileName, java.lang.String user, java.lang.String password) throws java.lang.Exception
createDatabase
in interface FBManagerMBean
java.lang.Exception
public void dropDatabase(java.lang.String fileName, java.lang.String user, java.lang.String password) throws java.lang.Exception
dropDatabase
in interface FBManagerMBean
java.lang.Exception
public boolean isDatabaseExists(java.lang.String fileName, java.lang.String user, java.lang.String password) throws java.lang.Exception
isDatabaseExists
in interface FBManagerMBean
java.lang.Exception
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.