|
||||||||||
| 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
Store manager that holds all 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)
Creates a store manager for use with the Force.com API. |
|
| Method Summary | |
|---|---|
TableImpl |
addTable(org.datanucleus.metadata.AbstractClassMetaData acmd,
ForceManagedConnection mconn)
Registers a table with the schema handler. |
TableImpl |
addVirtualTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
Registers 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()
Releases resources. |
ForceManagedConnection |
createConnection()
Creates a ForceManagedConnection for connection to Force.com. |
ForceConnectorConfig |
getConfig()
|
String |
getConnectionURL()
Looks into system variable and environment variables if url is in ${...} format. |
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()
Specifies whether fields should be created automatically on app startup. |
boolean |
isAutoCreateTables()
Specifies whether objects should be created automatically on app startup. |
boolean |
isAutoCreateWarnOnError()
Used for schema mismatches. |
boolean |
isEnableOptimisticTransactions()
Specifies whether optimistic locking is enabled for this persistence unit. |
boolean |
isForDelete()
Specifies whether this application has been started up with the flag to delete schema rather than create/upsert it. |
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, 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 |
|---|
public String getConnectionURL()
getConnectionURL in interface org.datanucleus.store.StoreManagergetConnectionURL in class org.datanucleus.store.AbstractStoreManagerprotected 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()
true if fields should be createdpublic boolean isAutoCreateTables()
true if objects should be createdpublic boolean isAutoCreateWarnOnError()
false but can be set in persistence.xml,
if true warnings will be logged, exceptions will not be thrown.
true if schema mismatches should log warnings, false if they should throw errorspublic 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 register
public boolean isEnableOptimisticTransactions()
true if optimistic transactions are enabledpublic ForceMetaDataListener getMetaDataListener()
public ForceManagedConnection createConnection()
ForceManagedConnection for connection to Force.com.
public ForceSchemaWriter getSchemaWriter()
public boolean isForDelete()
true if this application should delete schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||