Let's preserve the ability for callers with uncomplicated needs to create and
initialize a persistence context in one fell swoop.
This commit is contained in:
@@ -124,6 +124,22 @@ public class PersistenceContext
|
|||||||
return _cache;
|
return _cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates an uninitialized persistence context. {@link #init} must later be called on this
|
||||||
|
* context to prepare it for operation.
|
||||||
|
*/
|
||||||
|
public PersistenceContext ()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates and initializes a persistence context. See {@link #init}.
|
||||||
|
*/
|
||||||
|
public PersistenceContext (String ident, ConnectionProvider conprov, CacheAdapter adapter)
|
||||||
|
{
|
||||||
|
init(ident, conprov, adapter);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes this context with its connection provider and cache adapter.
|
* Initializes this context with its connection provider and cache adapter.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user