FileDocCategorySizeDatePackage
Array.javaAPI DocHibernate 3.2.51658Sat Feb 19 20:34:50 GMT 2005org.hibernate.mapping

Array

public class Array extends List
An array mapping has a primary key consisting of the key columns + index column.
author
Gavin King

Fields Summary
private String
elementClassName
Constructors Summary
public Array(PersistentClass owner)
Constructor for Array.

param
owner

		super(owner);
	
Methods Summary
public java.lang.Objectaccept(ValueVisitor visitor)

		return visitor.accept(this);
	
public org.hibernate.type.CollectionTypegetDefaultCollectionType()

		return TypeFactory.array( getRole(), getReferencedPropertyName(), isEmbedded(), getElementClass() );
	
public java.lang.ClassgetElementClass()

		if (elementClassName==null) {
			org.hibernate.type.Type elementType = getElement().getType();
			return isPrimitiveArray() ?
				( (PrimitiveType) elementType ).getPrimitiveClass() :
				elementType.getReturnedClass();
		}
		else {
			try {
				return ReflectHelper.classForName(elementClassName);
			}
			catch (ClassNotFoundException cnfe) {
				throw new MappingException(cnfe);
			}
		}
	
public java.lang.StringgetElementClassName()

return
Returns the elementClassName.

		return elementClassName;
	
public booleanisArray()

		return true;
	
public voidsetElementClassName(java.lang.String elementClassName)

param
elementClassName The elementClassName to set.

		this.elementClassName = elementClassName;