当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
NamingHelper (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.util
Class NamingHelper
java.lang.Object
net.sf.hibernate.util.NamingHelper
- public final class NamingHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInitialContext
public static InitialContext getInitialContext(Properties props)
throws NamingException
- Throws:
NamingException
bind
public static void bind(Context ctx,
String name,
Object val)
throws NamingException
- Bind val to name in ctx, and make sure that all intermediate contexts exist.
- Parameters:
ctx
- the root contextname
- the name as a stringval
- the object to be bound
- Throws:
NamingException
getJndiProperties
public static Properties getJndiProperties(Properties properties)
- Transform JNDI properties passed in the form hibernate.jndi.* to the
format accepted by InitialContext by triming the leading "hibernate.jndi".