⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collection.java

📁 hibernate-distribution-3.3.1.GA-dist.zip源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		while ( columns.hasNext() ) {			Selectable s = (Selectable) columns.next();			if ( !s.isFormula() ) {				Column col = (Column) s;				if ( !distinctColumns.add( col.getName() ) ) {					throw new MappingException( "Repeated column in mapping for collection: "						+ getRole()						+ " column: "						+ col.getName() );				}			}		}	}	private void checkColumnDuplication() throws MappingException {		HashSet cols = new HashSet();		checkColumnDuplication( cols, getKey().getColumnIterator() );		if ( isIndexed() ) {			checkColumnDuplication( cols, ( (IndexedCollection) this )				.getIndex()				.getColumnIterator() );		}		if ( isIdentified() ) {			checkColumnDuplication( cols, ( (IdentifierCollection) this )				.getIdentifier()				.getColumnIterator() );		}		if ( !isOneToMany() ) {			checkColumnDuplication( cols, getElement().getColumnIterator() );		}	}	public Iterator getColumnIterator() {		return EmptyIterator.INSTANCE;	}	public int getColumnSpan() {		return 0;	}	public Type getType() throws MappingException {		return getCollectionType();	}	public CollectionType getCollectionType() {		if ( typeName == null ) {			return getDefaultCollectionType();		}		else {			return TypeFactory.customCollection( typeName, typeParameters, role, referencedPropertyName, isEmbedded() );		}	}	public boolean isNullable() {		return true;	}	public boolean isAlternateUniqueKey() {		return false;	}	public Table getTable() {		return owner.getTable();	}	public void createForeignKey() {	}	public boolean isSimpleValue() {		return false;	}	public boolean isValid(Mapping mapping) throws MappingException {		return true;	}	private void createForeignKeys() throws MappingException {		// if ( !isInverse() ) { // for inverse collections, let the "other end" handle it		if ( referencedPropertyName == null ) {			getElement().createForeignKey();			key.createForeignKeyOfEntity( getOwner().getEntityName() );		}		// }	}	abstract void createPrimaryKey();	public void createAllKeys() throws MappingException {		createForeignKeys();		if ( !isInverse() ) createPrimaryKey();	}	public String getCacheConcurrencyStrategy() {		return cacheConcurrencyStrategy;	}	public void setCacheConcurrencyStrategy(String cacheConcurrencyStrategy) {		this.cacheConcurrencyStrategy = cacheConcurrencyStrategy;	}	public void setTypeUsingReflection(String className, String propertyName) {	}	public String getCacheRegionName() {		return cacheRegionName == null ? role : cacheRegionName;	}	public void setCacheRegionName(String cacheRegionName) {		this.cacheRegionName = cacheRegionName;	}	public void setCustomSQLInsert(String customSQLInsert, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {		this.customSQLInsert = customSQLInsert;		this.customInsertCallable = callable;		this.insertCheckStyle = checkStyle;	}	public String getCustomSQLInsert() {		return customSQLInsert;	}	public boolean isCustomInsertCallable() {		return customInsertCallable;	}	public ExecuteUpdateResultCheckStyle getCustomSQLInsertCheckStyle() {		return insertCheckStyle;	}	public void setCustomSQLUpdate(String customSQLUpdate, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {		this.customSQLUpdate = customSQLUpdate;		this.customUpdateCallable = callable;		this.updateCheckStyle = checkStyle;	}	public String getCustomSQLUpdate() {		return customSQLUpdate;	}	public boolean isCustomUpdateCallable() {		return customUpdateCallable;	}	public ExecuteUpdateResultCheckStyle getCustomSQLUpdateCheckStyle() {		return updateCheckStyle;	}	public void setCustomSQLDelete(String customSQLDelete, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {		this.customSQLDelete = customSQLDelete;		this.customDeleteCallable = callable;		this.deleteCheckStyle = checkStyle;	}	public String getCustomSQLDelete() {		return customSQLDelete;	}	public boolean isCustomDeleteCallable() {		return customDeleteCallable;	}	public ExecuteUpdateResultCheckStyle getCustomSQLDeleteCheckStyle() {		return deleteCheckStyle;	}	public void setCustomSQLDeleteAll(String customSQLDeleteAll, boolean callable, ExecuteUpdateResultCheckStyle checkStyle) {		this.customSQLDeleteAll = customSQLDeleteAll;		this.customDeleteAllCallable = callable;		this.deleteAllCheckStyle = checkStyle;	}	public String getCustomSQLDeleteAll() {		return customSQLDeleteAll;	}	public boolean isCustomDeleteAllCallable() {		return customDeleteAllCallable;	}	public ExecuteUpdateResultCheckStyle getCustomSQLDeleteAllCheckStyle() {		return deleteAllCheckStyle;	}	public void addFilter(String name, String condition) {		filters.put( name, condition );	}	public java.util.Map getFilterMap() {		return filters;	}	public void addManyToManyFilter(String name, String condition) {		manyToManyFilters.put( name, condition );	}	public java.util.Map getManyToManyFilterMap() {		return manyToManyFilters;	}	public String toString() {		return getClass().getName() + '(' + getRole() + ')';	}	public java.util.Set getSynchronizedTables() {		return synchronizedTables;	}	public String getLoaderName() {		return loaderName;	}	public void setLoaderName(String name) {		this.loaderName = name==null ? null : name.intern();	}	public String getReferencedPropertyName() {		return referencedPropertyName;	}	public void setReferencedPropertyName(String propertyRef) {		this.referencedPropertyName = propertyRef==null ? null : propertyRef.intern();	}	public boolean isOptimisticLocked() {		return optimisticLocked;	}	public void setOptimisticLocked(boolean optimisticLocked) {		this.optimisticLocked = optimisticLocked;	}	public boolean isMap() {		return false;	}	public String getTypeName() {		return typeName;	}	public void setTypeName(String typeName) {		this.typeName = typeName;	}	public Properties getTypeParameters() {		return typeParameters;	}	public void setTypeParameters(Properties parameterMap) {		this.typeParameters = parameterMap;	}	public boolean[] getColumnInsertability() {		return ArrayHelper.EMPTY_BOOLEAN_ARRAY;	}	public boolean[] getColumnUpdateability() {		return ArrayHelper.EMPTY_BOOLEAN_ARRAY;	}	public String getNodeName() {		return nodeName;	}	public void setNodeName(String nodeName) {		this.nodeName = nodeName;	}	public String getElementNodeName() {		return elementNodeName;	}	public void setElementNodeName(String elementNodeName) {		this.elementNodeName = elementNodeName;	}	public boolean isEmbedded() {		return embedded;	}	public void setEmbedded(boolean embedded) {		this.embedded = embedded;	}	public boolean isSubselectLoadable() {		return subselectLoadable;	}		public void setSubselectLoadable(boolean subqueryLoadable) {		this.subselectLoadable = subqueryLoadable;	}	public boolean isMutable() {		return mutable;	}	public void setMutable(boolean mutable) {		this.mutable = mutable;	}	public boolean isExtraLazy() {		return extraLazy;	}	public void setExtraLazy(boolean extraLazy) {		this.extraLazy = extraLazy;	}		public boolean hasOrder() {		return orderBy!=null || manyToManyOrderBy!=null;	}	public void setComparatorClassName(String comparatorClassName) {		this.comparatorClassName = comparatorClassName;			}		public String getComparatorClassName() {		return comparatorClassName;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -