Package com.basis.api.admin.internal
Class BBjAdminSimpleDatabase
java.lang.Object
com.basis.api.admin.internal.BBjAdminSimpleCommitPropWriter
com.basis.api.admin.internal.BBjAdminSimpleDatabase
- All Implemented Interfaces:
BBjAdminCommitPropertyWriter
,BBjAdminCommitWriter
,BBjAdminDatabase
,BBjAdminPropertyReader
,BBjAdminPropertyWriter
,Serializable
,Comparable<BBjAdminDatabase>
,Remote
public abstract class BBjAdminSimpleDatabase
extends BBjAdminSimpleCommitPropWriter
implements BBjAdminDatabase
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from interface com.basis.api.admin.BBjAdminDatabase
BBjAdminDatabase.AccessPolicy, BBjAdminDatabase.DatabaseType, BBjAdminDatabase.DateHandler, BBjAdminDatabase.UserType
-
Field Summary
Fields inherited from interface com.basis.api.admin.BBjAdminDatabase
ACCESS_POLICY, ADMIN_USERS, ADMINUSERS, ADVISORY_LOCKING, ADVISORYLOCKING, ANALYSIS_FILTER_NO_OVERLAPS, ANALYSIS_FILTER_NO_SINGLES, ANALYSIS_FILTER_NONE, ANALYSIS_FILTER_UNINDEXED_ONLY, AUTO_ANALYZE, AUTO_ANALYZE_TABLES, AUTOCOMMIT, CHARSET, CREATE_TABLE_TYPE, DATA, DATABASE, DATE_COLUMNS_SORTED, DATE_TYPE_DEFS, DEFAULT_DATE_FORMAT, DEFAULT_DATE_TYPEDEF, DEFAULT_NUMERIC_SCALE, DICTIONARY, ENFORCE_VARCHAR_LENGTH, ESQL_COLLATE, EXPORT_FORMAT_HTML, EXPORT_FORMAT_JSON, EXPORT_FORMAT_SQL, FULL_FEATURED_CREATE_VIEW, HANDLE_VARIABLE_LENGTH_PADDED_VALUES, LINKED_CONNECT_PROPERTIES, LINKED_DRIVER, LINKED_PASSWORD, LINKED_SHOULD_RESOLVE_GLOBALS, LINKED_URL, LINKED_USER, LOCALE, LOGFILE, LOGLEVEL, NUMERIC_EMPTY_STRING_AS_ZERO, NUMERIC_STRIP_SPACES, OBJECT_LEVEL_PERMISSIONS, OPTIMIZED_DATE_COLUMNS, OPTIMIZEDATECOLUMNS, READ_ONLY, READONLY, REMOTE_ACCESS_POLICY, REMOTE_DENY_USERS, REMOTE_RO_USERS, REMOTE_RW_USERS, REMOTE_WHITELIST, RO_USERS, ROUSERS, RW_USERS, RWUSERS, SPROC_CLASSPATH, SPROC_DEBUG, SPROC_RUN_AS_USER, SQL_FACTORY, SQL_FACTORY_SSCP, STATEMENT_TIMEOUT, STRICT_KEY_CHECKING, STRICTKEYCHECKING, TIMEOUT, TRUNCATE_IF_TOO_LONG, TRUNCATEIFTOOLONG, TXN_ISOLATION, TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionBBjAdminSimpleDatabase
(BBjAdminDatabase p_commit) BBjAdminSimpleDatabase
(Map<String, Object> p_properties, Map<String, BBjAdminType> p_types, Set<String> p_readOnly) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addUser
(BBjAdminDatabase.UserType p_type, String p_user) Add a single user of a specified type.Create a new date handler.void
createRole
(String p_roleName) Creates a new role on the database used for grouping multiple users for the purpose of granting and revoking prvileges.Get the current access policy.Get the set of date handlers.getType()
Get the database type.getUsers
(BBjAdminDatabase.UserType p_type) Get the set of users of a specified type.void
removeUser
(BBjAdminDatabase.UserType p_type, String p_user) Remove a single user of a specified type.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
setType
(BBjAdminDatabase.DatabaseType p_type) Set the database type.void
setUsers
(BBjAdminDatabase.UserType p_type, Set<String> p_users) Set all of the users of a specified type.Methods inherited from class com.basis.api.admin.internal.BBjAdminSimpleCommitPropWriter
addType, canAddNewProperties, canClear, checkPermission, checkValueEqual, clear, clearProperties, clearProperty, commit, contains, contains, getBoolean, getChangedProperties, getClearedProperties, getDouble, getInt, getList, getLong, getOriginalProperties, getProperties, getReadOnly, getString, getType, getTypes, getValue, hasChanged, isReadOnly, refresh, rollback, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.basis.api.admin.BBjAdminCommitPropertyWriter
getChangedProperties, getClearedProperties, getOriginalProperties
Methods inherited from interface com.basis.api.admin.BBjAdminCommitWriter
commit, rollback
Methods inherited from interface com.basis.api.admin.BBjAdminDatabase
cleanupCaches, close, createPrivilege, createProcedure, createProcedure, createRole, createSequence, createTable, createTypeDef, createView, createView, dropProcedure, dropProcedure, dropRole, dropSequence, dropTable, dropTable, dropTypeDef, dropView, executeSQL, export, getConnections, getDescriptiveProperties, getDictionaryMigrationInfo, getMetadataDefinition, getPrivileges, getProcedure, getProcedures, getQueryAnalysis, getQueryAnalysis, getQueryData, getRoleMembers, getRoles, getSanity, getSanity, getSequence, getSequences, getStandardPropertyNames, getTable, getTable, getTableNames, getTables, getTablesSimpleInfo, getTypeDef, getTypeDefs, getTypeDefs, getView, getViews, grant, isUserProperty, removeTableSanityMessage, resolveGlobals, revoke, setPrivileges, terminateAnalysisJobs, updateDatabase
Methods inherited from interface com.basis.api.admin.BBjAdminPropertyReader
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
Methods inherited from interface com.basis.api.admin.BBjAdminPropertyWriter
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
Methods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
BBjAdminSimpleDatabase
-
BBjAdminSimpleDatabase
- Throws:
BBjAdminException
-
-
Method Details
-
addUser
Description copied from interface:BBjAdminDatabase
Add a single user of a specified type.- Specified by:
addUser
in interfaceBBjAdminDatabase
- Parameters:
p_type
- Type of user.p_user
- User name to add.- Throws:
BBjAdminException
-
createRole
Description copied from interface:BBjAdminDatabase
Creates a new role on the database used for grouping multiple users for the purpose of granting and revoking prvileges.- Specified by:
createRole
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-
getUsers
Description copied from interface:BBjAdminDatabase
Get the set of users of a specified type.- Specified by:
getUsers
in interfaceBBjAdminDatabase
- Parameters:
p_type
- Type of users.- Throws:
BBjAdminException
-
removeUser
Description copied from interface:BBjAdminDatabase
Remove a single user of a specified type.- Specified by:
removeUser
in interfaceBBjAdminDatabase
- Parameters:
p_type
- Type of user.p_user
- User name to remove.- Throws:
BBjAdminException
-
setUsers
public void setUsers(BBjAdminDatabase.UserType p_type, Set<String> p_users) throws BBjAdminException Description copied from interface:BBjAdminDatabase
Set all of the users of a specified type.- Specified by:
setUsers
in interfaceBBjAdminDatabase
- Parameters:
p_type
- Type of users.p_users
- Set of users.- Throws:
BBjAdminException
-
getAccessPolicy
Description copied from interface:BBjAdminDatabase
Get the current access policy.- Specified by:
getAccessPolicy
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-
setAccessPolicy
Description copied from interface:BBjAdminDatabase
Set the current access policy.- Specified by:
setAccessPolicy
in interfaceBBjAdminDatabase
- Parameters:
p_policy
- Policy to set.- Throws:
BBjAdminException
-
getType
Description copied from interface:BBjAdminDatabase
Get the database type.- Specified by:
getType
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-
setType
Description copied from interface:BBjAdminDatabase
Set the database type.- Specified by:
setType
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-
createDateHandler
Description copied from interface:BBjAdminDatabase
Create a new date handler. It has no effect until it is set and committed.- Specified by:
createDateHandler
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-
getDateHandlers
Description copied from interface:BBjAdminDatabase
Get the set of date handlers.- Specified by:
getDateHandlers
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-
setDateHandlers
public void setDateHandlers(BBjAdminSet<BBjAdminDatabase.DateHandler> p_handlers) throws BBjAdminException Description copied from interface:BBjAdminDatabase
Set the set of date handlers.- Specified by:
setDateHandlers
in interfaceBBjAdminDatabase
- Throws:
BBjAdminException
-