|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.force.sdk.jpa.schema.ForceStoreSchemaHandler
public class ForceStoreSchemaHandler
Cached information about the schema used by this application is stored in the Schema Handler.
Constructor Summary | |
---|---|
ForceStoreSchemaHandler(ForceStoreManager storeManager)
create the schema handler for Force.com sObjects. |
Method Summary | |
---|---|
TableImpl |
addTable(org.datanucleus.metadata.AbstractClassMetaData acmd,
ForceManagedConnection conn)
register a table with the cache, create its TableName and TableImpl. |
TableImpl |
addVirtualTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
register a virtual table (a table not backed by an actual object in Force.com, like owner). |
void |
cacheDescribeSObjects(Collection<org.datanucleus.metadata.AbstractClassMetaData> classes,
ForceManagedConnection mconn)
makes a describe call for each class in the collection and caches the results. |
void |
clear()
|
void |
clearDescribeSObjects()
Clear out the describe results after intitialization. |
void |
createSchema(Object conn,
String schemaName)
|
void |
deleteSchema(Object conn,
String schemaName)
|
org.datanucleus.store.schema.StoreSchemaData |
getSchemaData(Object conn,
String objName,
Object[] values)
|
org.datanucleus.store.StoreManager |
getStoreManager()
|
TableImpl |
getTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
get the table impl for a particular entity from the cache. |
TableImpl |
getTable(String objName)
get the table impl for a particular entity name from the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForceStoreSchemaHandler(ForceStoreManager storeManager)
storeManager
- the store managerMethod Detail |
---|
public void clear()
clear
in interface org.datanucleus.store.schema.StoreSchemaHandler
public void createSchema(Object conn, String schemaName)
createSchema
in interface org.datanucleus.store.schema.StoreSchemaHandler
public void deleteSchema(Object conn, String schemaName)
deleteSchema
in interface org.datanucleus.store.schema.StoreSchemaHandler
public org.datanucleus.store.schema.StoreSchemaData getSchemaData(Object conn, String objName, Object[] values)
getSchemaData
in interface org.datanucleus.store.schema.StoreSchemaHandler
public void cacheDescribeSObjects(Collection<org.datanucleus.metadata.AbstractClassMetaData> classes, ForceManagedConnection mconn)
classes
- a collection of class metadata to describemconn
- the managed connection to the Force.com APIspublic void clearDescribeSObjects()
public TableImpl getTable(String objName)
objName
- the name of the object to retrieve a table for
public TableImpl getTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
acmd
- the metadata to retrieve table info for
public TableImpl addTable(org.datanucleus.metadata.AbstractClassMetaData acmd, ForceManagedConnection conn)
acmd
- the class metadata of the entity to registerconn
- the managed connection to Force.com APIs, used to get at the namespace
public TableImpl addVirtualTable(org.datanucleus.metadata.AbstractClassMetaData acmd)
acmd
- the class metadata of the virtual table to register with the cache
public org.datanucleus.store.StoreManager getStoreManager()
getStoreManager
in interface org.datanucleus.store.schema.StoreSchemaHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |