|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.AbstractStoreManager
com.force.sdk.jpa.ForceStoreManager
public class ForceStoreManager
The store manager that holds all of the persistence.xml properties.
| Field Summary | |
|---|---|
static String |
FORCE_KEY
Store manager type for Force.com JPA. |
| Fields inherited from class org.datanucleus.store.AbstractStoreManager |
|---|
autoStartMechanism, connectionMgr, fixedDatastore, LOCALISER, nontxConnectionFactoryName, omfContext, persistenceHandler2, readOnlyDatastore, schemaHandler, starter, starterInitialised, storeDataMgr, storeManagerKey, storeManagerRuntime, txConnectionFactoryName, valueGenerationMgr |
| Constructor Summary | |
|---|---|
ForceStoreManager(org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.OMFContext omfContext)
create a store manager for use with the Force.com API. |
|
| Method Summary | |
|---|---|
TableImpl |
addTable(org.datanucleus.metadata.AbstractClassMetaData acmd,
ForceManagedConnection mconn)
register a table with the schema handler. |
TableImpl |
addVirtualTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
register a virtual table with the schema handler (a table not backed by an actual object but is still needed for JPA queries, e.g. |
void |
close()
Release of resources. |
ForceManagedConnection |
createConnection()
creates a ForceManagedConnection for connection to Force.com. |
ForceConnectorConfig |
getConfig()
|
ForceMetaDataListener |
getMetaDataListener()
|
org.datanucleus.store.NucleusConnection |
getNucleusConnection(org.datanucleus.store.ExecutionContext om)
|
int |
getPoolMinEvictableIdleTimeMillis()
|
int |
getPoolTimeBetweenEvictionRunsMillis()
|
ForceSchemaWriter |
getSchemaWriter()
|
Collection |
getSupportedOptions()
Accessor for the supported options in string form. |
TableImpl |
getTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
Retrieves Force.com table information from JPA class metadata. |
boolean |
isAutoCreateColumns()
Whether fields should be created automatically on app startup. |
boolean |
isAutoCreateTables()
Whether objects should be created automatically on app startup. |
boolean |
isAutoCreateWarnOnError()
Used for schema mismatches, e.g. |
boolean |
isEnableOptimisticTransactions()
Whether optimistic locking is enabled for this persistence unit. |
boolean |
isForDelete()
whether this application has been started up with the flag to delete schema rather than create/upsert it. |
boolean |
isSchemaCreateClient()
This is a flag for clients that can create schema to set. |
protected void |
registerConnectionMgr()
|
| Methods inherited from class org.datanucleus.store.AbstractStoreManager |
|---|
addClass, addClasses, assertReadOnlyForUpdateOfObject, clearAutoStarter, deregisterAllStoreData, getApiAdapter, getBackingStoreForField, getClassNameForObjectID, getConnection, getConnection, getConnection, getConnectionDriverName, getConnectionFactory, getConnectionFactory2, getConnectionFactory2Name, getConnectionFactoryName, getConnectionManager, getConnectionPassword, getConnectionURL, getConnectionUserName, getDatastoreDate, getExtent, getMetaDataManager, getNucleusSequence, getOMFContext, getPersistenceHandler, getPropertiesForGenerator, getQueryCacheKey, getRuntimeManager, getSchemaHandler, getStoreManagerKey, getStrategyForNative, getStrategyValue, getStrategyValueForGenerator, getSubClassesForClass, getValueGenerationManager, initialiseAutoStart, isStrategyDatastoreAttributed, logConfiguration, manageClassForIdentity, managesClass, newStoreData, notifyObjectIsOutdated, performVersionCheck, printInformation, registerConnectionFactory, registerStoreData, removeAllClasses, supportsQueryLanguage, supportsValueStrategy, transactionCommitted, transactionRolledBack, transactionStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FORCE_KEY
| Constructor Detail |
|---|
public ForceStoreManager(org.datanucleus.ClassLoaderResolver clr,
org.datanucleus.OMFContext omfContext)
throws NoSuchFieldException,
IllegalAccessException
clr - the class loader resolveromfContext - the corresponding object manager factory context
NoSuchFieldException - thrown if there is a problem setting up the plugin manager
IllegalAccessException - thrown if there is a problem setting up the plugin manager| Method Detail |
|---|
protected void registerConnectionMgr()
registerConnectionMgr in class org.datanucleus.store.AbstractStoreManagerpublic ForceConnectorConfig getConfig()
public void close()
close in interface org.datanucleus.store.StoreManagerclose in class org.datanucleus.store.AbstractStoreManagerpublic org.datanucleus.store.NucleusConnection getNucleusConnection(org.datanucleus.store.ExecutionContext om)
getNucleusConnection in interface org.datanucleus.store.StoreManagergetNucleusConnection in class org.datanucleus.store.AbstractStoreManagerpublic Collection getSupportedOptions()
getSupportedOptions in interface org.datanucleus.store.StoreManagergetSupportedOptions in class org.datanucleus.store.AbstractStoreManagerpublic boolean isAutoCreateColumns()
public boolean isAutoCreateTables()
public boolean isAutoCreateWarnOnError()
public int getPoolMinEvictableIdleTimeMillis()
public int getPoolTimeBetweenEvictionRunsMillis()
public TableImpl getTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
acmd - JPA class metadata
public TableImpl addTable(org.datanucleus.metadata.AbstractClassMetaData acmd,
ForceManagedConnection mconn)
acmd - the class metadata of the table to registermconn - the managed connection to the Force.com APIs
public TableImpl addVirtualTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
acmd - the class metadata of the virtual table to regsiter
public boolean isEnableOptimisticTransactions()
public ForceMetaDataListener getMetaDataListener()
public ForceManagedConnection createConnection()
public ForceSchemaWriter getSchemaWriter()
public boolean isForDelete()
public boolean isSchemaCreateClient()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||