站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Name (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.odmg
Class Name

java.lang.Object
  extended bynet.sf.hibernate.odmg.Name

public class Name
extends Object

An ODMG name that may be bound to a persistent object.


Constructor Summary
Name()
           
Name(String name, Class persistentClass, Serializable id)
           
 
Method Summary
 Serializable getId()
          Returns the id.
 String getName()
          Returns the name.
 Class getPersistentClass()
          Returns the persistentClass.
 void setId(Serializable id)
          Sets the id.
 void setName(String name)
          Sets the name.
 void setPersistentClass(Class persistentClass)
          Sets the persistentClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Name

public Name(String name,
            Class persistentClass,
            Serializable id)

Name

public Name()
Method Detail

getName

public String getName()
Returns the name. JavaDoc requires a second sentence.

Returns:
String

getPersistentClass

public Class getPersistentClass()
Returns the persistentClass. JavaDoc requires a second sentence.

Returns:
Class

setName

public void setName(String name)
Sets the name. JavaDoc requires a second sentence.

Parameters:
name - The name to set

setPersistentClass

public void setPersistentClass(Class persistentClass)
Sets the persistentClass. JavaDoc requires a second sentence.

Parameters:
persistentClass - The persistentClass to set

getId

public Serializable getId()
Returns the id. JavaDoc requires a second sentence.

Returns:
Serializable

setId

public void setId(Serializable id)
Sets the id. JavaDoc requires a second sentence.

Parameters:
id - The id to set