abstractpublic class PersistenceConfiguration (Code)
Class providing configuration for persistence.
Can be extended by PersistenceManagerFactory/EntityManagerFactory to provide their own additions if required.
All properties should have setter/getter, and should have a "PropertySetter"
to allow loading of the property from the persistence factory Properties.
version: $Revision: 1.52 $
Inner Class :protected interface StringPropertySetter
Inner Class :protected interface ObjectPropertySetter
STRING_DEFAULT_LENGTH_PROPERTY Property defining the default string length when storing a String type in the datastore and no length given (RDBMS datastores).
setCacheLevel1Type(String type) Set the default Level 1 Cache Type for all
PersistenceManager instances obtained from this factory.
public synchronized void
setCacheLevel2(boolean cache) Set whether to use a Level 2 Cache for this persistence factory.
public synchronized void
setCacheLevel2CacheName(String name) Set the default Level 2 Cache Name for all
PersistenceManager instances obtained from this factory.
public synchronized void
setCacheLevel2ConfigurationFile(String confFile) Set the default Level 2 Configuration File for all
PersistenceManager instances obtained from this factory.
public synchronized void
setCacheLevel2Type(String type) Set the default Level 2 Cache Type for all
PersistenceManager instances obtained from this factory.
public synchronized void
setCatalog(String catalog) Mutator for the catalog to use for this persistence factory.
public synchronized void
setCheckExistTablesOrViews(boolean flag) Set the default CheckExistTablesOrViews setting for all
PersistenceManager instances obtained from this factory.
setPoidTransactionIsolation(String isolationLevelName) Set the default transaction isolation level for all
PoidGenerator instances.
Parameters: isolationLevelName - One of the values "read uncommitted", "read committed", "repeatableread", or "serializable".
public synchronized void
setPoidTransactionIsolation(int isolationLevel) Set the default transaction isolation level for all
PoidGenerator instances.
setTransactionIsolation(String isolationLevelName) Set the default transaction isolation level for all
PersistenceManager instances obtained from this factory.
Parameters: isolationLevelName - One of the values "none", "read uncommitted", "read committed", "repeatableread", or "serializable".
public synchronized void
setTransactionIsolation(int isolationLevel) Set the default transaction isolation level for all
PersistenceManager instances obtained from this factory.
public synchronized void
setTransactionType(String type) Mutator for the transaction type to use for this persistence factory.
public synchronized void
setUniqueConstraintsMapInverse(boolean flag) Set the default UniqueConstraintsMapInverse setting for all
PersistenceManager instances obtained from this factory.
public synchronized void
setUseUpdateLock(boolean flag) Set whether to use the update lock for fetches.
public synchronized void
setValidateColumns(boolean flag) Set the default ValidateColumns setting for all
PersistenceManager instances obtained from this factory.
public synchronized void
setValidateConstraints(boolean flag) Set the default ValidateConstraints setting for all
PersistenceManager instances obtained from this factory.
public synchronized void
setValidateTables(boolean flag) Set the default ValidateTables setting for all
PersistenceManager instances obtained from this factory.
Field Detail
ADD_UNIQUE_CONSTRAINT_MAP_INVERSE_PROPERTY
final public static String ADD_UNIQUE_CONSTRAINT_MAP_INVERSE_PROPERTY(Code)
Property defining whether to add unique constraints to the element table for a map inverse field (RDBMS datastores).
ATTACH_SAME_DATASTORE_PROPERTY
final public static String ATTACH_SAME_DATASTORE_PROPERTY(Code)
Property defining if attach operations should assume that detached objects are from the same datastore.
AUTO_CREATE_COLUMNS_PROPERTY
final public static String AUTO_CREATE_COLUMNS_PROPERTY(Code)
Property for whether to auto create the columns upon loading.
AUTO_CREATE_CONSTRAINTS_PROPERTY
final public static String AUTO_CREATE_CONSTRAINTS_PROPERTY(Code)
The system property that selects the default value for the AutoCreateConstraints setting.
AUTO_CREATE_SCHEMA_PROPERTY
final public static String AUTO_CREATE_SCHEMA_PROPERTY(Code)
Property for whether to auto create the schema upon loading.
AUTO_CREATE_TABLES_PROPERTY
final public static String AUTO_CREATE_TABLES_PROPERTY(Code)
Property for whether to auto create the tables upon loading.
AUTO_CREATE_WARN_ON_ERROR_PROPERTY
final public static String AUTO_CREATE_WARN_ON_ERROR_PROPERTY(Code)
Property for whether to warn only when receiving an error on auto creation.
AUTO_START_CLASS_NAMES_PROPERTY
final public static String AUTO_START_CLASS_NAMES_PROPERTY(Code)
Property defining the names of the classes whose MetaData is to be loaded at startup.
AUTO_START_MECHANISM_MODE_PROPERTY
final public static String AUTO_START_MECHANISM_MODE_PROPERTY(Code)
Property defining the mode of operation of any auto-start mechanism.
AUTO_START_MECHANISM_PROPERTY
final public static String AUTO_START_MECHANISM_PROPERTY(Code)
Property defining the auto-start mechanism to use (if any).
AUTO_START_MECHANISM_XML_FILE_PROPERTY
final public static String AUTO_START_MECHANISM_XML_FILE_PROPERTY(Code)
Property defining the name of the file used when using the XML AutoStartMechanism.
CACHE_COLLECTIONS_LAZY_PROPERTY
final public static String CACHE_COLLECTIONS_LAZY_PROPERTY(Code)
Property defining whether to lazy load collections (when cached).
CACHE_COLLECTIONS_PROPERTY
final public static String CACHE_COLLECTIONS_PROPERTY(Code)
Property defining whether to cache collections.
CACHE_LEVEL_1_TYPE_PROPERTY
final public static String CACHE_LEVEL_1_TYPE_PROPERTY(Code)
Property defining the type of Level 1 Cache to use.
CACHE_LEVEL_2_CACHE_NAME_PROPERTY
final public static String CACHE_LEVEL_2_CACHE_NAME_PROPERTY(Code)
Property defining the symbolic name of the cache to use for Level 2.
CACHE_LEVEL_2_CONFIGURATION_FILE_PROPERTY
final public static String CACHE_LEVEL_2_CONFIGURATION_FILE_PROPERTY(Code)
Property defining the configuration file of the cache to use for Level 2.
CACHE_LEVEL_2_PROPERTY
final public static String CACHE_LEVEL_2_PROPERTY(Code)
Property defining whether to use a Level 2 Cache.
CACHE_LEVEL_2_TYPE_PROPERTY
final public static String CACHE_LEVEL_2_TYPE_PROPERTY(Code)
Property defining the type of Level 2 Cache to use.
CHECK_EXIST_TABLES_VIEWS_PROPERTY
final public static String CHECK_EXIST_TABLES_VIEWS_PROPERTY(Code)
Property for whether to check if the table/view exists.
CLASS_LOADER_RESOLVER_NAME_PROPERTY
final public static String CLASS_LOADER_RESOLVER_NAME_PROPERTY(Code)
ClassLoaderResolver name property.
CONNECTION2_RESOURCE_TYPE
final public static String CONNECTION2_RESOURCE_TYPE(Code)
Property defining the resource type for the connection 2.
CONNECTION_POOLING_CONFIGURATION_FILE_PROPERTY
final public static String CONNECTION_POOLING_CONFIGURATION_FILE_PROPERTY(Code)
Property defining the configuration file for connection pooling.
CONNECTION_POOLING_TYPE_PROPERTY
final public static String CONNECTION_POOLING_TYPE_PROPERTY(Code)
Property defining how to pool connections.
CONNECTION_PROVIDER_FAILONERROR_PROPERTY
final public static String CONNECTION_PROVIDER_FAILONERROR_PROPERTY(Code)
Property for failOnError setting.
CONNECTION_PROVIDER_NAME_PROPERTY
final public static String CONNECTION_PROVIDER_NAME_PROPERTY(Code)
Property for name of the registered connection provider.
CONNECTION_RESOURCE_TYPE
final public static String CONNECTION_RESOURCE_TYPE(Code)
Property defining the resource type for the connection.
DATASTORE_ADAPTER_CLASSNAME_PROPERTY
final public static String DATASTORE_ADAPTER_CLASSNAME_PROPERTY(Code)
Property defining the classname of the datastore adapter to use.
DATASTORE_CLASS_ADDITION_MAX_RETRIES_PROPERTY
final public static String DATASTORE_CLASS_ADDITION_MAX_RETRIES_PROPERTY(Code)
Property for how many times to retry the addition of a class to the store management.
DATASTORE_IDENTITY_CLASS_NAME_PROPERTY
final public static String DATASTORE_IDENTITY_CLASS_NAME_PROPERTY(Code)
datastore-identity class name property.
DATASTORE_TXN_DELAY_OPERATIONS_PROPERTY
final public static String DATASTORE_TXN_DELAY_OPERATIONS_PROPERTY(Code)
Property defining if we should delay operations til commit/flush with datastore txns.
DATASTORE_TXN_FLUSH_LIMIT_PROPERTY
final public static String DATASTORE_TXN_FLUSH_LIMIT_PROPERTY(Code)
Property defining the limit on number of dirty objects before flush occurs with datastore txns.
DB4O_FLUSH_BUFFERS_PROPERTY
final public static String DB4O_FLUSH_BUFFERS_PROPERTY(Code)
Property defining whether to flush DB4O file buffers on commit.
DB4O_GENERATE_UUIDS_PROPERTY
final public static String DB4O_GENERATE_UUIDS_PROPERTY(Code)
Property defining whether to generate UUIDs for all classes.
DB4O_OUTPUT_FILE_PROPERTY
final public static String DB4O_OUTPUT_FILE_PROPERTY(Code)
Property defining the DB4O output file.
DEFAULT_INHERITANCE_STRATEGY_PROPERTY
final public static String DEFAULT_INHERITANCE_STRATEGY_PROPERTY(Code)
Property defining the default strategy for inheritance, allowing change of behaviour from JDO2.
DELETION_POLICY_PROPERTY
final public static String DELETION_POLICY_PROPERTY(Code)
The system property that defines the process for deletions.
DETACH_ON_CLOSE_PROPERTY
final public static String DETACH_ON_CLOSE_PROPERTY(Code)
Detach-on-close property.
DISCRIMINATOR_PER_SUBCLASSTABLE_PROPERTY
final public static String DISCRIMINATOR_PER_SUBCLASSTABLE_PROPERTY(Code)
Property defining if we should have a discriminator col per subclass (backwards compatibility only).
FIND_OBJECT_CHECK_INHERITANCE_PROPERTY
final public static String FIND_OBJECT_CHECK_INHERITANCE_PROPERTY(Code)
Property for whether to check inheritance on findObject requests.
FIXED_DATASTORE_PROPERTY
final public static String FIXED_DATASTORE_PROPERTY(Code)
Whether the datastore schema is read-only and so writes should not be performed.
IDENTIFIER_CASE_PROPERTY
final public static String IDENTIFIER_CASE_PROPERTY(Code)
Property defining the identifier case to be used.
IDENTIFIER_FACTORY_PROPERTY
final public static String IDENTIFIER_FACTORY_PROPERTY(Code)
Property defining the identifier factory to use.
IDENTIFIER_TABLE_PREFIX_PROPERTY
final public static String IDENTIFIER_TABLE_PREFIX_PROPERTY(Code)
Property defining the table prefix for use in identifiers (if supported by the factory).
IDENTIFIER_TABLE_SUFFIX_PROPERTY
final public static String IDENTIFIER_TABLE_SUFFIX_PROPERTY(Code)
Property defining the table suffix for use in identifiers (if supported by the factory).
IDENTIFIER_WORD_SEPARATOR_PROPERTY
final public static String IDENTIFIER_WORD_SEPARATOR_PROPERTY(Code)
Property defining the word separator for use in identifiers (if supported by the factory).
IMPLEMENTATION_CREATOR_NAME_PROPERTY
final public static String IMPLEMENTATION_CREATOR_NAME_PROPERTY(Code)
Implementation Creator name property.
INITIALIZE_COLUMN_INFO_PROPERTY
final public static String INITIALIZE_COLUMN_INFO_PROPERTY(Code)
Property defining to what level to initialise column info when validating.
JDO_CONNECTION_FACTORY2_NAME_PROPERTY
final public static String JDO_CONNECTION_FACTORY2_NAME_PROPERTY(Code)
Datastore connection factory 2 name property.
JDO_CONNECTION_FACTORY2_PROPERTY
final public static String JDO_CONNECTION_FACTORY2_PROPERTY(Code)
Datastore connection factory 2 property.
JDO_CONNECTION_FACTORY_NAME_PROPERTY
final public static String JDO_CONNECTION_FACTORY_NAME_PROPERTY(Code)
Datastore connection factory name property.
JDO_CONNECTION_FACTORY_PROPERTY
final public static String JDO_CONNECTION_FACTORY_PROPERTY(Code)
Datastore connection factory property.
JDO_COPYONATTACH_PROPERTY
final public static String JDO_COPYONATTACH_PROPERTY(Code)
Copy-on-attach property
JDO_DATASTORE_DRIVERNAME_PROPERTY
final public static String JDO_DATASTORE_DRIVERNAME_PROPERTY(Code)
Datastore driver name property.
JDO_DATASTORE_PASSWORD_PROPERTY
final public static String JDO_DATASTORE_PASSWORD_PROPERTY(Code)
Datastore connection password property.
JDO_DATASTORE_URL_PROPERTY
final public static String JDO_DATASTORE_URL_PROPERTY(Code)
Datastore URL property.
JDO_DATASTORE_USERNAME_PROPERTY
final public static String JDO_DATASTORE_USERNAME_PROPERTY(Code)
Datastore connection username property.
JDO_DETACHALLONCOMMIT_PROPERTY
final public static String JDO_DETACHALLONCOMMIT_PROPERTY(Code)
Detach-all-on-commit property
JDO_IGNORECACHE_PROPERTY
final public static String JDO_IGNORECACHE_PROPERTY(Code)
Ignore Cache property.
JDO_MAPPING_CATALOG_PROPERTY
final public static String JDO_MAPPING_CATALOG_PROPERTY(Code)
Catalog name property.
JDO_MAPPING_PROPERTY
final public static String JDO_MAPPING_PROPERTY(Code)
Mapping suffix property.
JDO_MAPPING_SCHEMA_PROPERTY
final public static String JDO_MAPPING_SCHEMA_PROPERTY(Code)
Schema name property.
JDO_MULTITHREADED_PROPERTY
final public static String JDO_MULTITHREADED_PROPERTY(Code)
Multithreaded property.
JDO_NAME_PROPERTY
final public static String JDO_NAME_PROPERTY(Code)
Property representing the name of the persistence factory.
JDO_NONTRANSACTIONAL_READ_PROPERTY
final public static String JDO_NONTRANSACTIONAL_READ_PROPERTY(Code)
Non-transactional Read property.
JDO_NONTRANSACTIONAL_WRITE_PROPERTY
final public static String JDO_NONTRANSACTIONAL_WRITE_PROPERTY(Code)
Non-transactional Write property.
JDO_OPTIMISTIC_PROPERTY
final public static String JDO_OPTIMISTIC_PROPERTY(Code)
Optimistic transaction property.
JDO_PERSISTENCE_UNIT_NAME_PROPERTY
final public static String JDO_PERSISTENCE_UNIT_NAME_PROPERTY(Code)
"persistence-unit" name property.
JDO_PMF_CLASS_PROPERTY
final public static String JDO_PMF_CLASS_PROPERTY(Code)
JDO PMF class property.
JDO_RESTOREVALUES_PROPERTY
final public static String JDO_RESTOREVALUES_PROPERTY(Code)
Restore values property.
JDO_RETAINVALUES_PROPERTY
final public static String JDO_RETAINVALUES_PROPERTY(Code)
Retain values property.
JDO_SERVER_TIMEZONE_ID_PROPERTY
final public static String JDO_SERVER_TIMEZONE_ID_PROPERTY(Code)
Server timezone "id".
JDO_TRANSACTION_TYPE_PROPERTY
final public static String JDO_TRANSACTION_TYPE_PROPERTY(Code)
JDO Transaction type property.
JPA_ONE_TO_MANY_UNI_FK_PROPERTY
final public static String JPA_ONE_TO_MANY_UNI_FK_PROPERTY(Code)
Name of property to use to define if we should support 1-N uni FK relations.
JPA_PERSISTENCE_PROVIDER_PROPERTY
final public static String JPA_PERSISTENCE_PROVIDER_PROPERTY(Code)
JPA persistence provider property.
JPA_TRANSACTION_TYPE_PROPERTY
final public static String JPA_TRANSACTION_TYPE_PROPERTY(Code)
JPA Transaction type property.
JTA_JNDI_LOCATION_PROPERTY
final public static String JTA_JNDI_LOCATION_PROPERTY(Code)
Property defining the JTA JNDI location to use (if known).
JTA_LOCATOR_PROPERTY
final public static String JTA_LOCATOR_PROPERTY(Code)
Constructor.
Initialises all properties using the System property values. This behaviour
is not specified by the JDO spec(s) but is a nice to have capability allowing
users to define command line args to set up their (single) persistence factory.
Get the default AutoCreateColumns setting for all
PersistenceManager instances obtained from this factory.
the default AutoCreateColumns setting. since: 1.1
Get the default AutoCreateConstraints setting for all
PersistenceManager instances obtained from this factory.
the default AutoCreateConstraints setting.
Get the default AutoCreateWarnOnError setting for all
PersistenceManager instances obtained from this factory.
the default AutoCreateWarnOnError setting.
Accessor for the Auto-Start Mechanism Mode for how the auto start
mechanism operates. Currently supports 3 possible values for this
parameter "Checked", "Ignored", and "Quiet" (default).
the Auto-Start Mechanism Mode setting.
Accessor for the Calendar to be used in handling all timezone issues with the datastore.
Utilises the "serverTimeZoneID" in providing this Calendar used in time/date conversions.
The calendar to use for dateTimezone issues.
Get the default CheckExistTablesOrViews setting for all
PersistenceManager instances obtained from this factory.
the default CheckExistTablesOrViews setting.
Get the second data store connection factory. This is
needed for managed environments to get nontransactional connections for
optimistic transactions.
the data store connection factory.
Get the name for the second data store connection factory. This is
needed for managed environments to get nontransactional connections for
optimistic transactions.
the name of the data store connection factory.
Accessor for the name of datastore identity class
Name of the datastore identity class
getDatastoreTransactionFlushLimit
public int getDatastoreTransactionFlushLimit()(Code)
Accessor for the limit on number of dirty objects before a flush happens with
datastore transactions.
Number of dirty objects before a flush happens with datastore transactions
getDatastoreTransactionsDelayOperations
public boolean getDatastoreTransactionsDelayOperations()(Code)
Whether with datastore transactions we delay operations until commit.
Whether we should delay all datastore ops til commit with datastore txns
Get the default DetachOnClose setting for all PersistenceManager
instances obtained from this factory.
the DetachOnClose setting. since: 1.1
getDiscriminatorPerSubclassTable
public boolean getDiscriminatorPerSubclassTable()(Code)
Accessor for whether to have a discriminator column on all subclass tables.
This is for backwards compatibility only and will be removed later.
TODO Remove this when people have changed over
Whether to persist an empty string as null
getFindObjectCheckInheritance
public boolean getFindObjectCheckInheritance()(Code)
Accessor for whether we should check the inheritance on find object by id.
Whether we check the inheritance
Get the default InitializeColumnInfo setting for all
PersistenceManager instances obtained from this factory.
the default InitializeColumnInfo setting.
Get the default NontransactionalRead setting for all
PersistenceManager instances obtained from this factory.
the default NontransactionalRead setting.
Get the default NontransactionalWrite setting for all
PersistenceManager instances obtained from this factory.
the default NontransactionalWrite setting.
Mutator for what check the plugin registry should make on duplicate bundles.
Typically only applies to the non-managed registry.
What check the registry should perform on duplicate bundles
Accessor for the action when persisting a string that exceeds the datastore column length.
Action when persisting String longer than the datastore can handle
Accessor for the transaction type to use with this persistence factory.
transaction type
getUniqueConstraintsMapInverse
public boolean getUniqueConstraintsMapInverse()(Code)
Get the default UniqueConstraintsMapInverse setting for all
PersistenceManager instances obtained from this factory.
the default UniqueConstraintsMapInverse setting.
Get the default ValidateColumns setting for all
PersistenceManager instances obtained from this factory.
the default ValidateColumns setting. since: 1.1
Accessor for the JCA mode.
true if using JCA connector.
isQueryAllowAllSQLStatements
public boolean isQueryAllowAllSQLStatements()(Code)
Whether to allow running any SQL statement in SQL queries.
true if allowed to execute any SQL stament in SQL queries since: 1.1
setAttachSameDatastore
public synchronized void setAttachSameDatastore(boolean flag)(Code)
Mutator for whether when attaching we can assume that any detached objects are from this same datastore.
Parameters: flag - Whether to assume the same datastore
setAutoCreateColumns
public synchronized void setAutoCreateColumns(boolean flag)(Code)
Set the default AutoCreateColumns setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default AutoCreateColumns setting. since: 1.1
setAutoCreateConstraints
public synchronized void setAutoCreateConstraints(boolean flag)(Code)
Set the default AutoCreateConstraints setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default AutoCreateConstraints setting.
setAutoCreateSchema
public synchronized void setAutoCreateSchema(boolean flag)(Code)
Set the default AutoCreateSchema setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default AutoCreateSchema setting.
setAutoCreateTables
public synchronized void setAutoCreateTables(boolean flag)(Code)
Set the default AutoCreateTables setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default AutoCreateTables setting.
setAutoCreateWarnOnError
public synchronized void setAutoCreateWarnOnError(boolean flag)(Code)
Set the default AutoCreateWarnOnError setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default AutoCreateWarnOnError setting.
setAutoStartClassNames
public synchronized void setAutoStartClassNames(String classNames)(Code)
Mutator for the names of classes to load at startup.
Parameters: classNames - Name of the classes to load. since: 1.1
setAutoStartMechanism
public synchronized void setAutoStartMechanism(String mechanism)(Code)
Set the AutoStartMechanism setting to this persistence factory.
Parameters: mechanism - The autostart mechanism plugin name
setAutoStartMechanismMode
public synchronized void setAutoStartMechanismMode(String mode)(Code)
Set the default AutoStartMechanismMode setting for all
PersistenceManager instances obtained from this factory.
Parameters: mode - Checked = raise exceptions on errorsIgnored = proceed without correctionsQuiet = correct errors and proceed (default)
setAutoStartMechanismXmlFile
public synchronized void setAutoStartMechanismXmlFile(String xmlFile)(Code)
Mutator for the XML filename when using the XML AutoStarter.
Parameters: xmlFile - Name of the XML file
setCacheCollections
public synchronized void setCacheCollections(boolean cache)(Code)
Set whether to cache collections for this persistence factory.
Parameters: cache - Whether to cache collections.
setCacheCollectionsLazy
public synchronized void setCacheCollectionsLazy(Boolean lazy)(Code)
Set whether to lazy load any cached collections for this persistence factory.
Parameters: lazy - Whether to lazy load any cache collections.
setCacheLevel1Type
public synchronized void setCacheLevel1Type(String type)(Code)
Set the default Level 1 Cache Type for all
PersistenceManager instances obtained from this factory.
Parameters: type - the Level 1 Cache Type since: 1.1
setCacheLevel2
public synchronized void setCacheLevel2(boolean cache)(Code)
Set whether to use a Level 2 Cache for this persistence factory.
Parameters: cache - Whether to use a level 2 Cache since: 1.1
setCacheLevel2CacheName
public synchronized void setCacheLevel2CacheName(String name)(Code)
Set the default Level 2 Cache Name for all
PersistenceManager instances obtained from this factory.
Parameters: name - Name of the cache since: 1.1
setCacheLevel2ConfigurationFile
public synchronized void setCacheLevel2ConfigurationFile(String confFile)(Code)
Set the default Level 2 Configuration File for all
PersistenceManager instances obtained from this factory.
Parameters: confFile - The File Name of the configuration file since: 1.1
setCacheLevel2Type
public synchronized void setCacheLevel2Type(String type)(Code)
Set the default Level 2 Cache Type for all
PersistenceManager instances obtained from this factory.
Parameters: type - the Level 2 Cache Type since: 1.1
setCatalog
public synchronized void setCatalog(String catalog)(Code)
Mutator for the catalog to use for this persistence factory.
Parameters: catalog - Name of the catalog since: 1.1
setCheckExistTablesOrViews
public synchronized void setCheckExistTablesOrViews(boolean flag)(Code)
Set the default CheckExistTablesOrViews setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default CheckExistTablesOrViews setting.
setClassLoaderResolverName
public synchronized void setClassLoaderResolverName(String clrName)(Code)
Mutator for the class loader resolver name to use.
Parameters: clrName - Class Loader resolver name to use
setConnection2ResourceType
public synchronized void setConnection2ResourceType(String resourceType)(Code)
Set the Connection2 ResourceType
Parameters: resourceType - The Connection2 ResourceType
setConnectionDriverName
public synchronized void setConnectionDriverName(String driverName)(Code)
Set the driver name for the data store connection.
Parameters: driverName - the driver name for the data store connection.
setConnectionFactory
public synchronized void setConnectionFactory(Object connectionFactory)(Code)
Set the data store connection factory. JDO implementations
will support specific connection factories. The connection
factory interfaces are not part of the JDO specification.
Parameters: connectionFactory - the data store connection factory.
setConnectionFactory2
public synchronized void setConnectionFactory2(Object connectionFactory)(Code)
Set the second data store connection factory. This is
needed for managed environments to get nontransactional connections for
optimistic transactions. JDO implementations
will support specific connection factories. The connection
factory interfaces are not part of the JDO specification.
Parameters: connectionFactory - the data store connection factory.
setConnectionFactory2Name
public synchronized void setConnectionFactory2Name(String connectionFactoryName)(Code)
Set the name for the second data store connection factory. This is
needed for managed environments to get nontransactional connections for
optimistic transactions.
Parameters: connectionFactoryName - name of the data store connection factory.
setConnectionFactoryName
public synchronized void setConnectionFactoryName(String connectionFactoryName)(Code)
Set the name for the data store connection factory.
Parameters: connectionFactoryName - name of the data store connection factory.
setConnectionPassword
public synchronized void setConnectionPassword(String password)(Code)
Set the password for the data store connection.
Parameters: password - the password for the data store connection.
setConnectionPoolingConfigurationFile
public synchronized void setConnectionPoolingConfigurationFile(String file)(Code)
Set the connection pooling configuration file to use.
Parameters: file - The connection pooling configuration file since: 1.1
setConnectionPoolingType
public synchronized void setConnectionPoolingType(String type)(Code)
Set the connection pooling type.
Parameters: type - The connection pooling type since: 1.1
setConnectionProviderFailOnError
public synchronized void setConnectionProviderFailOnError(boolean flag)(Code)
Set the connection provider failOnError.
Parameters: flag - the connection provider failOnError.
setConnectionProviderName
public synchronized void setConnectionProviderName(String name)(Code)
Set the connection provider name.
Parameters: name - the connection provider name.
setConnectionResourceType
public synchronized void setConnectionResourceType(String resourceType)(Code)
Set the Connection ResourceType
Parameters: resourceType - The Connection ResourceType
setConnectionURL
public synchronized void setConnectionURL(String url)(Code)
Set the URL for the data store connection.
Parameters: url - the URL for the data store connection.
setConnectionUserName
public synchronized void setConnectionUserName(String userName)(Code)
Set the user name for the data store connection.
Parameters: userName - the user name for the data store connection.
setCopyOnAttach
public synchronized void setCopyOnAttach(boolean flag)(Code)
Mutator for the CopyOnAttach setting.
Parameters: flag - the default CopyOnAttach setting. since: 1.2
setDatastoreAdapterClassName
public synchronized void setDatastoreAdapterClassName(String adapterClassName)(Code)
Set the name of the datastore adapter to use.
Parameters: adapterClassName - Name of the class of the datastore adapter to use. since: 1.1
setDatastoreClassAdditionMaxRetries
public void setDatastoreClassAdditionMaxRetries(int max)(Code)
Set the max number of times to retry adding a class to the store manager.
Parameters: max - The max number of retries since: 1.1
setDatastoreIdentityClassName
public synchronized void setDatastoreIdentityClassName(String name)(Code)
Mutator for the name to use for datastore-identity
Parameters: name - Datastore-identity class name
Mutator for the limit of number of dirty objects before a flush happens with
datastore transactions.
Parameters: limit - Limit on number of dirty objects before a flush happens with datastore txns
setDatastoreTransactionsDelayOperations
public synchronized void setDatastoreTransactionsDelayOperations(boolean flag)(Code)
Whether with datastore transactions we delay operations until commit.
Parameters: flag - Whether we should delay all datastore ops til commit with datastore txns
setDb4oFlushFileBuffers
public synchronized void setDb4oFlushFileBuffers(boolean flush)(Code)
Set whether to flush DB4O file buffers at commit
Parameters: flush - Whether to flush file buffers at commit with DB4O
setDb4oGenerateUUIDs
public synchronized void setDb4oGenerateUUIDs(boolean gen)(Code)
Set whether to generate UUIDs.
Parameters: gen - Whether to generate UUIDs
setDb4oOutputFile
public synchronized void setDb4oOutputFile(String file)(Code)
Set the DB4O Output File name.
Parameters: file - name of the DB4O Output file
setDefaultInheritanceStrategy
public synchronized void setDefaultInheritanceStrategy(String strategy)(Code)
Mutator for the default inheritance strategy.
Parameters: strategy - the default inheritance strategy since: 1.1
setDeletionPolicy
public synchronized void setDeletionPolicy(String policy)(Code)
Mutator for the deletion policy
Parameters: policy - the FK create mode since: 1.1
setDetachAllOnCommit
public synchronized void setDetachAllOnCommit(boolean flag)(Code)
Mutator for the DetachAllOnCommit setting.
Parameters: flag - the default DetachAllOnCommit setting. since: 1.1
setDetachOnClose
public synchronized void setDetachOnClose(boolean flag)(Code)
Set the default DetachOnClose setting for all PersistenceManager
instances obtained from this factory.
Parameters: flag - the default DetachOnClose setting. since: 1.1
setDiscriminatorPerSubclassTable
public void setDiscriminatorPerSubclassTable(boolean flag)(Code)
Mutator for whether to have a discriminator column added to all subclass tables.
This is for backwards compatibility only and will be removed later.
TODO Remove this when people have changed over
Parameters: flag - whether to have discrim per subclass table
setFindObjectCheckInheritance
public synchronized void setFindObjectCheckInheritance(boolean flag)(Code)
Mutator for whether we should check inheritance when finding an object by its id.
Parameters: flag - Whether to check the inheritance
setFixedDatastore
public synchronized void setFixedDatastore(boolean flag)(Code)
Set whether this datastore schema is fixed
Parameters: flag - the fixed setting.
setIdentifierCase
public synchronized void setIdentifierCase(String idCase)(Code)
Mutator for the identifier case
Parameters: idCase - the identifier case
setIdentifierFactory
public synchronized void setIdentifierFactory(String factory)(Code)
Mutator for the identifier factory
Parameters: factory - the identifier factory
setIdentifierTablePrefix
public synchronized void setIdentifierTablePrefix(String prefix)(Code)
Mutator for the identifier table prefix
Parameters: prefix - the identifier table prefix
setIdentifierTableSuffix
public synchronized void setIdentifierTableSuffix(String suffix)(Code)
Mutator for the identifier table suffix
Parameters: suffix - the identifier table suffix
setIdentifierWordSeparator
public synchronized void setIdentifierWordSeparator(String word)(Code)
Mutator for the identifier word separator
Parameters: word - the identifier word separator
setIgnoreCache
public synchronized void setIgnoreCache(boolean flag)(Code)
Set the default IgnoreCache setting for all PersistenceManager
instances obtained from this factory.
Parameters: flag - the default IgnoreCache setting.
setImplementationCreatorName
public synchronized void setImplementationCreatorName(String implCreatorName)(Code)
Mutator for the implementation creator name to use.
Parameters: implCreatorName - Name of implementation creator to use
setInitializeColumnInfo
public synchronized void setInitializeColumnInfo(String flag)(Code)
Set the default InitializeColumnInfo setting for all
PersistenceManager instances obtained from this factory.
Takes values of "ALL", "NONE" or "PK" for which columns to initialise.
Parameters: flag - the default InitializePrimaryKeyColumnInfo setting.
setJCAMode
public synchronized void setJCAMode(Boolean jca)(Code)
Mutator for the JCA mode.
Parameters: jca - true if using JCA connector
setJdoMetaDataFileExtension
public void setJdoMetaDataFileExtension(String metadataFileExtension)(Code)
Mutator for the JDO MetaData file extension.
Parameters: metadataFileExtension - The JDO metadata File Extension to set.
setJdoqueryMetaDataFileExtension
public void setJdoqueryMetaDataFileExtension(String metadataFileExtension)(Code)
Mutator for the JDO Query MetaData file extension.
Parameters: metadataFileExtension - The JDO Query metadata File Extension to set.
setJpaOneToManyUniFkRelations
public synchronized void setJpaOneToManyUniFkRelations(boolean flag)(Code)
Mutator for whether to allow 1-N unidir FK relations when using JPA.
Parameters: flag - Whether to support 1-N uni FK relations
Mutator for the JTA Locator to use when using JTA transactions.
Parameters: locator - Name of the locator. Should correspond to a locator plugin alias
setManageRelationships
public synchronized void setManageRelationships(boolean flag)(Code)
Mutator for whether to manage (bidirectional) relationships at flush/commit.
Parameters: flag - Whether to manage relationships
setManageRelationshipsChecks
public synchronized void setManageRelationshipsChecks(boolean flag)(Code)
Mutator for whether to check manage (bidirectional) relationships at flush/commit.
Parameters: flag - Whether to check manage relationships
setManagedRuntime
public synchronized void setManagedRuntime(Boolean managed)(Code)
Mutator for whether to provide a managed runtime.
Parameters: managed - Whether to provide a managed runtime
setMapping
public synchronized void setMapping(String mapping)(Code)
Set the name for any mapping, used in searching for ORM/Query metadata
files.
Parameters: mapping - the mapping name
setMaxFetchDepth
public synchronized void setMaxFetchDepth(int value)(Code)
Mutator for the default max fetch depth
Parameters: value - Max fetch depth to use
setMessagesIncludeCodes
public void setMessagesIncludeCodes(Boolean include)(Code)
Mutator for whether to includes codes in messages.
Parameters: include - Whether to include codes in messages
setMetaDataAnnotationsManager
public void setMetaDataAnnotationsManager(String mgr)(Code)
Mutator for the metadata annotations manager
Parameters: mgr - Name of the annotations manager
setMetaDataValidate
public void setMetaDataValidate(boolean validate)(Code)
Mutator for whether to validate the metadata
Parameters: validate - Whether to validate the metadata
setMultithreaded
public synchronized void setMultithreaded(boolean flag)(Code)
Set the default Multithreaded setting for all PersistenceManager
instances obtained from this factory.
Parameters: flag - the default Multithreaded setting.
setName
public synchronized void setName(String name)(Code)
Mutator for the name of the persistence factory.
Parameters: name - Name of the persistence factory (if any)
setNontransactionalRead
public synchronized void setNontransactionalRead(boolean flag)(Code)
Set the default NontransactionalRead setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default NontransactionalRead setting.
setNontransactionalWrite
public synchronized void setNontransactionalWrite(boolean flag)(Code)
Set the default NontransactionalWrite setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default NontransactionalWrite setting.
setOptimistic
public synchronized void setOptimistic(boolean flag)(Code)
Set the default Optimistic setting for all PersistenceManager
instances obtained from this factory.
Parameters: flag - the default Optimistic setting.
Set the options for this PersistenceManagerFactory based on the
given map of properties.
Parameters: props - The Properties to set the options from.
setOracleNlsSortOrder
public void setOracleNlsSortOrder(String order)(Code)
Set the NLS sort order for oracle.
Parameters: order - NLS sort order for oracle.
setOrmMetaDataFileExtension
public void setOrmMetaDataFileExtension(String metadataFileExtension)(Code)
Mutator for the ORM MetaData file extension.
Parameters: metadataFileExtension - The ORM metadata File Extension to set.
setPersistEmptyStringAsNull
public void setPersistEmptyStringAsNull(boolean flag)(Code)
Mutator for whether to persist an empty string as null in the datastore (RDBMS).
Parameters: flag - whether an empty string should be treated as null
setPersistenceApiName
public synchronized void setPersistenceApiName(String name)(Code)
Mutator for the persistence API
Parameters: name - Persistence API
setPersistenceByReachabilityAtCommit
public synchronized void setPersistenceByReachabilityAtCommit(boolean flag)(Code)
Mutator for whether to run "persistence-by-reachability" at commit time.
Parameters: flag - Whether to run PBR at commit time
setPersistenceUnitName
public synchronized void setPersistenceUnitName(String name)(Code)
Mutator for the name of the persistence unit.
Parameters: name - Name of the persistence unit
setPluginRegistryBundleCheck
public void setPluginRegistryBundleCheck(String check)(Code)
Mutator for what check the plugin registry should perform on dup bundles.
Can be "EXCEPTION", "LOG", or "NONE".
Parameters: check - the check to perform
setPluginRegistryClassName
public void setPluginRegistryClassName(String pluginRegistryClassName)(Code)
Mutator for the
PluginRegistry class name. If one is provided, it will be used as registry for plug-ins
Parameters: pluginRegistryClassName - the fully qualified class PluginRegistry
setPoidTransactionAttribute
public void setPoidTransactionAttribute(String poidTransactionAttribute)(Code)
Set whether to use the PM connection or open a new connection
Parameters: poidTransactionAttribute - The poidTransactionAttribute to set.
Set the default transaction isolation level for all
PoidGenerator instances.
Parameters: isolationLevelName - One of the values "read uncommitted", "read committed", "repeatableread", or "serializable". The name is case-insensitive, and spacesand underscores are equivalent.
setPoidTransactionIsolation
public synchronized void setPoidTransactionIsolation(int isolationLevel)(Code)
Set the default transaction isolation level for all
PoidGenerator instances.
Parameters: isolationLevel - the default transaction isolation level.
setPrimaryClassLoaderResolver
public synchronized void setPrimaryClassLoaderResolver(ClassLoader clr)(Code)
Mutator for the primary class loader.
Parameters: clr - primary Class Loader
setPropertiesFile
public synchronized void setPropertiesFile(String value)(Code)
Accessor for the suffix for table identifiers
Parameters: value - the suffix for table identifiers
setQueryAllowAllSQLStatements
public void setQueryAllowAllSQLStatements(boolean allow)(Code)
Whether to allow running any SQL statement in SQL queries.
Parameters: allow - true if allowed to execute any SQL stament in SQL queries since: 1.1
setQueryContainsUsesExistsAlways
public void setQueryContainsUsesExistsAlways(boolean always)(Code)
Set whether to always use EXISTS with any contains().
Parameters: always - Whether to always use EXISTS with contains() since: 1.2
setQueryExistsIncludesConstraints
public void setQueryExistsIncludesConstraints(boolean includes)(Code)
Set whether to apply constraints to exists inner expression.
Parameters: includes - Whether to apply constraints to exists inner expression. since: 1.2
setQueryFetchDirection
public void setQueryFetchDirection(String dir)(Code)
Set the fetch direction to use for ResultSet's.
Parameters: dir - The fetch direction to use since: 1.1
setQueryFlushBeforeExecution
public void setQueryFlushBeforeExecution(boolean flush)(Code)
Set whether to flush before executing queries
Parameters: flush - Whether to flush before executing queries since: 1.2
Set the timeout for queries
Parameters: timeout - The timeout to use since: 1.1
setQueryUseFetchPlan
public void setQueryUseFetchPlan(boolean useFetchPlan)(Code)
Set whether to use the FetchPlan in queries
Parameters: useFetchPlan - Whether to use the FetchPlan in queries since: 1.1
setRDBMSConstraintCreateMode
public synchronized void setRDBMSConstraintCreateMode(String mode)(Code)
Mutator for the RDBMS constraint creation mode
Parameters: mode - the RDBMS constraint create mode since: 1.2
setReadOnlyDatastore
public synchronized void setReadOnlyDatastore(boolean flag)(Code)
Set whether this datastore is readOnly
Parameters: flag - the readOnly setting.
setReadOnlyDatastoreAction
public synchronized void setReadOnlyDatastoreAction(String action)(Code)
Set the action when we have a read-only datastore and an update is attempted.
Parameters: action - the readOnly action setting.
setRestoreValues
public synchronized void setRestoreValues(boolean flag)(Code)
Set the default RestoreValues setting for all PersistenceManager
instances obtained from this factory.
Parameters: flag - the default RestoreValues setting.
setRetainValues
public synchronized void setRetainValues(boolean flag)(Code)
Set the default RetainValues setting for all PersistenceManager
instances obtained from this factory.
Parameters: flag - the default RetainValues setting.
setSchema
public synchronized void setSchema(String schema)(Code)
Mutator for the schema to use for this persistence factory.
Parameters: schema - Name of the schema since: 1.1
Mutator for the timezone id of the datastore server.
If not set assumes that it is running in the same timezone as this JVM.
Parameters: id - Timezone Id to use
setStatementBatchLimit
public synchronized void setStatementBatchLimit(int limit)(Code)
Set the limit on number of SQL statements that can be batched in one go.
This supports values of 0 for no batching and -1 for unlimited batching.
Parameters: limit - Max number of statements to batch
setStoreManagerType
public synchronized void setStoreManagerType(String type)(Code)
Mutator for the store manager type.
Parameters: type - StoreManager type
Set the default length for strings.
Parameters: len - Default length for strings
setStringLengthExceededAction
public void setStringLengthExceededAction(String action)(Code)
Set the action when persisting a string too long for the datastore.
Valid values are EXCEPTION and TRUNCATE.
Parameters: action - action when persisting a string too long for the datastore.
Set the default transaction isolation level for all
PersistenceManager instances obtained from this factory.
Parameters: isolationLevelName - One of the values "none", "read uncommitted", "read committed", "repeatableread", or "serializable". The name is case-insensitive, and spacesand underscores are equivalent.
setTransactionIsolation
public synchronized void setTransactionIsolation(int isolationLevel)(Code)
Set the default transaction isolation level for all
PersistenceManager instances obtained from this factory.
Parameters: isolationLevel - the default transaction isolation level.
setTransactionType
public synchronized void setTransactionType(String type)(Code)
Mutator for the transaction type to use for this persistence factory.
Parameters: type - Transaction type
setUniqueConstraintsMapInverse
public synchronized void setUniqueConstraintsMapInverse(boolean flag)(Code)
Set the default UniqueConstraintsMapInverse setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default UniqueConstraintsMapInverse setting.
setUseUpdateLock
public synchronized void setUseUpdateLock(boolean flag)(Code)
Set whether to use the update lock for fetches.
Parameters: flag - the useUpdateLock setting.
setValidateColumns
public synchronized void setValidateColumns(boolean flag)(Code)
Set the default ValidateColumns setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default ValidateColumns setting. since: 1.1
setValidateConstraints
public synchronized void setValidateConstraints(boolean flag)(Code)
Set the default ValidateConstraints setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default ValidateConstraints setting.
setValidateTables
public synchronized void setValidateTables(boolean flag)(Code)
Set the default ValidateTables setting for all
PersistenceManager instances obtained from this factory.
Parameters: flag - the default ValidateTables setting.