下面列出了怎么用org.hibernate.metadata.CollectionMetadata的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public CollectionMetadata getCollectionMetadata(String roleName) {
return null;
}
@Override
public CollectionMetadata getCollectionMetadata() {
return this;
}
@Override
public CollectionMetadata getCollectionMetadata(String roleName) {
return delegate.getCollectionMetadata( roleName );
}
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return (CollectionMetadata) getMetamodel().collectionPersister( roleName );
}
public CollectionMetadata getCollectionMetadata() {
return this;
}
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return getImpl().getCollectionMetadata(roleName);
}
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return (CollectionMetadata) collectionMetadata.get(roleName);
}
/** {@inheritDoc} */
@Override public CollectionMetadata getCollectionMetadata(String roleName) {
return null;
}
/** {@inheritDoc} */
@Override public CollectionMetadata getCollectionMetadata(String roleName) {
return null;
}
/** {@inheritDoc} */
@Override public CollectionMetadata getCollectionMetadata(String roleName) {
return null;
}
public CollectionMetadata getCollectionMetadata(String roleName) {
return sessionFactoryImplementor.getCollectionMetadata(roleName);
}
/**
* Get the {@link CollectionMetadata} associated with the named collection role.
*
* @param roleName The collection role (in form [owning-entity-name].[collection-property-name]).
*
* @return The metadata associated with the given collection; may be null if no such
* collection was mapped.
*
* @throws HibernateException Generally null is returned instead of throwing.
*
* @deprecated Use the descriptors from {@link #getMetamodel()} instead
*/
@Deprecated
CollectionMetadata getCollectionMetadata(String roleName);
/**
* Get the <tt>CollectionMetadata</tt> associated with the named collection role
*
* @see org.hibernate.metadata.CollectionMetadata
*/
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException;
CollectionMetadata getCollectionMetadata();
public CollectionMetadata getCollectionMetadata();