public interface BBjAdminDatabase extends BBjAdminCommitPropertyWriter, java.io.Serializable, java.lang.Comparable<BBjAdminDatabase>
References an individual database configuration and commands. Provides access to the tables, stored procedures, views, etc. Changes to the database require calls to commit() on the BBjAdminDatabase instance.
The follow code shows some examples for interacting with a BBjAdminDatabas instance including how to get the instance to begin with.
import com.basis.api.admin.BBjAdminFactory;
import com.basis.api.admin.BBjAdminBase;
import com.basis.api.admin.BBjAdminDatabase;
import java.net.InetAddress;
...
BBjAdminBase api = BBjAdminFactory.getBBjAdmin(InetAddress.getByName("myserver"), 2002, true, "admin", "mypassword");
BBjAdminDatabase db = api.getDatabase("ChileCompany");
String databaseName = db.getString(BBjAdminDatabase.DATABASE);
BBjAdminSet tables = db.getTables(false);
BBjAdminTable custTable = db.getTable("CUSTOMER");
String tableName = custTable.getString(BBjAdminTable.NAME);
BBjAdminList columns = custTable.getColumns();
...
use com.basis.api.admin.BBjAdminFactory
use com.basis.api.admin.BBjAdminBase
use com.basis.api.admin.BBjAdminDatabase
use java.net.InetAddress
...
declare BBjAdminBase api!
declare BBjAdminSet databases!
declare BBjAdminDatabase db!
declare BBjAdminTable custTable!
api! = BBjAdminFactory.getBBjAdmin(InetAddress.getByName("myserver"), 2002, true, "admin", "mypassword")
db! = api!.getDatabase("ChileCompany")
databaseName$ = db!.getString(BBjAdminDatabase.DATABASE)
tables! = db.getTables(0)
custTable! = db!.getTable("CUSTOMER")
tableName$ = custTable!.getString(BBjAdminTable.NAME)
columns! = custTable!.getColumns()
...
Modifier and Type | Interface and Description |
---|---|
static class |
BBjAdminDatabase.AccessPolicy |
static class |
BBjAdminDatabase.DatabaseType |
static interface |
BBjAdminDatabase.DateHandler |
static class |
BBjAdminDatabase.UserType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCESS_POLICY
The access policy for this database.
|
static java.lang.String |
ADMIN_USERS
Comma-separated list of usernames who have admin privileges on the database.
|
static java.lang.String |
ADMINUSERS
See ADMIN_USERS
|
static java.lang.String |
ADVISORY_LOCKING
True/false whether to use advisory locking when accessing the data files for tables or not.
|
static java.lang.String |
ADVISORYLOCKING
See ADVISORY_LOCKING
|
static int |
ANALYSIS_FILTER_NO_OVERLAPS |
static int |
ANALYSIS_FILTER_NO_SINGLES |
static int |
ANALYSIS_FILTER_NONE |
static int |
ANALYSIS_FILTER_UNINDEXED_ONLY |
static java.lang.String |
AUTO_ANALYZE
See AUTO_ANALYZE_TABLES
|
static java.lang.String |
AUTO_ANALYZE_TABLES
True/false whether to allow BBjServices to automatically run table analysis when it deems appropriate.
|
static java.lang.String |
AUTOCOMMIT
True if the default for the database should be to use autocommit.
|
static java.lang.String |
CHARSET
Used to specify a specific character set used when processing records in the database.
|
static java.lang.String |
CREATE_TABLE_TYPE
Default type of file created when executing a CREATE TABLE statement.
|
static java.lang.String |
DATA
Full path to the DATA global variable which is a standard variable used in table data file
path specifications to avoid hard-coding paths into the database definition.
|
static java.lang.String |
DATABASE
Case-sensitive name of the database.
|
static java.lang.String |
DATE_COLUMNS_SORTED
Deprecated.
|
static java.lang.String |
DATE_TYPE_DEFS
A comma-separated list of typedef/dateformat mappings.
|
static java.lang.String |
DEFAULT_DATE_FORMAT |
static java.lang.String |
DEFAULT_DATE_TYPEDEF |
static java.lang.String |
DICTIONARY
Full path to the data dictionary files (*.1 files for legacy databases, and the *.DD files for enhanced)
|
static java.lang.String |
ENFORCE_VARCHAR_LENGTH
If true, variable length columns will only allow values that fit within the defined length.
|
static java.lang.String |
ESQL_COLLATE
True/false whether to use collation order on ESQL tables or ASCII order.
|
static java.lang.String |
FULL_FEATURED_CREATE_VIEW
True/false to enable/disable creation of views using the "new" format.
|
static java.lang.String |
HANDLE_VARIABLE_LENGTH_PADDED_VALUES
NOTE: This is a bit of an unusual setting.
|
static java.lang.String |
LINKED_CONNECT_PROPERTIES
Comma separated list of name=value pairs to be used at connect time.
|
static java.lang.String |
LINKED_DRIVER
Property used by linked database configurations to indicate the JDBC driver class.
|
static java.lang.String |
LINKED_PASSWORD
Property used by linked database configurations to indicate the password used to
connect to the database.
|
static java.lang.String |
LINKED_SHOULD_RESOLVE_GLOBALS
Property used by linked database configurations to indicate whether it should resolve any globals used.
|
static java.lang.String |
LINKED_URL
Property used by linked database configurations to indicate the URL used to connect to the database.
|
static java.lang.String |
LINKED_USER
Property used by linked database configurations to indicate the user used to connect to the database.
|
static java.lang.String |
LOCALE
Database Locale as a IETF BCP 47 language tag as describes by the Java
documentation for java.util.Locale.toLanguageTag().
|
static java.lang.String |
LOGFILE
Deprecated.
|
static java.lang.String |
LOGLEVEL |
static java.lang.String |
NUMERIC_EMPTY_STRING_AS_ZERO
If true, BBj SQL queries will return type NUMERIC values where the underlying data in the raw
record (MKEYED, XKEYED, VKEYED, but NOT ESQL) as zero instead of NULL.
|
static java.lang.String |
NUMERIC_STRIP_SPACES
If true, strip spaces from numeric field values before they are
translated into numbers.
|
static java.lang.String |
OBJECT_LEVEL_PERMISSIONS
True/false to enable object level permissions.
|
static java.lang.String |
OPTIMIZED_DATE_COLUMNS
Deprecated.
|
static java.lang.String |
OPTIMIZEDATECOLUMNS
If set to true, date columns will have optimization available.
|
static java.lang.String |
READ_ONLY
Sets the read only status for the entire database.
|
static java.lang.String |
READONLY
Sets the read only status for the entire database.
|
static java.lang.String |
REMOTE_ACCESS_POLICY
This is another layer of access that refers specifically to connections coming from machines other
than the local machine.
|
static java.lang.String |
REMOTE_DENY_USERS
Comma-separated list of users who have been explicitly denied access to the database.
|
static java.lang.String |
REMOTE_RO_USERS
Comma-separated list of users who have read-only access to the database from remote machines.
|
static java.lang.String |
REMOTE_RW_USERS
Comma-separated list of users who have read-write access to the database from remote machines.
|
static java.lang.String |
REMOTE_WHITELIST
Comma-separated list of IP address/hostnames that should NOT be treated as "remote" but rather,
follow the permissions defined for local connections.
|
static java.lang.String |
RO_USERS
Comma-separated list of users who have read-only access to the database.
|
static java.lang.String |
ROUSERS
See RO_USERS
|
static java.lang.String |
RW_USERS
Comma-separated list of users who have read-write access to the database.
|
static java.lang.String |
RWUSERS
See RW_USERS
|
static java.lang.String |
SPROC_CLASSPATH
Alternate classpath to use for stored procedure interpreters if the default classpath is not desireable.
|
static java.lang.String |
SPROC_DEBUG
If set to true, dot-step debugging is available when executing stored procedures.
|
static java.lang.String |
SPROC_RUN_AS_USER
True/false whether stored procedures should be run as the system user or as the user who connected
to the database.
|
static java.lang.String |
SQL_FACTORY
BBjSQLFactory implementation class (including package) used to provide custom scalar/group functions
accessible by this database.
|
static java.lang.String |
SQL_FACTORY_SSCP
Session Specific Classpath (SSCP) containing reference to the JAR used to provide custom scalar/group functions
accessible by this database.
|
static java.lang.String |
STATEMENT_TIMEOUT
Timeout in SECONDS for database file operations on statement execution and result set fetching.
|
static java.lang.String |
STRICT_KEY_CHECKING
Used by CREATE TABLE.
|
static java.lang.String |
STRICTKEYCHECKING
See STRICT_KEY_CHECKING
|
static java.lang.String |
TIMEOUT
Timeout in milliseconds for database requests.
|
static java.lang.String |
TRUNCATE_IF_TOO_LONG
If values returned from SQL queries are too long for the defined column, the value will be truncated.
|
static java.lang.String |
TRUNCATEIFTOOLONG
See TRUNCATE_IF_TOO_LONG
|
static java.lang.String |
TXN_ISOLATION
Default transaction isolation level.
|
static java.lang.String |
TYPE
Type of the database.
|
Modifier and Type | Method and Description |
---|---|
void |
addUser(BBjAdminDatabase.UserType p_type,
java.lang.String p_user)
Add a single user of a specified type.
|
void |
cleanupCaches()
Called to explicitly clear out any cached data such as open connections to the database
that were created internally by executing SQL statements on the database through calls
to executeSQL().
|
void |
close()
Should be called when you are completely done with this instance to cleanup
resources used on the server side.
|
BBjAdminDatabase.DateHandler |
createDateHandler()
Create a new date handler.
|
BBjAdminPrivilege |
createPrivilege()
Returns a new instance of an empty BBjAdminPrivilege object ready to be set for granting
or revoking privileges.
|
BBjAdminProcedure |
createProcedure()
Create an empty BBjAdminProcedure object to be used for procedure
creation.
|
BBjAdminProcedure |
createProcedure(java.lang.String p_name)
Create an empty BBjAdminProcedure object to be used for procedure
creation.
|
void |
createRole(java.lang.String p_roleName)
Creates a new role on the database used for grouping multiple users
for the purpose of granting and revoking prvileges.
|
void |
createRole(java.lang.String p_roleName,
java.lang.String p_comments)
Creates a new role on the database used for grouping multiple users
for the purpose of granting and revoking prvileges.
|
BBjAdminSequence |
createSequence(java.lang.String p_name)
Create an empty BBjAdminSequence object to be used for sequence creation.
|
BBjAdminTable |
createTable()
Create an empty BBjAdminTable object to be used for table creation.
|
BBjAdminTypeDef |
createTypeDef(java.lang.String p_name)
Create an empty BBjAdminTypeDef object to be used for type definition
creation.
|
BBjAdminView |
createView()
Create an empty BBjAdminView object to be used for view creation.
|
BBjAdminView |
createView(java.lang.String p_name)
Create an empty BBjAdminView object to be used for view creation.
|
void |
dropProcedure(java.lang.String p_name)
Drop a single procedure and also remove the source code file.
|
void |
dropProcedure(java.lang.String p_name,
boolean p_removeSource)
Drop a single procedure.
|
void |
dropRole(java.lang.String p_roleName)
Drops the specified role from the database.
|
void |
dropSequence(java.lang.String p_name)
Drop a single sequence.
|
void |
dropTable(java.lang.String p_name,
boolean p_removeFiles)
Drop a single table.
|
void |
dropTable(java.lang.String p_name,
boolean p_removeFiles,
boolean p_removeFulltextFiles)
Drop a single table.
|
void |
dropTypeDef(java.lang.String p_name)
Drop a single typedef.
|
void |
dropView(java.lang.String p_view)
Drop a single view.
|
void |
executeSQL(java.lang.String p_sql)
Executes an SQL statement or list of SQL statements separated by semi-colons.
|
BBjAdminDatabase.AccessPolicy |
getAccessPolicy()
Get the current access policy.
|
BBjAdminSet<BBjAdminDatabaseConnection> |
getConnections()
Returns a list of all current connections made to this database.
|
BBjAdminSet<BBjAdminDatabase.DateHandler> |
getDateHandlers()
Get the set of date handlers.
|
BBjAdminList<BBjAdminProperty> |
getDescriptiveProperties()
Used primarily by GUI applications like the Enterprise Manager to dynamically generate
an admin UI.
|
BBjAdminDictionaryMigrationInfo |
getDictionaryMigrationInfo(java.lang.String p_newDictionary,
java.lang.String p_dataLocation)
Returns information regarding the changes that may want to be made
to the "new" dictionary when a call is made to updateDatabase().
|
BBjAdminMetadataDefinition |
getMetadataDefinition()
Returns the definition for all the metadata in this database which includes database
metadata, table, view, SPROC, etc.
|
BBjAdminList<BBjAdminPrivilege> |
getPrivileges(java.lang.String p_userFilter,
java.lang.Integer p_privilegeType,
java.lang.Integer p_objectType,
java.lang.String p_objectIdFilter,
java.lang.String p_sortString)
Returns a list of all the privileges for the specified filter criteria.
|
BBjAdminProcedure |
getProcedure(java.lang.String p_name)
Get an individual procedure in the database by name.
|
BBjAdminSet<BBjAdminProcedure> |
getProcedures()
Get a set of all of the procedures in the database.
|
BBjAdminList<BBjAdminQueryAnalysis> |
getQueryAnalysis(int p_count)
Get a number of suggested indexes from query analysis.
|
BBjAdminList<BBjAdminQueryAnalysis> |
getQueryAnalysis(java.lang.String p_tableFilter,
int p_filterFlag,
int p_count)
Get a filtered number of suggested indexes from query analysis.
|
BBjAdminList<BBjAdminClientQueryData> |
getQueryData(java.lang.String p_tableFilter)
Returns a list of BBjAdminQueryData objects, one for each table that matches the
table filter criteria.
|
BBjAdminList<java.lang.String> |
getRoleMembers(java.lang.String p_roleName)
Returns a list of the users who are currently part of the specified role.
|
BBjAdminList<java.lang.String> |
getRoles()
Returns a list of all the names of the roles currently in the database.
|
java.util.List<BBjAdminTableSanity> |
getSanity()
Returns objects that contain information about the "sanity" of a particular database table.
|
BBjAdminTableSanity |
getSanity(java.lang.String p_table)
Returns objects that contain information about the "sanity" of a particular database table.
|
BBjAdminSequence |
getSequence(java.lang.String p_name)
Get an individual sequence in the database by name.
|
BBjAdminSet<BBjAdminSequence> |
getSequences()
Get a set of all of the sequences in the database.
|
BBjAdminSet<java.lang.String> |
getStandardPropertyNames() |
BBjAdminTable |
getTable(java.lang.String p_table)
Get an individual table in the database by name.
|
BBjAdminTable |
getTable(java.lang.String p_table,
boolean p_designMode,
boolean p_skipAnalysis)
Get an individual table from the database.
|
BBjAdminSet<java.lang.String> |
getTableNames(boolean p_includeSystemTables,
boolean p_refresh)
Returns a list of the table names available in the database sorted alphabetically.
|
BBjAdminSet<BBjAdminTable> |
getTables(boolean p_includeSystemTables)
Get a set of all of the tables in the database, optionally including the
system tables.
|
BBjAdminSet<BBjAdminSimpleTableInfo> |
getTablesSimpleInfo(boolean p_includeSystemTables)
Get a set of all of the tables in the database, optionally including the
system tables.
|
BBjAdminDatabase.DatabaseType |
getType()
Get the database type.
|
BBjAdminTypeDef |
getTypeDef(java.lang.String p_name)
Get an individual type definition in the database by name.
|
BBjAdminSet<BBjAdminTypeDef> |
getTypeDefs()
Get a set of all of the type definitions in the database.
|
BBjAdminSet<BBjAdminTypeDef> |
getTypeDefs(boolean p_refresh)
Get a set of all of the type definitions in the database.
|
java.util.Set<java.lang.String> |
getUsers(BBjAdminDatabase.UserType p_type)
Get the set of users of a specified type.
|
BBjAdminView |
getView(java.lang.String p_name)
Get an individual view in the database by name.
|
BBjAdminSet<BBjAdminView> |
getViews()
Get a set of all of the views in the database.
|
void |
grant(java.util.List<BBjAdminPrivilege> p_privileges)
Grants the specified list of privileges for this database.
|
boolean |
isUserProperty(java.lang.String p_property)
Returns true if the specified property is considered a user property which means it
is not a standard built-in property for databases.
|
boolean |
removeTableSanityMessage(java.lang.String p_sanityId)
Removes the specified alert message from the database sanity check table.
|
void |
removeUser(BBjAdminDatabase.UserType p_type,
java.lang.String p_user)
Remove a single user of a specified type.
|
java.lang.String |
resolveGlobals(java.lang.String p_string)
Takes the specified string and resolves any references to global values that
are defined in this database definition.
|
void |
revoke(java.util.List<BBjAdminPrivilege> p_privileges)
Revokes the specified list of privileges from this database.
|
void |
setAccessPolicy(BBjAdminDatabase.AccessPolicy p_policy)
Set the current access policy.
|
void |
setDateHandlers(BBjAdminSet<BBjAdminDatabase.DateHandler> p_handlers)
Set the set of date handlers.
|
void |
setPrivileges(int p_objectType,
java.lang.String p_objectId,
BBjAdminList<BBjAdminPrivilege> p_privileges)
Convenience method to allow efficient setting of a large group of permissions in a single
API call.
|
void |
setType(BBjAdminDatabase.DatabaseType p_type)
Set the database type.
|
void |
setUsers(BBjAdminDatabase.UserType p_type,
java.util.Set<java.lang.String> p_users)
Set all of the users of a specified type.
|
void |
terminateAnalysisJobs(java.lang.String p_database)
Suspends and removes all currently running table analysis jobs for the
specified database.
|
java.lang.String |
updateDatabase(BBjAdminDictionaryMigrationInfo p_info)
Takes the specified database and uses an online copy job to update its data
files to match the definition in the newly specified database.
|
getChangedProperties, getClearedProperties, getOriginalProperties
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
commit, rollback
static final java.lang.String DATABASE
static final java.lang.String TYPE
static final java.lang.String TIMEOUT
static final java.lang.String STATEMENT_TIMEOUT
static final java.lang.String CREATE_TABLE_TYPE
static final java.lang.String READ_ONLY
static final java.lang.String READONLY
static final java.lang.String ENFORCE_VARCHAR_LENGTH
static final java.lang.String SPROC_DEBUG
static final java.lang.String ESQL_COLLATE
@Deprecated static final java.lang.String OPTIMIZED_DATE_COLUMNS
static final java.lang.String LOCALE
static final java.lang.String NUMERIC_STRIP_SPACES
static final java.lang.String NUMERIC_EMPTY_STRING_AS_ZERO
static final java.lang.String OPTIMIZEDATECOLUMNS
static final java.lang.String AUTOCOMMIT
static final java.lang.String CHARSET
static final java.lang.String DATE_TYPE_DEFS
static final java.lang.String STRICT_KEY_CHECKING
static final java.lang.String STRICTKEYCHECKING
static final java.lang.String ADVISORY_LOCKING
static final java.lang.String ADVISORYLOCKING
static final java.lang.String TRUNCATE_IF_TOO_LONG
static final java.lang.String TRUNCATEIFTOOLONG
static final java.lang.String DICTIONARY
static final java.lang.String DATA
static final java.lang.String ACCESS_POLICY
static final java.lang.String REMOTE_ACCESS_POLICY
static final java.lang.String ADMIN_USERS
static final java.lang.String ADMINUSERS
static final java.lang.String RW_USERS
static final java.lang.String RWUSERS
static final java.lang.String RO_USERS
static final java.lang.String ROUSERS
static final java.lang.String REMOTE_RO_USERS
static final java.lang.String REMOTE_RW_USERS
static final java.lang.String REMOTE_DENY_USERS
static final java.lang.String REMOTE_WHITELIST
static final java.lang.String TXN_ISOLATION
static final java.lang.String AUTO_ANALYZE
static final java.lang.String AUTO_ANALYZE_TABLES
static final java.lang.String OBJECT_LEVEL_PERMISSIONS
static final java.lang.String DEFAULT_DATE_TYPEDEF
static final java.lang.String DEFAULT_DATE_FORMAT
static final java.lang.String FULL_FEATURED_CREATE_VIEW
static final java.lang.String SPROC_RUN_AS_USER
static final java.lang.String SPROC_CLASSPATH
static final java.lang.String SQL_FACTORY
static final java.lang.String SQL_FACTORY_SSCP
static final java.lang.String HANDLE_VARIABLE_LENGTH_PADDED_VALUES
static final java.lang.String LINKED_DRIVER
static final java.lang.String LINKED_URL
static final java.lang.String LINKED_SHOULD_RESOLVE_GLOBALS
static final java.lang.String LINKED_USER
static final java.lang.String LINKED_PASSWORD
static final java.lang.String LINKED_CONNECT_PROPERTIES
static final java.lang.String LOGLEVEL
@Deprecated static final java.lang.String LOGFILE
@Deprecated static final java.lang.String DATE_COLUMNS_SORTED
static final int ANALYSIS_FILTER_NONE
static final int ANALYSIS_FILTER_NO_OVERLAPS
static final int ANALYSIS_FILTER_UNINDEXED_ONLY
static final int ANALYSIS_FILTER_NO_SINGLES
java.util.Set<java.lang.String> getUsers(BBjAdminDatabase.UserType p_type) throws BBjAdminException
p_type
- Type of users.BBjAdminException
void setUsers(BBjAdminDatabase.UserType p_type, java.util.Set<java.lang.String> p_users) throws BBjAdminException
p_type
- Type of users.p_users
- Set of users.BBjAdminException
void addUser(BBjAdminDatabase.UserType p_type, java.lang.String p_user) throws BBjAdminException
p_type
- Type of user.p_user
- User name to add.BBjAdminException
void removeUser(BBjAdminDatabase.UserType p_type, java.lang.String p_user) throws BBjAdminException
p_type
- Type of user.p_user
- User name to remove.BBjAdminException
BBjAdminDatabase.AccessPolicy getAccessPolicy() throws BBjAdminException
BBjAdminException
void setAccessPolicy(BBjAdminDatabase.AccessPolicy p_policy) throws BBjAdminException
p_policy
- Policy to set.BBjAdminException
BBjAdminDatabase.DatabaseType getType() throws BBjAdminException
BBjAdminException
void setType(BBjAdminDatabase.DatabaseType p_type) throws BBjAdminException
p_type
- BBjAdminException
BBjAdminSet<BBjAdminDatabase.DateHandler> getDateHandlers() throws BBjAdminException
BBjAdminException
void setDateHandlers(BBjAdminSet<BBjAdminDatabase.DateHandler> p_handlers) throws BBjAdminException
p_handlers
- BBjAdminException
BBjAdminDatabase.DateHandler createDateHandler() throws BBjAdminException
BBjAdminException
BBjAdminSet<BBjAdminTable> getTables(boolean p_includeSystemTables) throws BBjAdminException
p_includeSystemTables
- Should system tables be included in the set?BBjAdminException
BBjAdminSet<BBjAdminSimpleTableInfo> getTablesSimpleInfo(boolean p_includeSystemTables) throws BBjAdminException
p_includeSystemTables
- Should system tables be included in the set?BBjAdminException
BBjAdminSet<java.lang.String> getTableNames(boolean p_includeSystemTables, boolean p_refresh) throws BBjAdminException
p_includeSystemTables
- Whether it should include the system tables or not.p_refresh
- Whether it should refresh the internal table name cache list.BBjAdminException
BBjAdminTable getTable(java.lang.String p_table) throws BBjAdminException
p_table
- BBjAdminException
BBjAdminTable getTable(java.lang.String p_table, boolean p_designMode, boolean p_skipAnalysis) throws BBjAdminException
p_table
- Name of the table.p_designMode
- Tells server to get indexes and possibly other table information
from the data dictionary only. Setting to false means that it may
bypass the data dictionary info all together if it is able to
derive index information from the file key structure alone.p_skipAnalysis
- Causes it to skip any automatic table analysis.BBjAdminException
BBjAdminTable createTable() throws BBjAdminException
BBjAdminException
BBjAdminSet<BBjAdminView> getViews() throws BBjAdminException
BBjAdminException
BBjAdminView getView(java.lang.String p_name) throws BBjAdminException
BBjAdminException
BBjAdminView createView(java.lang.String p_name) throws BBjAdminException
p_name
- BBjAdminException
BBjAdminView createView() throws BBjAdminException
BBjAdminException
void dropView(java.lang.String p_view) throws BBjAdminException
p_view
- BBjAdminException
BBjAdminSet<BBjAdminProcedure> getProcedures() throws BBjAdminException
BBjAdminException
BBjAdminProcedure getProcedure(java.lang.String p_name) throws BBjAdminException
p_name
- Name of the procedure.BBjAdminException
BBjAdminProcedure createProcedure(java.lang.String p_name) throws BBjAdminException
p_name
- Name of the new procedure.BBjAdminException
BBjAdminProcedure createProcedure() throws BBjAdminException
BBjAdminException
void dropProcedure(java.lang.String p_name, boolean p_removeSource) throws BBjAdminException
p_name
- BBjAdminException
void dropProcedure(java.lang.String p_name) throws BBjAdminException
p_name
- BBjAdminException
BBjAdminSet<BBjAdminTypeDef> getTypeDefs() throws BBjAdminException
BBjAdminException
BBjAdminSet<BBjAdminTypeDef> getTypeDefs(boolean p_refresh) throws BBjAdminException
p_refresh
- Whether it should refresh the list of type definitions if there are any currently cached.BBjAdminException
BBjAdminTypeDef getTypeDef(java.lang.String p_name) throws BBjAdminException
p_name
- Name of typedef.BBjAdminException
BBjAdminTypeDef createTypeDef(java.lang.String p_name) throws BBjAdminException
p_name
- Name of typedef.BBjAdminException
void dropTable(java.lang.String p_name, boolean p_removeFiles) throws BBjAdminException
p_name
- Name of the table to drop.p_removeFiles
- True if the data file for the table should also be removed. This includes .trigger files.
Note: .sync and .textsearch files used for FULLTEXT index files will be removed regardless
of whether this setting is true or false. If you do not want the FULLTEXT index files removed
then use the other dropTable() method taking the additional p_removeFulltextFiles parameter.BBjAdminException
void dropTable(java.lang.String p_name, boolean p_removeFiles, boolean p_removeFulltextFiles) throws BBjAdminException
p_name
- p_removeFiles
- True if the data file for the table should also be removed. This includes .trigger files.
Note: .sync and .textsearch files used for FULLTEXT index files will be only removed
if the p_removeFulltextFiles parameter is true.p_removeFulltextFiles
- True if the .sync and .textsearch files used for FULLTEXT index should be removed.BBjAdminException
void dropTypeDef(java.lang.String p_name) throws BBjAdminException
p_name
- BBjAdminException
BBjAdminSet<BBjAdminSequence> getSequences() throws BBjAdminException
BBjAdminException
BBjAdminSequence getSequence(java.lang.String p_name) throws BBjAdminException
p_name
- Name of the sequence.BBjAdminException
BBjAdminSequence createSequence(java.lang.String p_name) throws BBjAdminException
p_name
- Name of the sequence.BBjAdminException
void dropSequence(java.lang.String p_name) throws BBjAdminException
p_name
- BBjAdminException
BBjAdminList<BBjAdminQueryAnalysis> getQueryAnalysis(int p_count) throws BBjAdminException
p_count
- Maximum number of suggested indexes to get.BBjAdminException
BBjAdminList<BBjAdminQueryAnalysis> getQueryAnalysis(java.lang.String p_tableFilter, int p_filterFlag, int p_count) throws BBjAdminException
p_count
- Maximum number of suggested indexes to get.BBjAdminException
BBjAdminDictionaryMigrationInfo getDictionaryMigrationInfo(java.lang.String p_newDictionary, java.lang.String p_dataLocation) throws BBjAdminException
p_newDictionary
- Location of new data dictionary definition that the database should match after update.p_dataLocation
- Location where the table data files should be placed by the copy job during update.BBjAdminException
java.lang.String updateDatabase(BBjAdminDictionaryMigrationInfo p_info) throws BBjAdminException
p_info
- BBjAdminException
java.lang.String resolveGlobals(java.lang.String p_string) throws BBjAdminException
p_string
- String to be resolved.BBjAdminException
void terminateAnalysisJobs(java.lang.String p_database) throws BBjAdminException
p_database
- Name of database to suspend all jobs for.BBjAdminException
BBjAdminList<BBjAdminPrivilege> getPrivileges(java.lang.String p_userFilter, java.lang.Integer p_privilegeType, java.lang.Integer p_objectType, java.lang.String p_objectIdFilter, java.lang.String p_sortString) throws BBjAdminException
p_userFilter
- Use an SQL LIKE format filter value for the user or role name.p_privilegeType
- p_objectType
- p_objectIdFilter
- Use an SQL LIKE format filter value for the object IDp_sortString
- Specify column values and separate by commas. Valid values are
DD_PRIVILEGE_TYPE, DD_OBJECT_TYPE, DD_OBJECT_ID, DD_USER_ID,
DD_ROLE_ID, DD_WITH_GRANTBBjAdminException
void setPrivileges(int p_objectType, java.lang.String p_objectId, BBjAdminList<BBjAdminPrivilege> p_privileges) throws BBjAdminException
p_objectType
- p_objectId
- p_privileges
- BBjAdminException
void grant(java.util.List<BBjAdminPrivilege> p_privileges) throws BBjAdminException
p_privileges
- BBjAdminException
void revoke(java.util.List<BBjAdminPrivilege> p_privileges) throws BBjAdminException
p_privileges
- BBjAdminException
BBjAdminPrivilege createPrivilege()
void createRole(java.lang.String p_roleName) throws BBjAdminException
p_roleName
- BBjAdminException
void createRole(java.lang.String p_roleName, java.lang.String p_comments) throws BBjAdminException
p_roleName
- p_comments
- BBjAdminException
void dropRole(java.lang.String p_roleName) throws BBjAdminException
p_roleName
- BBjAdminException
BBjAdminList<java.lang.String> getRoles() throws BBjAdminException
BBjAdminException
BBjAdminList<java.lang.String> getRoleMembers(java.lang.String p_roleName) throws BBjAdminException
p_roleName
- BBjAdminException
void executeSQL(java.lang.String p_sql) throws BBjAdminException
p_sql
- BBjAdminException
void cleanupCaches()
java.util.List<BBjAdminTableSanity> getSanity() throws BBjAdminException
BBjAdminException
BBjAdminTableSanity getSanity(java.lang.String p_table) throws BBjAdminException
p_table
- Name of the table to get the sanity information for.BBjAdminException
boolean removeTableSanityMessage(java.lang.String p_sanityId) throws BBjAdminException
p_sanityId
- BBjAdminException
BBjAdminList<BBjAdminClientQueryData> getQueryData(java.lang.String p_tableFilter) throws BBjAdminException
p_tableFilter
- BBjAdminException
BBjAdminList<BBjAdminProperty> getDescriptiveProperties() throws BBjAdminException
BBjAdminException
BBjAdminMetadataDefinition getMetadataDefinition() throws BBjAdminException
BBjAdminException
boolean isUserProperty(java.lang.String p_property) throws BBjAdminException
p_property
- BBjAdminException
BBjAdminSet<java.lang.String> getStandardPropertyNames() throws BBjAdminException
BBjAdminException
void close()
BBjAdminSet<BBjAdminDatabaseConnection> getConnections() throws BBjAdminException
BBjAdminException