Provide a PersistenceContext accepting constructor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4785 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -40,13 +40,20 @@ public class ConfigRepository extends DepotRepository
|
|||||||
public static final String CONFIG_DB_IDENT = "configdb";
|
public static final String CONFIG_DB_IDENT = "configdb";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new config repository with the specified connection
|
* Constructs a new config repository with the specified connection provider.
|
||||||
* provider.
|
|
||||||
*/
|
*/
|
||||||
public ConfigRepository (ConnectionProvider conprov)
|
public ConfigRepository (ConnectionProvider conprov)
|
||||||
throws PersistenceException
|
throws PersistenceException
|
||||||
{
|
{
|
||||||
super(new PersistenceContext(CONFIG_DB_IDENT, conprov));
|
this(new PersistenceContext(CONFIG_DB_IDENT, conprov));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new config repository with the specified persistence context.
|
||||||
|
*/
|
||||||
|
public ConfigRepository (PersistenceContext ctx)
|
||||||
|
{
|
||||||
|
super(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -48,7 +48,15 @@ public class NodeRepository extends DepotRepository
|
|||||||
public NodeRepository (ConnectionProvider conprov)
|
public NodeRepository (ConnectionProvider conprov)
|
||||||
throws PersistenceException
|
throws PersistenceException
|
||||||
{
|
{
|
||||||
super(new PersistenceContext(NODE_DB_IDENT, conprov));
|
this(new PersistenceContext(NODE_DB_IDENT, conprov));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new repository with the specified persistence context.
|
||||||
|
*/
|
||||||
|
public NodeRepository (PersistenceContext ctx)
|
||||||
|
{
|
||||||
|
super(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user