HHH-6230 Formatting and typo fix in method name

This commit is contained in:
Hardy Ferentschik 2011-05-17 12:25:33 +02:00
parent 2fd2bc3e8d
commit db4e0b0c52
15 changed files with 68 additions and 32 deletions

View File

@ -52,7 +52,7 @@ public class SimpleAttributeBinding extends AbstractAttributeBinding implements
super.initialize( state ); super.initialize( state );
insertable = state.isInsertable(); insertable = state.isInsertable();
updateable = state.isUpdateable(); updateable = state.isUpdateable();
keyCasadeDeleteEnabled = state.isKeyCasadeDeleteEnabled(); keyCasadeDeleteEnabled = state.isKeyCascadeDeleteEnabled();
unsavedValue = state.getUnsavedValue(); unsavedValue = state.getUnsavedValue();
generation = state.getPropertyGeneration() == null ? PropertyGeneration.NEVER : state.getPropertyGeneration(); generation = state.getPropertyGeneration() == null ? PropertyGeneration.NEVER : state.getPropertyGeneration();
return this; return this;

View File

@ -76,7 +76,7 @@ public class AnnotationsAttributeBindingState implements SimpleAttributeBindingS
} }
@Override @Override
public boolean isKeyCasadeDeleteEnabled() { public boolean isKeyCascadeDeleteEnabled() {
return false; //To change body of implemented methods use File | Settings | File Templates. return false; //To change body of implemented methods use File | Settings | File Templates.
} }

View File

@ -112,7 +112,7 @@ public abstract class AbstractHbmAttributeBindingState implements AttributeBindi
return PropertyGeneration.NEVER; return PropertyGeneration.NEVER;
} }
public boolean isKeyCasadeDeleteEnabled() { public boolean isKeyCascadeDeleteEnabled() {
return false; return false;
} }

View File

@ -164,7 +164,7 @@ public class HbmManyToOneAttributeBindingState
return isUpdateable; return isUpdateable;
} }
public boolean isKeyCasadeDeleteEnabled() { public boolean isKeyCascadeDeleteEnabled() {
//TODO: implement //TODO: implement
return false; return false;
} }

View File

@ -286,7 +286,7 @@ public class HbmPluralAttributeBindingState extends AbstractHbmAttributeBindingS
return cascade; return cascade;
} }
public boolean isKeyCasadeDeleteEnabled() { public boolean isKeyCascadeDeleteEnabled() {
//TODO: implement //TODO: implement
return false; return false;
} }

View File

@ -265,7 +265,7 @@ public class HbmSimpleAttributeBindingState extends AbstractHbmAttributeBindingS
return null; return null;
} }
public boolean isKeyCasadeDeleteEnabled() { public boolean isKeyCascadeDeleteEnabled() {
//TODO: implement //TODO: implement
return false; return false;
} }

View File

@ -26,8 +26,6 @@ package org.hibernate.metamodel.state.binding;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;
import org.hibernate.metamodel.binding.HibernateTypeDescriptor;
import org.hibernate.metamodel.domain.Attribute;
import org.hibernate.metamodel.domain.MetaAttribute; import org.hibernate.metamodel.domain.MetaAttribute;
/** /**
@ -35,13 +33,22 @@ import org.hibernate.metamodel.domain.MetaAttribute;
*/ */
public interface AttributeBindingState { public interface AttributeBindingState {
String getAttributeName(); String getAttributeName();
String getTypeName(); String getTypeName();
Properties getTypeParameters(); Properties getTypeParameters();
boolean isLazy(); boolean isLazy();
String getPropertyAccessorName(); String getPropertyAccessorName();
boolean isAlternateUniqueKey(); boolean isAlternateUniqueKey();
String getCascade(); String getCascade();
boolean isOptimisticLockable(); boolean isOptimisticLockable();
String getNodeName(); String getNodeName();
Map<String, MetaAttribute> getMetaAttributes(); Map<String, MetaAttribute> getMetaAttributes();
} }

View File

@ -23,8 +23,6 @@
*/ */
package org.hibernate.metamodel.state.binding; package org.hibernate.metamodel.state.binding;
import org.hibernate.metamodel.binding.AttributeBinding;
/** /**
* @author Gail Badner * @author Gail Badner
*/ */

View File

@ -28,7 +28,10 @@ package org.hibernate.metamodel.state.binding;
*/ */
public interface ManyToOneAttributeBindingState extends SimpleAttributeBindingState { public interface ManyToOneAttributeBindingState extends SimpleAttributeBindingState {
boolean isUnwrapProxy(); boolean isUnwrapProxy();
String getReferencedAttributeName(); String getReferencedAttributeName();
String getReferencedEntityName(); String getReferencedEntityName();
boolean ignoreNotFound(); boolean ignoreNotFound();
} }

View File

