|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.PMFConfiguration
Contains the user configuration for the PMF. This is extended by AbstractPersistenceManagerFactory, which in turn is extended by PersistenceManagerFactoryimpl and ManagedConnectionFactoryImpl. If you add a setter/getter in here, there is an initialisation block in PersistenceManagerFactoryImpl that will likely need the parameter adding.
Nested Class Summary | |
protected static interface |
PMFConfiguration.ObjectPropertySetter
Interface allowing setting properties on a PMF with Object property values. |
protected static interface |
PMFConfiguration.StringPropertySetter
Interface allowing setting properties on a PMF with String property values. |
Field Summary | |
static java.lang.String |
ADD_UNIQUE_CONSTRAINT_MAP_INVERSE_PROPERTY
Property defining whether to add unique constraints to the element table for a map inverse field |
static java.lang.String |
AUTO_CREATE_COLUMNS_PROPERTY
Property for whether to auto create the columns upon loading. |
static java.lang.String |
AUTO_CREATE_CONSTRAINTS_PROPERTY
The system property that selects the default value for the AutoCreateConstraints setting. |
static java.lang.String |
AUTO_CREATE_SCHEMA_PROPERTY
Property for whether to auto create the schema upon loading. |
static java.lang.String |
AUTO_CREATE_TABLES_PROPERTY
Property for whether to auto create the tables upon loading. |
static java.lang.String |
AUTO_CREATE_WARN_ON_ERROR_PROPERTY
Property for whether to warn only when receiving an error on auto creation. |
static java.lang.String |
AUTO_START_CLASS_NAMES_PROPERTY
Property defining the names of the classes whose MetaData is to be loaded at startup. |
static java.lang.String |
AUTO_START_MECHANISM_MODE_PROPERTY
Property defining the mode of operation of any auto-start mechanism. |
static java.lang.String |
AUTO_START_MECHANISM_PROPERTY
Property defining the auto-start mechanism to use (if any). |
static java.lang.String |
AUTO_START_MECHANISM_XML_FILE_PROPERTY
Property defining the name of the file used when using the XML AutoStartMechanism. |
static java.lang.String |
CACHE_COLLECTIONS_LAZY_PROPERTY
Property defining whether to lazy load collections (when cached). |
static java.lang.String |
CACHE_COLLECTIONS_PROPERTY
Property defining whether to cache collections. |
static java.lang.String |
CACHE_LEVEL_1_TYPE_PROPERTY
Property defining the type of Level 1 Cache to use. |
static java.lang.String |
CACHE_LEVEL_2_CACHE_NAME_PROPERTY
Property defining the symbolic name of the cache to use for Level 2. |
static java.lang.String |
CACHE_LEVEL_2_CONFIGURATION_FILE_PROPERTY
Property defining the configuration file of the cache to use for Level 2. |
static java.lang.String |
CACHE_LEVEL_2_PROPERTY
Property defining whether to use a Level 2 Cache. |
static java.lang.String |
CACHE_LEVEL_2_TYPE_PROPERTY
Property defining the type of Level 2 Cache to use. |
static java.lang.String |
CHECK_EXIST_TABLES_VIEWS_PROPERTY
Property for whether to check if the table/view exists. |
static java.lang.String |
CLASS_LOADER_RESOLVER_NAME_PROPERTY
ClassLoaderResolver name property. |
protected boolean |
configurable
|
static java.lang.String |
CONNECTION_POOLING_CONFIGURATION_FILE_PROPERTY
Property defining the configuration file for connection pooling. |
static java.lang.String |
CONNECTION_POOLING_TYPE_PROPERTY
Property defining how to pool connections. |
static java.lang.String |
DATASTORE_ADAPTER_CLASSNAME_PROPERTY
Property defining the classname of the datastore adapter to use. |
static java.lang.String |
DATASTORE_CLASS_ADDITION_MAX_RETRIES_PROPERTY
Property for how many times to retry the addition of a class to the store management. |
static java.lang.String |
DATASTORE_DELAY_OPERATIONS_UNTIL_COMMIT_PROPERTY
Property defining if datastore ops are delated til commit. |
static java.lang.String |
DATE_TIMEZONE_PROPERTY
Property defining the timezone name to assume all dates are in in the datastore. |
static java.lang.String |
DEFAULT_INHERITANCE_STRATEGY_PROPERTY
Property defining the default strategy for inheritance, allowing change of behaviour from JDO2. |
static java.lang.String |
DETACH_ON_CLOSE_PROPERTY
Detach-on-close property. |
static java.lang.String |
FIXED_SCHEMA_PROPERTY
Whether the datastore schema is read-only and so writes should not be performed. |
static java.lang.String |
FOREIGN_KEY_AUTO_MODE
Auto-creation mode, including users MetaData specifications. |
static java.lang.String |
FOREIGN_KEY_CREATE_MODE_PROPERTY
The system property that defines the mode of creation of foreign keys. |
static java.lang.String |
FOREIGN_KEY_STRICT_MODE
Strict mode, only using users MetaData specifications. |
static java.lang.String |
GENERATOR_ID_CLASS_PROPERTY
Property defining the POID generator class to use for generating ids. |
static java.lang.String |
IMPLEMENTATION_CREATOR_NAME_PROPERTY
Implementation Creator name property. |
static java.lang.String |
INITILIAZE_PRIMARY_KEY_COLUMN_INFO
Property for whether to validate the tables upon loading. |
static java.lang.String |
JDO_CONNECTION_FACTORY_NAME_PROPERTY
Datastore connection factory name property. |
static java.lang.String |
JDO_CONNECTION_FACTORY_PROPERTY
Datastore connection factory property. |
static java.lang.String |
JDO_CONNECTION_FACTORY2_NAME_PROPERTY
Datastore connection factory 2 name property. |
static java.lang.String |
JDO_CONNECTION_FACTORY2_PROPERTY
Datastore connection factory 2 property. |
static java.lang.String |
JDO_DATASTORE_DRIVERNAME_PROPERTY
Datastore driver name property. |
static java.lang.String |
JDO_DATASTORE_PASSWORD_PROPERTY
Datastore connection password property. |
static java.lang.String |
JDO_DATASTORE_URL_PROPERTY
Datastore URL property. |
static java.lang.String |
JDO_DATASTORE_USERNAME_PROPERTY
Datastore connection username property. |
static java.lang.String |
JDO_DETACHALLONCOMMIT_PROPERTY
Detach-all-on-commit property |
static java.lang.String |
JDO_IGNORECACHE_PROPERTY
Ignore Cache property. |
static java.lang.String |
JDO_MAPPING_CATALOG_PROPERTY
Catalog name property. |
static java.lang.String |
JDO_MAPPING_PROPERTY
Mapping suffix property. |
static java.lang.String |
JDO_MAPPING_SCHEMA_PROPERTY
Schema name property. |
static java.lang.String |
JDO_MULTITHREADED_PROPERTY
Multithreaded property. |
static java.lang.String |
JDO_NONTRANSACTIONAL_READ_PROPERTY
Non-transactional Read property. |
static java.lang.String |
JDO_NONTRANSACTIONAL_WRITE_PROPERTY
Non-transactional Write property. |
static java.lang.String |
JDO_OPTIMISTIC_PROPERTY
Optimistic transaction property. |
static java.lang.String |
JDO_RESTOREVALUES_PROPERTY
Restore values property. |
static java.lang.String |
JDO_RETAINVALUES_PROPERTY
Retain values property. |
protected static Localiser |
LOCALISER
Localisation of messages. |
static java.lang.String |
MAX_FETCH_DEPTH_PROPERTY
Property defining the maximum fetch depth to use by default. |
static java.lang.String |
METADATA_JDO_FILE_EXTENSION_PROPERTY
Property defining the file extension for the JDO metadata files. |
static java.lang.String |
METADATA_JDOQUERY_FILE_EXTENSION_PROPERTY
Property defining the file extension for the JDO Query metadata files. |
static java.lang.String |
METADATA_ORM_FILE_EXTENSION_PROPERTY
Property defining the file extension for the ORM metadata files. |
static java.lang.String |
METADATA_VALIDATE_PROPERTY
Property defining whether to validate the metadata files. |
static java.lang.String |
PERSISTENCE_BY_REACHABILITY_AT_COMMIT
Property defining whether PBR is run at commit time (JDO default is true). |
static java.lang.String |
POID_TRANSACTION_ATTRIBUTE_PROPERTY
Property defining how to obtain a datastore connection when generating POIDs |
static java.lang.String |
POID_TRANSACTION_ISOLATION_PROPERTY
Property defining the transaction isolation to use when obtaining POIDs. |
static java.lang.String |
PROPERTIES_FILE
Property defining a file that contains properties that will be loaded by JPOX. |
static java.lang.String |
QUERY_ALLOW_ALL_SQL_STATEMENTS
Property for allow/disallow all SQL statements. |
static java.lang.String |
QUERY_FETCH_DIRECTION_PROPERTY
Property defining the direction in which a result set will be navigated. |
static java.lang.String |
QUERY_FETCH_SIZE_PROPERTY
Property defining the number of rows of a result set that should be fetched when more rows are needed. |
static java.lang.String |
QUERY_RESULT_SET_CONCURRENCY_PROPERTY
Property defining the concurrency of the result set |
static java.lang.String |
QUERY_RESULT_SET_TYPE_PROPERTY
Property defining the type of result set to create. |
static java.lang.String |
QUERY_TIMEOUT_PROPERTY
Property defining the timeout (seconds) for any queries. |
static java.lang.String |
QUERY_USE_FETCH_PLAN_PROPERTY
Property defining whetehr to use the FetchPlan when executing the query. |
static java.lang.String |
QUERY_USE_INNER_JOINS_ONLY_PROPERTY
Property defining the whether to use inner joins only on queries. |
static java.lang.String |
READ_ONLY_SCHEMA_PROPERTY
Whether the datastore schema is read-only and so writes should not be performed. |
static java.lang.String |
STRING_DEFAULT_LENGTH_PROPERTY
Property defining the default string length when storing a String type in the datastore and no length given. |
static java.lang.String |
TRANSACTION_ISOLATION_PROPERTY
Property defining the transaction isolation mode to use. |
static java.lang.String |
USE_UPDATE_LOCK_PROPERTY
Property defining whether to use "SELECT ... |
static java.lang.String |
VALIDATE_COLUMNS_PROPERTY
Property for whether to validate the columns upon loading. |
static java.lang.String |
VALIDATE_CONSTRAINTS_PROPERTY
Property for whether the validate the constraints upon loading |
static java.lang.String |
VALIDATE_TABLES_PROPERTY
Property for whether to validate the tables upon loading. |
Constructor Summary | |
PMFConfiguration()
Constructor. |
Method Summary | |
protected void |
assertConfigurable()
Asserts that a change to a configuration property is allowed. |
boolean |
equals(java.lang.Object obj)
Equality operator. |
boolean |
getAutoCreateColumns()
Get the default AutoCreateColumns setting for all PersistenceManager instances obtained from this factory. |
boolean |
getAutoCreateConstraints()
Get the default AutoCreateConstraints setting for all PersistenceManager instances obtained from this factory. |
boolean |
getAutoCreateTables()
Get the default AutoCreateTables setting for all PersistenceManager instances obtained from this factory. |
boolean |
getAutoCreateWarnOnError()
Get the default AutoCreateWarnOnError setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getAutoStartClassNames()
Accessor for the names of the classes to be loaded at startup. |
java.lang.String |
getAutoStartMechanism()
Accessor for the Auto-Start Mechanism for management of which classes are supported in this data store. |
java.lang.String |
getAutoStartMechanismMode()
Accessor for the Auto-Start Mechanism Mode for how the auto start mechanism operates. |
java.lang.String |
getAutoStartMechanismXmlFile()
Accessor for the name of the XML file to use when using the XML AutoStarter |
java.util.Calendar |
getCalendarForDateTimezone()
Accessor for the Calendar to be used in handling all timezone issues with the datastore. |
java.lang.String |
getCatalog()
Accessor for the catalog to use for this PMF. |
boolean |
getCheckExistTablesOrViews()
Get the default CheckExistTablesOrViews setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getClassLoaderResolverName()
Accessor for the name of the class loader resolver. |
java.lang.String |
getConnectionDriverName()
Get the driver name for the data store connection. |
java.lang.Object |
getConnectionFactory()
Get the data store connection factory. |
java.lang.Object |
getConnectionFactory2()
Get the second data store connection factory. |
java.lang.String |
getConnectionFactory2Name()
Get the name for the second data store connection factory. |
java.lang.String |
getConnectionFactoryName()
Get the name for the data store connection factory. |
java.lang.String |
getConnectionPassword()
Get the password for the data store connection. |
java.lang.String |
getConnectionPoolingConfigurationFile()
Get the connection pooling configuration file. |
java.lang.String |
getConnectionPoolingType()
Get the connection pooling type. |
java.lang.String |
getConnectionURL()
Get the URL for the data store connection. |
java.lang.String |
getConnectionUserName()
Get the user name for the data store connection. |
java.lang.String |
getDatastoreAdapterClassName()
Accessor for the datastore adapter class name (null implies autodetect) |
int |
getDatastoreClassAdditionMaxRetries()
Accessor for the maximum number of retries for adding a class to the store manager. |
boolean |
getDatastoreDelayOperationsEnabled()
Whether the datastore operations are delayed until commit. |
java.lang.String |
getDateTimezone()
Accessor for the timezone in which all dates are stored in the datastore. |
java.lang.String |
getDefaultInheritanceStrategy()
Accessor for the default inheritance strategy to use. |
boolean |
getDetachAllOnCommit()
Accessor for the DetachAllOnCommit setting. |
boolean |
getDetachOnClose()
Get the default DetachOnClose setting for all PersistenceManager instances obtained from this factory. |
Dictionary |
getDictionary()
Accessor for the dictionary. |
boolean |
getFixedSchema()
Get the fixedSchema setting for the datastore managed by this PMF. |
java.lang.String |
getForeignKeyCreateMode()
Accessor for the FK creation mode. |
java.lang.String |
getIdentifierCase()
Accessor for the Case Identifier |
java.lang.String |
getIdentifierNamingStrategy()
Get the naming strategy |
java.lang.String |
getIdentifierTablePrefix()
Accessor for the identifier prefix for tables |
java.lang.String |
getIdentifierTableSuffix()
Accessor for the identifier suffix for tables |
java.lang.String |
getIdentifierWordSeparator()
Accessor for the word separator for identifiers |
boolean |
getIgnoreCache()
Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getImplementationCreatorName()
Accessor for the name of the implementation creator class. |
boolean |
getInitializePrimaryKeyColumnInfo()
Get the default InitializePrimaryKeyColumnInfo setting for all PersistenceManager instances obtained from this factory. |
boolean |
getJdoCacheCollections()
Accessor for whether to cache collections. |
java.lang.Boolean |
getJdoCacheCollectionsLazy()
Accessor for whether to lazy load any cached collections. |
java.lang.String |
getJdoCacheLevel1Type()
Accessor for the JDO Level 1 Cache Type |
boolean |
getJdoCacheLevel2()
Accessor for whether to use a level 2 Cache. |
java.lang.String |
getJdoCacheLevel2CacheName()
Accessor for the JDO Level 2 Cache Name |
java.lang.String |
getJdoCacheLevel2ConfigurationFile()
Accessor for the JDO Level 2 Configuration File |
java.lang.String |
getJdoCacheLevel2Type()
Accessor for the JDO Level 2 Cache Type |
java.lang.String |
getJdoMetaDataFileExtension()
Accessor for the JDO MetaData file extension. |
java.lang.String |
getJdoqueryMetaDataFileExtension()
Accessor for the JDO Query MetaData file extension. |
java.lang.String |
getMapping()
Get the name for any mapping, used in retrieving metadata files for ORM/Query data. |
int |
getMaxFetchDepth()
Accessor for the maximum fetch depth to use by default. |
boolean |
getMetaDataValidate()
Accessor for whether to validate the metadata. |
boolean |
getMultithreaded()
Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalRead()
Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalWrite()
Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
boolean |
getOptimistic()
Get the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
protected java.util.Map |
getOptions()
Get the options for this PersistenceManagerFactory |
java.lang.String |
getOrmMetaDataFileExtension()
Accessor for the ORM MetaData file extension. |
boolean |
getPersistenceByReachabilityAtCommit()
Accessor for whether "persistence-by-reachability" is run at commit time. |
java.lang.String |
getPersistentIdGenerator()
Get the default PersistentIdGenerator class name for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getPoidTransactionAttribute()
Whether to use the PM connection or open a new connection |
int |
getPoidTransactionIsolationLevel()
Get the default transaction isolation level for all PoidGenerator instances. |
java.io.File |
getPropertiesFile()
Accessor for the properties file that is loaded by this |
java.lang.String |
getQueryFetchDirection()
Accessor for the fetch direction to use for ResultSet's. |
int |
getQueryFetchSize()
Accessor for the fetch size to use for ResultSet's. |
java.lang.String |
getQueryResultSetConcurrency()
Accessor for the concurrency of ResultSet |
java.lang.String |
getQueryResultSetType()
Accessor for the type of ResultSet |
int |
getQueryTimeout()
Accessor for the timeout for queries. |
boolean |
getQueryUseFetchPlan()
Accessor for whether to use the FetchPlan in queries. |
boolean |
getQueryUseInnerJoinsOnly()
Accessor for whether to use inner joins only in JDOQL. |
boolean |
getReadOnlySchema()
Get the readOnlySchema setting for the datastore managed by this PMF. |
boolean |
getRestoreValues()
Get the default RestoreValues setting for all PersistenceManager instances obtained from this factory. |
boolean |
getRetainValues()
Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
java.lang.String |
getSchema()
Accessor for the schema to use for this PMF. |
int |
getStringDefaultLength()
Accessor for the default max length for strings. |
int |
getTransactionIsolation()
Get the default transaction isolation level for all PersistenceManager instances obtained from this factory. |
boolean |
getUniqueConstraintsMapInverse()
Get the default UniqueConstraintsMapInverse setting for all PersistenceManager instances obtained from this factory. |
boolean |
getUseUpdateLock()
Get the use update lock flag for fetches. |
boolean |
getValidateColumns()
Get the default ValidateColumns setting for all PersistenceManager instances obtained from this factory. |
boolean |
getValidateConstraints()
Get the default ValidateConstraints setting for all PersistenceManager instances obtained from this factory. |
boolean |
getValidateTables()
Get the default ValidateTables setting for all PersistenceManager instances obtained from this factory. |
protected java.util.Map |
initPropertySetters()
Initialize the PROPERTY_SETTERS Map. |
boolean |
isQueryAllowAllSQLStatements()
Whether to allow running any SQL statement in SQL queries. |
void |
setAutoCreateColumns(boolean flag)
Set the default AutoCreateColumns setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoCreateConstraints(boolean flag)
Set the default AutoCreateConstraints setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoCreateSchema(boolean flag)
Set the default AutoCreateSchema setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoCreateTables(boolean flag)
Set the default AutoCreateTables setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoCreateWarnOnError(boolean flag)
Set the default AutoCreateWarnOnError setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoStartClassNames(java.lang.String classNames)
Mutator for the names of classes to load at startup. |
void |
setAutoStartMechanism(java.lang.String mechanism)
Set the default AutoStartMechanism setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoStartMechanismMode(java.lang.String mode)
Set the default AutoStartMechanismMode setting for all PersistenceManager instances obtained from this factory. |
void |
setAutoStartMechanismXmlFile(java.lang.String xmlFile)
Mutator for the XML filename when using the XML AutoStarter. |
void |
setCatalog(java.lang.String catalog)
Mutator for the catalog to use for this PMF. |
void |
setCheckExistTablesOrViews(boolean flag)
Set the default CheckExistTablesOrViews setting for all PersistenceManager instances obtained from this factory. |
void |
setClassLoaderResolverName(java.lang.String clrName)
Mutator for the class loader resolver name to use. |
void |
setConnectionDriverName(java.lang.String driverName)
Set the driver name for the data store connection. |
void |
setConnectionFactory(java.lang.Object connectionFactory)
Set the data store connection factory. |
void |
setConnectionFactory2(java.lang.Object connectionFactory)
Set the second data store connection factory. |
void |
setConnectionFactory2Name(java.lang.String connectionFactoryName)
Set the name for the second data store connection factory. |
void |
setConnectionFactoryName(java.lang.String connectionFactoryName)
Set the name for the data store connection factory. |
void |
setConnectionPassword(java.lang.String password)
Set the password for the data store connection. |
void |
setConnectionPoolingConfigurationFile(java.lang.String file)
Set the connection pooling configuration file to use. |
void |
setConnectionPoolingType(java.lang.String type)
Set the connection pooling type. |
void |
setConnectionURL(java.lang.String url)
Set the URL for the data store connection. |
void |
setConnectionUserName(java.lang.String userName)
Set the user name for the data store connection. |
void |
setDatastoreAdapterClassName(java.lang.String adapterClassName)
Set the name of the datastore adapter to use. |
void |
setDatastoreClassAdditionMaxRetries(int max)
Set the max number of times to retry adding a class to the store manager. |
void |
setDatastoreDelayOperationsEnabled(boolean flag)
Whether the datastore operations are delayed until commit. |
void |
setDateTimezone(java.lang.String timezone)
Set the timezone to use for dates in the datastore. |
void |
setDefaultInheritanceStrategy(java.lang.String strategy)
Mutator for the default inheritance strategy. |
void |
setDetachAllOnCommit(boolean flag)
Mutator for the DetachAllOnCommit setting. |
void |
setDetachOnClose(boolean flag)
Set the default DetachOnClose setting for all PersistenceManager instances obtained from this factory. |
void |
setFixedSchema(boolean flag)
Set whether this datastore schema is fixed |
void |
setForeignKeyCreateMode(java.lang.String mode)
Mutator for the foreign key creation mode |
void |
setIdentifierCase(java.lang.String value)
Accessor for the Case Identifier |
void |
setIdentifierNamingStrategy(java.lang.String strategy)
Set the identifier naming strategy |
void |
setIdentifierTablePrefix(java.lang.String value)
Accessor for the prefix for table identifiers |
void |
setIdentifierTableSuffix(java.lang.String value)
Accessor for the suffix for table identifiers |
void |
setIdentifierWordSeparator(java.lang.String value)
Accessor for the word separator for identifiers |
void |
setIgnoreCache(boolean flag)
Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
void |
setImplementationCreatorName(java.lang.String implCreatorName)
Mutator for the implementation creator name to use. |
void |
setInitializePrimaryKeyColumnInfo(boolean flag)
Set the default InitializePrimaryKeyColumnInfo setting for all PersistenceManager instances obtained from this factory. |
void |
setJdoCacheCollections(boolean cache)
Set whether to cache collections for this PMF. |
void |
setJdoCacheCollectionsLazy(java.lang.Boolean lazy)
Set whether to lazy load any cached collections for this PMF. |
void |
setJdoCacheLevel1Type(java.lang.String type)
Set the default Level 1 Cache Type for all PersistenceManager instances obtained from this factory. |
void |
setJdoCacheLevel2(boolean cache)
Set whether to use a Level 2 Cache for this PMF. |
void |
setJdoCacheLevel2CacheName(java.lang.String name)
Set the default Level 2 Cache Name for all PersistenceManager instances obtained from this factory. |
void |
setJdoCacheLevel2ConfigurationFile(java.lang.String confFile)
Set the default Level 2 Configuration File for all PersistenceManager instances obtained from this factory. |
void |
setJdoCacheLevel2Type(java.lang.String type)
Set the default Level 2 Cache Type for all PersistenceManager instances obtained from this factory. |
void |
setJdoMetaDataFileExtension(java.lang.String metadataFileExtension)
Mutator for the JDO MetaData file extension. |
void |
setJdoqueryMetaDataFileExtension(java.lang.String metadataFileExtension)
Mutator for the JDO Query MetaData file extension. |
void |
setMapping(java.lang.String mapping)
Set the name for any mapping, used in searching for ORM/Query metadata files. |
void |
setMaxFetchDepth(int value)
Mutator for the default max fetch depth |
void |
setMetaDataValidate(boolean validate)
Mutator for whether to validate the metadata |
void |
setMultithreaded(boolean flag)
Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalRead(boolean flag)
Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalWrite(boolean flag)
Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
void |
setOptimistic(boolean flag)
Set the default Optimistic setting for all PersistenceManager instances obtained from this factory. |
protected void |
setOptions(java.util.Map props)
Set the options for this PersistenceManagerFactory based on the given map of properties. |
protected void |
setOptions(java.util.Properties props)
Set the options for this PersistenceManagerFactory based on the given Properties. |
void |
setOrmMetaDataFileExtension(java.lang.String metadataFileExtension)
Mutator for the ORM MetaData file extension. |
void |
setPersistenceByReachabilityAtCommit(boolean flag)
Mutator for whether to run "persistence-by-reachability" at commit time. |
void |
setPersistentIdGenerator(java.lang.String generatorClassName)
Set the default PersistentIdGenerator class name for all PersistenceManager instances obtained from this factory. |
void |
setPoidTransactionAttribute(java.lang.String poidTransactionAttribute)
Set whether to use the PM connection or open a new connection |
void |
setPoidTransactionIsolation(int isolationLevel)
Set the default transaction isolation level for all PoidGenerator instances. |
protected void |
setPoidTransactionIsolation(java.lang.String isolationLevelName)
Set the default transaction isolation level for all PoidGenerator instances. |
void |
setPropertiesFile(java.lang.String value)
Accessor for the suffix for table identifiers |
void |
setQueryAllowAllSQLStatements(boolean allow)
Whether to allow running any SQL statement in SQL queries. |
void |
setQueryFetchDirection(java.lang.String dir)
Set the fetch direction to use for ResultSet's. |
void |
setQueryFetchSize(int size)
Set the fetch size to use for ResultSet's. |
void |
setQueryResultSetConcurrency(java.lang.String concur)
Set the concurrency of the ResultSet |
void |
setQueryResultSetType(java.lang.String type)
Set the type of the ResultSet |
void |
setQueryTimeout(int timeout)
Set the timeout for queries |
void |
setQueryUseFetchPlan(boolean useFetchPlan)
Set whether to use the FetchPlan in queries |
void |
setQueryUseInnerJoinsOnly(boolean useInner)
Set whether to use inner joins only |
void |
setReadOnlySchema(boolean flag)
Set whether this datastore schema is readOnly |
void |
setRestoreValues(boolean flag)
Set the default RestoreValues setting for all PersistenceManager instances obtained from this factory. |
void |
setRetainValues(boolean flag)
Set the default RetainValues setting for all PersistenceManager instances obtained from this factory. |
void |
setSchema(java.lang.String schema)
Mutator for the schema to use for this PMF. |
void |
setStringDefaultLength(int len)
Set the default length for strings. |
void |
setTransactionIsolation(int isolationLevel)
Set the default transaction isolation level for all PersistenceManager instances obtained from this factory. |
protected void |
setTransactionIsolation(java.lang.String isolationLevelName)
Set the default transaction isolation level for all PersistenceManager instances obtained from this factory. |
void |
setUniqueConstraintsMapInverse(boolean flag)
Set the default UniqueConstraintsMapInverse setting for all PersistenceManager instances obtained from this factory. |
void |
setUseUpdateLock(boolean flag)
Set whether to use the update lock for fetches. |
void |
setValidateColumns(boolean flag)
Set the default ValidateColumns setting for all PersistenceManager instances obtained from this factory. |
void |
setValidateConstraints(boolean flag)
Set the default ValidateConstraints setting for all PersistenceManager instances obtained from this factory. |
void |
setValidateTables(boolean flag)
Set the default ValidateTables setting for all PersistenceManager instances obtained from this factory. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Localiser LOCALISER
public static final java.lang.String JDO_DATASTORE_DRIVERNAME_PROPERTY
public static final java.lang.String JDO_DATASTORE_URL_PROPERTY
public static final java.lang.String JDO_DATASTORE_USERNAME_PROPERTY
public static final java.lang.String JDO_DATASTORE_PASSWORD_PROPERTY
public static final java.lang.String JDO_CONNECTION_FACTORY_NAME_PROPERTY
public static final java.lang.String JDO_CONNECTION_FACTORY2_NAME_PROPERTY
public static final java.lang.String JDO_CONNECTION_FACTORY_PROPERTY
public static final java.lang.String JDO_CONNECTION_FACTORY2_PROPERTY
public static final java.lang.String JDO_IGNORECACHE_PROPERTY
public static final java.lang.String JDO_OPTIMISTIC_PROPERTY
public static final java.lang.String JDO_MULTITHREADED_PROPERTY
public static final java.lang.String JDO_RETAINVALUES_PROPERTY
public static final java.lang.String JDO_RESTOREVALUES_PROPERTY
public static final java.lang.String JDO_NONTRANSACTIONAL_READ_PROPERTY
public static final java.lang.String JDO_NONTRANSACTIONAL_WRITE_PROPERTY
public static final java.lang.String JDO_MAPPING_PROPERTY
public static final java.lang.String JDO_MAPPING_CATALOG_PROPERTY
public static final java.lang.String JDO_MAPPING_SCHEMA_PROPERTY
public static final java.lang.String JDO_DETACHALLONCOMMIT_PROPERTY
public static final java.lang.String CLASS_LOADER_RESOLVER_NAME_PROPERTY
public static final java.lang.String IMPLEMENTATION_CREATOR_NAME_PROPERTY
public static final java.lang.String DETACH_ON_CLOSE_PROPERTY
public static final java.lang.String DATASTORE_ADAPTER_CLASSNAME_PROPERTY
public static final java.lang.String CHECK_EXIST_TABLES_VIEWS_PROPERTY
public static final java.lang.String VALIDATE_TABLES_PROPERTY
public static final java.lang.String VALIDATE_COLUMNS_PROPERTY
public static final java.lang.String VALIDATE_CONSTRAINTS_PROPERTY
public static final java.lang.String AUTO_CREATE_WARN_ON_ERROR_PROPERTY
public static final java.lang.String AUTO_CREATE_SCHEMA_PROPERTY
public static final java.lang.String AUTO_CREATE_TABLES_PROPERTY
public static final java.lang.String AUTO_CREATE_COLUMNS_PROPERTY
public static final java.lang.String AUTO_CREATE_CONSTRAINTS_PROPERTY
public static final java.lang.String INITILIAZE_PRIMARY_KEY_COLUMN_INFO
public static final java.lang.String READ_ONLY_SCHEMA_PROPERTY
public static final java.lang.String FIXED_SCHEMA_PROPERTY
public static final java.lang.String FOREIGN_KEY_CREATE_MODE_PROPERTY
public static final java.lang.String FOREIGN_KEY_AUTO_MODE
public static final java.lang.String FOREIGN_KEY_STRICT_MODE
public static final java.lang.String TRANSACTION_ISOLATION_PROPERTY
public static final java.lang.String GENERATOR_ID_CLASS_PROPERTY
public static final java.lang.String POID_TRANSACTION_ISOLATION_PROPERTY
public static final java.lang.String POID_TRANSACTION_ATTRIBUTE_PROPERTY
public static final java.lang.String AUTO_START_MECHANISM_PROPERTY
public static final java.lang.String AUTO_START_MECHANISM_MODE_PROPERTY
public static final java.lang.String AUTO_START_MECHANISM_XML_FILE_PROPERTY
public static final java.lang.String AUTO_START_CLASS_NAMES_PROPERTY
public static final java.lang.String CONNECTION_POOLING_TYPE_PROPERTY
public static final java.lang.String CONNECTION_POOLING_CONFIGURATION_FILE_PROPERTY
public static final java.lang.String CACHE_LEVEL_1_TYPE_PROPERTY
public static final java.lang.String CACHE_LEVEL_2_PROPERTY
public static final java.lang.String CACHE_LEVEL_2_TYPE_PROPERTY
public static final java.lang.String CACHE_LEVEL_2_CACHE_NAME_PROPERTY
public static final java.lang.String CACHE_LEVEL_2_CONFIGURATION_FILE_PROPERTY
public static final java.lang.String CACHE_COLLECTIONS_PROPERTY
public static final java.lang.String CACHE_COLLECTIONS_LAZY_PROPERTY
public static final java.lang.String METADATA_JDO_FILE_EXTENSION_PROPERTY
public static final java.lang.String METADATA_ORM_FILE_EXTENSION_PROPERTY
public static final java.lang.String METADATA_JDOQUERY_FILE_EXTENSION_PROPERTY
public static final java.lang.String METADATA_VALIDATE_PROPERTY
public static final java.lang.String USE_UPDATE_LOCK_PROPERTY
public static final java.lang.String DEFAULT_INHERITANCE_STRATEGY_PROPERTY
public static final java.lang.String DATASTORE_DELAY_OPERATIONS_UNTIL_COMMIT_PROPERTY
public static final java.lang.String DATASTORE_CLASS_ADDITION_MAX_RETRIES_PROPERTY
public static final java.lang.String ADD_UNIQUE_CONSTRAINT_MAP_INVERSE_PROPERTY
public static final java.lang.String QUERY_USE_FETCH_PLAN_PROPERTY
public static final java.lang.String QUERY_TIMEOUT_PROPERTY
public static final java.lang.String QUERY_FETCH_SIZE_PROPERTY
public static final java.lang.String QUERY_FETCH_DIRECTION_PROPERTY
public static final java.lang.String QUERY_RESULT_SET_TYPE_PROPERTY
public static final java.lang.String QUERY_RESULT_SET_CONCURRENCY_PROPERTY
public static final java.lang.String QUERY_USE_INNER_JOINS_ONLY_PROPERTY
public static final java.lang.String QUERY_ALLOW_ALL_SQL_STATEMENTS
public static final java.lang.String STRING_DEFAULT_LENGTH_PROPERTY
public static final java.lang.String DATE_TIMEZONE_PROPERTY
public static final java.lang.String PERSISTENCE_BY_REACHABILITY_AT_COMMIT
public static final java.lang.String MAX_FETCH_DEPTH_PROPERTY
public static final java.lang.String PROPERTIES_FILE
protected transient boolean configurable
Constructor Detail |
public PMFConfiguration()
Method Detail |
public boolean equals(java.lang.Object obj)
obj
- Object to compare against.
public void setConnectionUserName(java.lang.String userName)
userName
- the user name for the data store connection.public java.lang.String getConnectionUserName()
public void setConnectionPassword(java.lang.String password)
password
- the password for the data store connection.public void setConnectionURL(java.lang.String url)
url
- the URL for the data store connection.public java.lang.String getConnectionURL()
public void setConnectionDriverName(java.lang.String driverName)
driverName
- the driver name for the data store connection.public java.lang.String getConnectionDriverName()
public java.lang.String getConnectionPassword()
public void setConnectionFactoryName(java.lang.String connectionFactoryName)
connectionFactoryName
- name of the data store connection factory.public java.lang.String getConnectionFactoryName()
public void setConnectionFactory(java.lang.Object connectionFactory)
connectionFactory
- the data store connection factory.public java.lang.Object getConnectionFactory()
public void setConnectionFactory2Name(java.lang.String connectionFactoryName)
connectionFactoryName
- name of the data store connection factory.public java.lang.String getConnectionFactory2Name()
public void setConnectionFactory2(java.lang.Object connectionFactory)
connectionFactory
- the data store connection factory.public java.lang.Object getConnectionFactory2()
public void setMultithreaded(boolean flag)
flag
- the default Multithreaded setting.public boolean getMultithreaded()
public void setOptimistic(boolean flag)
flag
- the default Optimistic setting.public boolean getOptimistic()
public void setRetainValues(boolean flag)
flag
- the default RetainValues setting.public boolean getRetainValues()
public void setRestoreValues(boolean flag)
flag
- the default RestoreValues setting.public boolean getRestoreValues()
public void setNontransactionalRead(boolean flag)
flag
- the default NontransactionalRead setting.public boolean getNontransactionalRead()
public void setNontransactionalWrite(boolean flag)
flag
- the default NontransactionalWrite setting.public boolean getNontransactionalWrite()
public void setIgnoreCache(boolean flag)
flag
- the default IgnoreCache setting.public boolean getIgnoreCache()
public void setDetachOnClose(boolean flag)
flag
- the default DetachOnClose setting.public boolean getDetachOnClose()
public void setDetachAllOnCommit(boolean flag)
flag
- the default DetachAllOnCommit setting.public boolean getDetachAllOnCommit()
public void setMapping(java.lang.String mapping)
mapping
- the mapping namepublic java.lang.String getMapping()
public void setCatalog(java.lang.String catalog)
catalog
- Name of the catalogpublic java.lang.String getCatalog()
public void setSchema(java.lang.String schema)
schema
- Name of the schemapublic java.lang.String getSchema()
public void setDatastoreAdapterClassName(java.lang.String adapterClassName)
adapterClassName
- Name of the class of the datastore adapter to use.public java.lang.String getDatastoreAdapterClassName()
public void setConnectionPoolingType(java.lang.String type)
type
- The connection pooling typepublic java.lang.String getConnectionPoolingType()
public void setConnectionPoolingConfigurationFile(java.lang.String file)
file
- The connection pooling configuration filepublic java.lang.String getConnectionPoolingConfigurationFile()
public void setPersistentIdGenerator(java.lang.String generatorClassName)
generatorClassName
- the default persistent Id Generator class name.public java.lang.String getPersistentIdGenerator()
public void setCheckExistTablesOrViews(boolean flag)
flag
- the default CheckExistTablesOrViews setting.public boolean getCheckExistTablesOrViews()
public void setValidateTables(boolean flag)
flag
- the default ValidateTables setting.public boolean getValidateTables()
public void setInitializePrimaryKeyColumnInfo(boolean flag)
flag
- the default InitializePrimaryKeyColumnInfo setting.public boolean getInitializePrimaryKeyColumnInfo()
public void setValidateColumns(boolean flag)
flag
- the default ValidateColumns setting.public boolean getValidateColumns()
public void setValidateConstraints(boolean flag)
flag
- the default ValidateConstraints setting.public boolean getValidateConstraints()
public void setReadOnlySchema(boolean flag)
flag
- the readOnly setting.public boolean getReadOnlySchema()
public void setFixedSchema(boolean flag)
flag
- the fixed setting.public boolean getFixedSchema()
public void setForeignKeyCreateMode(java.lang.String mode)
mode
- the FK create modepublic java.lang.String getForeignKeyCreateMode()
public void setUniqueConstraintsMapInverse(boolean flag)
flag
- the default UniqueConstraintsMapInverse setting.public boolean getUniqueConstraintsMapInverse()
public boolean getUseUpdateLock()
public void setUseUpdateLock(boolean flag)
flag
- the useUpdateLock setting.public boolean getDatastoreDelayOperationsEnabled()
public void setDatastoreDelayOperationsEnabled(boolean flag)
flag
- true if datastore operations should be delayed until commitpublic int getDatastoreClassAdditionMaxRetries()
public void setDatastoreClassAdditionMaxRetries(int max)
max
- The max number of retriespublic boolean getPersistenceByReachabilityAtCommit()
public void setPersistenceByReachabilityAtCommit(boolean flag)
flag
- Whether to run PBR at commit timepublic int getMaxFetchDepth()
public void setMaxFetchDepth(int value)
value
- Max fetch depth to usepublic java.lang.String getClassLoaderResolverName()
public void setClassLoaderResolverName(java.lang.String clrName)
clrName
- Class Loader resolver name to usepublic java.lang.String getImplementationCreatorName()
public void setImplementationCreatorName(java.lang.String implCreatorName)
implCreatorName
- Name of implementation creator class to usepublic java.lang.String getDefaultInheritanceStrategy()
public void setDefaultInheritanceStrategy(java.lang.String strategy)
strategy
- the default inheritance strategypublic void setAutoCreateSchema(boolean flag)
flag
- the default AutoCreateSchema setting.public void setAutoCreateTables(boolean flag)
flag
- the default AutoCreateTables setting.public boolean getAutoCreateTables()
public void setAutoCreateColumns(boolean flag)
flag
- the default AutoCreateColumns setting.public boolean getAutoCreateColumns()
public void setAutoCreateConstraints(boolean flag)
flag
- the default AutoCreateConstraints setting.public boolean getAutoCreateConstraints()
public void setAutoCreateWarnOnError(boolean flag)
flag
- the default AutoCreateWarnOnError setting.public boolean getAutoCreateWarnOnError()
public java.lang.String getAutoStartMechanism()
public void setAutoStartMechanism(java.lang.String mechanism)
mechanism
- None = no auto start
SchemaTable = creates a schema table (default)
XML = use XML file
Classes = use specified classespublic java.lang.String getAutoStartMechanismXmlFile()
public void setAutoStartMechanismXmlFile(java.lang.String xmlFile)
xmlFile
- Name of the XML filepublic java.lang.String getAutoStartMechanismMode()
public void setAutoStartMechanismMode(java.lang.String mode)
mode
- Checked = raise exceptions on errors
Ignored = proceed without corrections
Quiet = correct errors and proceed (default)public java.lang.String getAutoStartClassNames()
public void setAutoStartClassNames(java.lang.String classNames)
classNames
- Name of the classes to load.public int getPoidTransactionIsolationLevel()
protected void setPoidTransactionIsolation(java.lang.String isolationLevelName)
isolationLevelName
- One of the values "read uncommitted", "read committed", "repeatable
read", or "serializable". The name is case-insensitive, and spaces
and underscores are equivalent.public void setPoidTransactionIsolation(int isolationLevel)
isolationLevel
- the default transaction isolation level.public java.lang.String getPoidTransactionAttribute()
public void setPoidTransactionAttribute(java.lang.String poidTransactionAttribute)
poidTransactionAttribute
- The poidTransactionAttribute to set.public boolean getQueryUseFetchPlan()
public void setQueryUseFetchPlan(boolean useFetchPlan)
useFetchPlan
- Whether to use the FetchPlan in queriespublic boolean isQueryAllowAllSQLStatements()
public void setQueryAllowAllSQLStatements(boolean allow)
allow
- true if allowed to execute any SQL stament in SQL queriespublic int getQueryTimeout()
public void setQueryTimeout(int timeout)
timeout
- The timeout to usepublic int getQueryFetchSize()
public void setQueryFetchSize(int size)
size
- The fetch size to usepublic java.lang.String getQueryFetchDirection()
public void setQueryFetchDirection(java.lang.String dir)
dir
- The fetch direction to usepublic java.lang.String getQueryResultSetType()
public void setQueryResultSetType(java.lang.String type)
type
- The ResultSet typepublic java.lang.String getQueryResultSetConcurrency()
public void setQueryResultSetConcurrency(java.lang.String concur)
concur
- The ResultSet concurrencypublic boolean getQueryUseInnerJoinsOnly()
public void setQueryUseInnerJoinsOnly(boolean useInner)
useInner
- Whether to use inner joins onlypublic int getStringDefaultLength()
public void setStringDefaultLength(int len)
len
- Default length for stringspublic java.lang.String getDateTimezone()
public void setDateTimezone(java.lang.String timezone)
timezone
- The timezone to use for all dates in the datastorepublic java.util.Calendar getCalendarForDateTimezone()
public boolean getJdoCacheCollections()
public void setJdoCacheCollections(boolean cache)
cache
- Whether to cache collections.public java.lang.Boolean getJdoCacheCollectionsLazy()
public void setJdoCacheCollectionsLazy(java.lang.Boolean lazy)
lazy
- Whether to lazy load any cache collections.public java.lang.String getJdoCacheLevel1Type()
public void setJdoCacheLevel1Type(java.lang.String type)
type
- the Level 1 Cache Typepublic boolean getJdoCacheLevel2()
public void setJdoCacheLevel2(boolean cache)
cache
- Whether to use a level 2 Cachepublic java.lang.String getJdoCacheLevel2Type()
public void setJdoCacheLevel2Type(java.lang.String type)
type
- the Level 2 Cache Typepublic java.lang.String getJdoCacheLevel2CacheName()
public void setJdoCacheLevel2CacheName(java.lang.String name)
name
- Name of the cachepublic java.lang.String getJdoCacheLevel2ConfigurationFile()
public void setJdoCacheLevel2ConfigurationFile(java.lang.String confFile)
confFile
- The File Name of the configuration fileprotected void setTransactionIsolation(java.lang.String isolationLevelName)
isolationLevelName
- One of the values "read uncommitted", "read committed", "repeatable
read", or "serializable". The name is case-insensitive, and spaces
and underscores are equivalent.public void setTransactionIsolation(int isolationLevel)
isolationLevel
- the default transaction isolation level.public int getTransactionIsolation()
public java.lang.String getIdentifierNamingStrategy()
public void setIdentifierNamingStrategy(java.lang.String strategy)
strategy
- the identifier naming strategypublic java.lang.String getIdentifierTablePrefix()
public void setIdentifierTablePrefix(java.lang.String value)
value
- the prefix for table identifierspublic java.lang.String getIdentifierTableSuffix()
public void setIdentifierTableSuffix(java.lang.String value)
value
- the suffix for table identifierspublic java.lang.String getIdentifierWordSeparator()
public void setIdentifierWordSeparator(java.lang.String value)
value
- the word separator for identifierspublic java.lang.String getIdentifierCase()
public void setIdentifierCase(java.lang.String value)
value
- the Case Identifierpublic void setPropertiesFile(java.lang.String value)
value
- the suffix for table identifierspublic java.io.File getPropertiesFile()
public Dictionary getDictionary()
public java.lang.String getJdoMetaDataFileExtension()
public void setJdoMetaDataFileExtension(java.lang.String metadataFileExtension)
metadataFileExtension
- The JDO metadata File Extension to set.public java.lang.String getOrmMetaDataFileExtension()
public void setOrmMetaDataFileExtension(java.lang.String metadataFileExtension)
metadataFileExtension
- The ORM metadata File Extension to set.public java.lang.String getJdoqueryMetaDataFileExtension()
public void setJdoqueryMetaDataFileExtension(java.lang.String metadataFileExtension)
metadataFileExtension
- The JDO Query metadata File Extension to set.public boolean getMetaDataValidate()
public void setMetaDataValidate(boolean validate)
validate
- Whether to validate the metadataprotected void assertConfigurable()
protected java.util.Map initPropertySetters()
protected void setOptions(java.util.Properties props)
props
- The Properties to set the options from.protected void setOptions(java.util.Map props)
props
- The Properties to set the options from.protected java.util.Map getOptions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |