Method Summary |
|
void | addToCache(Row row) |
void | addToCache(Collection rows) |
public synchronized void | close() Marks this InterfaceManager as closed. |
public Transaction | currentTransaction() Returns the transaction associated with this InterfaceManager. |
public void | deletePersistent(Object object) |
public void | deletePersistentAll(Collection collection) |
public void | deletePersistentAll(Object[] array) |
public void | evict(Object object) This operation is not currently supported. |
public void | evictAll(Object[] array) This operation is not currently supported. |
public void | evictAll(Collection collection) This operation is not currently supported. |
public void | evictAll() This operation is not currently supported. |
int | executeSizeQuery(Selector selector) |
public void | finalize() When an InterfaceManager is garbage collected,
ensure that any active transactions are closed. |
public Extent | getExtent(Class clazz, boolean subclasses) Returns the Extent of the given class. |
Row | getFromCache(Table table, Object primaryKey) |
public boolean | getIgnoreCache() Returns the value of the ignoreCache flag. |
InterfaceManagerFactory | getInterfaceManagerFactory() |
public boolean | getMultithreaded() Returns the value of the multithreaded flag, which XORM
blithely ignores. |
public Object | getObjectById(Object object, boolean validate) |
public Object | getObjectId(Object object) Attempts to identify the primaryKey for the object. |
public Class | getObjectIdClass(Class clazz) If the class parameter is not mapped in a *.jdo file,
returns null. |
ObjectState | getObjectState(Object object) The incoming object may be an instance of either a
reference-enhanced JDO class or a dynamically enhanced
cglib-generated class. |
public PersistenceManagerFactory | getPersistenceManagerFactory() |
public Object | getTransactionalObjectId(Object object) At present, this is the same as getObjectId(). |
public Object | getUserObject() Retrieves the user-associated object. |
public boolean | isClosed() Returns true if this manager object has been closed. |
Object | lookup(Class clazz, Object primaryKey) Retrieves an object from the cache or from persistent storage
that is of the given type and has the matching object ID. |
Object | lookup(ClassMapping classMapping, Object primaryKey) This is the primary method by which an object is acquired. |
Row | lookupRow(ClassMapping classMapping, Object primaryKey) Retrieve a datastore row given its primary key.
This method first checks the local cache, then calls
DatastoreDriver.read(). |
public void | makeNontransactional(Object object) |
public void | makeNontransactionalAll(Collection collection) |
public void | makeNontransactionalAll(Object[] array) |
public void | makePersistent(Object object) Marks an object as persistent so it may be saved to the datastore. |
public void | makePersistentAll(Collection collection) Marks all items within a collection of objects as persistent. |
public void | makePersistentAll(Object[] array) Marks all items within an array of objects as persistent. |
public void | makeTransactional(Object object) |
public void | makeTransactionalAll(Collection collection) |
public void | makeTransactionalAll(Object[] array) |
public void | makeTransient(Object object) |
public void | makeTransientAll(Collection collection) |
public void | makeTransientAll(Object[] array) |
public Object | newObjectIdInstance(Class clazz, String arg) Returns a new objectId corresponding to the given class and
String parameter. |
public Query | newQuery(Class clazz, String filter) Returns a query built using JDOQL. |
public Query | newQuery(Class clazz) Returns a query for the specified class. |
public Query | newQuery(Extent extent) Returns a query for the specified extent. |
public Query | newQuery(Extent extent, String filter) Returns a query for the specified extent. |
public Query | newQuery() Creates a new query that the user must set values on
using the Query interface. |
public Query | newQuery(Object compiled) Constructs a query by copying data from a previous query. |
public Query | newQuery(String language, Object query) Known languages are "javax.jdo.query.JDOQL" (which takes a
String), "org.xorm.query.CodeQuery" (use CodeQuery.LANGUAGE), and
QueryLanguage.LANGUAGE. |
public Query | newQuery(Class clazz, Collection extent) This operation is not currently supported. |
public Query | newQuery(Class clazz, Collection extent, String filter) This operation is not currently supported. |
public void | refresh(Object object) Reloads the fields of the object from the datastore. |
public void | refreshAll(Object[] array) Calls refresh() on all objects in the array. |
public void | refreshAll(Collection collection) Calls refresh() on all objects in the collection. |
public void | refreshAll() Refreshes all objects in the transaction. |
void | refreshColumns(Row row, DataFetchGroup dfg) Refreshes particular fields of a Row from the datastore. |
void | removeFromCache(Row row) |
public void | retrieve(Object object) This operation is not currently supported. |
public void | retrieveAll(Collection collection) This operation is not currently supported. |
public void | retrieveAll(Collection collection, boolean dfgOnly) This operation is not currently supported. |
public void | retrieveAll(Object[] array) This operation is not currently supported. |
public void | retrieveAll(Object[] array, boolean dfgOnly) This operation is not currently supported. |
Collection | selectRows(Selector selector) Selects the rows from the datastore matching the selection criteria.
If no transaction is in progress, but nontransactionalRead is enabled,
begins and ends a datastore transaction in order to perform the
query. |
public void | setIgnoreCache(boolean ignoreCache) Sets the value of the ignoreCache flag. |
public void | setMultithreaded(boolean multithreaded) Indicates that this PersistenceManager will be used in a
multithreaded context. |
public void | setUserObject(Object userObject) Allows the user to associate an arbitrary object with this
InterfaceManager. |