org.hibernate.persister.entity
Interface Queryable

All Superinterfaces:
EntityPersister, Joinable, Loadable, PropertyMapping
All Known Implementing Classes:
BasicEntityPersister

public interface Queryable
extends Loadable, PropertyMapping, Joinable

Extends the generic EntityPersister contract to add operations required by the Hibernate Query Language

Author:
Gavin King

Field Summary
 
Fields inherited from interface org.hibernate.persister.entity.Loadable
ROWID_ALIAS
 
Fields inherited from interface org.hibernate.persister.entity.EntityPersister
ENTITY_ID
 
Method Summary
 String getDiscriminatorSQLValue()
          Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statement
 String[] getIdentifierColumnNames()
          Get the names of columns used to persist the identifier
 String getMappedSuperclass()
          Get the class that this class is mapped as a subclass of - not necessarily the direct superclass
 String identifierSelectFragment(String name, String suffix)
          Given a query alias and an identifying suffix, render the intentifier select fragment.
 boolean isAbstract()
          Is this an abstract class?
 boolean isExplicitPolymorphism()
          Is this class explicit polymorphism only?
 boolean isInherited()
          Is this class mapped as a subclass of another class?
 String propertySelectFragment(String alias, String suffix, boolean allProperties)
          Given a query alias and an identifying suffix, render the property select fragment.
 
Methods inherited from interface org.hibernate.persister.entity.Loadable
getDiscriminatorAlias, getDiscriminatorColumnName, getDiscriminatorType, getIdentifierAliases, getPropertyAliases, getPropertyColumnNames, getSubclassForDiscriminatorValue, hasRowId, hasSubclasses, hydrate
 
Methods inherited from interface org.hibernate.persister.entity.EntityPersister
afterInitialize, afterReassociate, createProxy, delete, findDirty, findModified, getCache, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getCurrentVersion, getDatabaseSnapshot, getEntityName, getFactory, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierType, getMappedClass, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getQuerySpaces, getRootEntityName, getSubclassEntityPersister, getVersion, getVersionProperty, getVersionType, guessEntityMode, hasCache, hasCascades, hasCollections, hasIdentifierProperty, hasIdentifierPropertyOrEmbeddedCompositeIdentifier, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, implementsLifecycle, implementsValidatable, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInstance, isMutable, isSelectBeforeUpdateRequired, isSubclassEntityName, isTransient, isVersioned, load, lock, postInstantiate, resetIdentifier, setIdentifier, setPropertyValue, setPropertyValues, update
 
Methods inherited from interface org.hibernate.persister.entity.PropertyMapping
getType, toColumns, toColumns, toType
 
Methods inherited from interface org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, filterFragment, fromJoinFragment, getKeyColumnNames, getName, getTableName, isCollection, oneToManyFilterFragment, selectFragment, whereJoinFragment
 

Method Detail

isAbstract

public boolean isAbstract()
Is this an abstract class?


isInherited

public boolean isInherited()
Is this class mapped as a subclass of another class?


isExplicitPolymorphism

public boolean isExplicitPolymorphism()
Is this class explicit polymorphism only?


getMappedSuperclass

public String getMappedSuperclass()
Get the class that this class is mapped as a subclass of - not necessarily the direct superclass


getDiscriminatorSQLValue

public String getDiscriminatorSQLValue()
Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statement


identifierSelectFragment

public String identifierSelectFragment(String name,
                                       String suffix)
Given a query alias and an identifying suffix, render the intentifier select fragment.


propertySelectFragment

public String propertySelectFragment(String alias,
                                     String suffix,
                                     boolean allProperties)
Given a query alias and an identifying suffix, render the property select fragment.


getIdentifierColumnNames

public String[] getIdentifierColumnNames()
Get the names of columns used to persist the identifier

Specified by:
getIdentifierColumnNames in interface Loadable