@ -29,38 +29,60 @@ import org.hibernate.FetchMode;
import org.hibernate.metamodel.binding.CustomSQL; import org.hibernate.metamodel.binding.CustomSQL;
/** /**
* Created by IntelliJ IDEA. * @author gbadner
* User: gbadner
* Date: 5/9/11
* Time: 4:49 PM
* To change this template use File | Settings | File Templates.
*/ */
public interface PluralAttributeBindingState extends AttributeBindingState { public interface PluralAttributeBindingState extends AttributeBindingState {
FetchMode getFetchMode(); FetchMode getFetchMode();
boolean isExtraLazy(); boolean isExtraLazy();
String getElementTypeName(); String getElementTypeName();
String getElementNodeName(); String getElementNodeName();
boolean isInverse(); boolean isInverse();
boolean isMutable(); boolean isMutable();
boolean isSubselectLoadable(); boolean isSubselectLoadable();
String getCacheConcurrencyStrategy(); String getCacheConcurrencyStrategy();
String getCacheRegionName(); String getCacheRegionName();
String getOrderBy(); String getOrderBy();
String getWhere(); String getWhere();
String getReferencedPropertyName(); String getReferencedPropertyName();
boolean isSorted(); boolean isSorted();
Comparator getComparator(); Comparator getComparator();
String getComparatorClassName(); String getComparatorClassName();
boolean isOrphanDelete(); boolean isOrphanDelete();
int getBatchSize(); int getBatchSize();
boolean isEmbedded(); boolean isEmbedded();
boolean isOptimisticLocked(); boolean isOptimisticLocked();
Class getCollectionPersisterClass(); Class getCollectionPersisterClass();
java.util.Map getFilters(); java.util.Map getFilters();
java.util.Set getSynchronizedTables(); java.util.Set getSynchronizedTables();
CustomSQL getCustomSQLInsert(); CustomSQL getCustomSQLInsert();
CustomSQL getCustomSQLUpdate(); CustomSQL getCustomSQLUpdate();
CustomSQL getCustomSQLDelete(); CustomSQL getCustomSQLDelete();
CustomSQL getCustomSQLDeleteAll(); CustomSQL getCustomSQLDeleteAll();
String getLoaderName(); String getLoaderName();
} }

View File

@ -30,8 +30,12 @@ import org.hibernate.mapping.PropertyGeneration;
*/ */
public interface SimpleAttributeBindingState extends AttributeBindingState { public interface SimpleAttributeBindingState extends AttributeBindingState {
boolean isInsertable(); boolean isInsertable();
boolean isUpdateable(); boolean isUpdateable();
boolean isKeyCasadeDeleteEnabled();
boolean isKeyCascadeDeleteEnabled();
String getUnsavedValue(); String getUnsavedValue();
public PropertyGeneration getPropertyGeneration(); public PropertyGeneration getPropertyGeneration();
} }

View File

@ -33,16 +33,28 @@ import org.hibernate.metamodel.relational.Size;
*/ */
public interface ColumnRelationalState extends SimpleValueRelationalState { public interface ColumnRelationalState extends SimpleValueRelationalState {
NamingStrategy getNamingStrategy(); NamingStrategy getNamingStrategy();
String getExplicitColumnName(); String getExplicitColumnName();
boolean isUnique(); boolean isUnique();
Size getSize(); Size getSize();
boolean isNullable(); boolean isNullable();
String getCheckCondition(); String getCheckCondition();
String getDefault(); String getDefault();
String getSqlType(); String getSqlType();
String getCustomWriteFragment(); String getCustomWriteFragment();
String getCustomReadFragment(); String getCustomReadFragment();
String getComment(); String getComment();
Set<String> getUniqueKeys(); Set<String> getUniqueKeys();
Set<String> getIndexes(); Set<String> getIndexes();
} }

View File

@ -23,14 +23,8 @@
*/ */
package org.hibernate.metamodel.state.relational; package org.hibernate.metamodel.state.relational;
import org.hibernate.metamodel.relational.SimpleValue;
/** /**
* Created by IntelliJ IDEA. * @author Gail Badner
* User: gbadner
* Date: 5/9/11
* Time: 2:15 PM
* To change this template use File | Settings | File Templates.
*/ */
public interface DerivedValueRelationalState extends SimpleValueRelationalState { public interface DerivedValueRelationalState extends SimpleValueRelationalState {
String getFormula(); String getFormula();

View File

@ -28,5 +28,6 @@ package org.hibernate.metamodel.state.relational;
*/ */
public interface ManyToOneRelationalState extends ValueRelationalState { public interface ManyToOneRelationalState extends ValueRelationalState {
boolean isLogicalOneToOne(); boolean isLogicalOneToOne();
String getForeignKeyName(); String getForeignKeyName();
} }

View File

@ -30,11 +30,6 @@ import org.hibernate.metamodel.relational.SimpleValue;
import org.hibernate.metamodel.relational.TableSpecification; import org.hibernate.metamodel.relational.TableSpecification;
import org.hibernate.metamodel.relational.Tuple; import org.hibernate.metamodel.relational.Tuple;
import org.hibernate.metamodel.relational.Value; import org.hibernate.metamodel.relational.Value;
import org.hibernate.metamodel.state.relational.ColumnRelationalState;
import org.hibernate.metamodel.state.relational.DerivedValueRelationalState;
import org.hibernate.metamodel.state.relational.ValueRelationalState;
import org.hibernate.metamodel.state.relational.SimpleValueRelationalState;
import org.hibernate.metamodel.state.relational.TupleRelationalState;
/** /**
* @author Gail Badner * @author Gail Badner