public class DeploymentHelper extends Object
| Constructor and Description |
|---|
DeploymentHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
getConnection(String name)
Get a Connection from the resource specified by the JNDI name
of a CMP resource.
|
static String |
getDDLNamePrefix(Object info)
Returns name prefix for DDL files extracted from the info instance by the
Sun-specific code.
|
static boolean |
isJavaToDatabase(Properties prop)
Returns boolean value for the
DatabaseConstants.JAVA_TO_DB_FLAG
flag in this Properties object. |
public static String getDDLNamePrefix(Object info)
info - the instance to use for the name generation.public static boolean isJavaToDatabase(Properties prop)
DatabaseConstants.JAVA_TO_DB_FLAG
flag in this Properties object.prop - a Properties object where flag is locatedDatabaseConstants.JAVA_TO_DB_FLAG
key.public static Connection getConnection(String name) throws SQLException
name - JNDI name of a cmp-resource for the connection.JDOFatalUserException - if name cannot be looked up, or we
cannot get a connection based on the name.SQLException - if can not get a Connection.Copyright © 2019. All rights reserved.