|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.connector.store.jpa.model.simple.SimpleJpaConnection
@NotThreadSafe public class SimpleJpaConnection

The repository connection to JPA repository sources that use the simple model.
| Constructor Summary | |
|---|---|
SimpleJpaConnection(JpaSource source)
|
|
| Method Summary | |
|---|---|
void |
close()
Close this connection to signal that it is no longer needed and that any accumulated resources are to be released. |
void |
execute(ExecutionContext context,
Request request)
Execute the supplied commands against this repository source. |
CachePolicy |
getDefaultCachePolicy()
Get the default cache policy for this repository. |
String |
getSourceName()
Get the name for this repository source. |
XAResource |
getXAResource()
Return the transactional resource associated with this connection. |
boolean |
ping(long time,
TimeUnit unit)
Ping the underlying system to determine if the connection is still valid and alive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleJpaConnection(JpaSource source)
| Method Detail |
|---|
public boolean ping(long time,
TimeUnit unit)
RepositoryConnection
ping in interface RepositoryConnectiontime - the length of time to wait before timing outunit - the time unit to use; may not be null
public CachePolicy getDefaultCachePolicy()
RepositoryConnection
getDefaultCachePolicy in interface RepositoryConnectionpublic String getSourceName()
RepositoryConnectionreturned
by the same RepositorySource that created this connection.
getSourceName in interface RepositoryConnectionpublic XAResource getXAResource()
RepositoryConnection
getXAResource in interface RepositoryConnectionpublic void close()
RepositoryConnection
close in interface RepositoryConnection
public void execute(ExecutionContext context,
Request request)
throws RepositorySourceException
execute in interface RepositoryConnectioncontext - the environment in which the commands are being executed; never nullrequest - the request to be executed; never null
RepositorySourceException - if there is a problem loading the node dataRepositoryConnection.execute(org.modeshape.graph.ExecutionContext,
org.modeshape.graph.request.Request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||