todo : the statement about this representing a single mapping element is simply not true if it was ever the case. this contract actually represents 3 scopes of information:
| Modifier and Type | Class and Description |
|---|---|
| public static class | Mappings.PropertyReference
Represents a property-ref mapping. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject
The metadata. auxiliaryDatabaseObject)Add metadata pertaining to an auxiliary database object to this repository. |
| public void | |
| public AnnotatedClassType | Returns: The class type.The XClass mapping. clazz)FIXME should be private but will this break things? |
| public void | addCollection(Collection
The collection metadata collection)Add collection mapping metadata to this repository. |
| public void | addColumnBinding(String
The logical column name binding. logicalName, Column The physical column metadata. physicalColumn, Table The table metadata. table)Binds the given 'physicalColumn' to the give 'logicalName' within the given 'table'. |
| public void | |
| public void | |
| public void | |
| public void | |
| public Table | Returns: The created table metadata.The named schema in which the table belongs (or null). schema, String The named catalog in which the table belongs (or null). catalog, String The table name name, boolean Is the table abstract (i.e. not really existing in the DB)? isAbstract, String A select statement which defines a logical table, much
like a DB view. subselect, Table ??? includedTable)Adds a 'denormalized table' to this repository. |
| public void | addFilterDefinition(FilterDefinition
The filter definition to add. definition)Adds a filter definition to this repository. |
| public void | |
| public void | addGeneratorTable(String
The generator name name, Properties The generator table properties. params)Add a generator table properties. |
| public void | |
| public void | addJoins(PersistentClass
The persistent entity metadata. persistentClass, Map<String, Join> The join metadata to add. joins)Add join metadata for a persistent entity. |
| public void | |
| public void | addMappedSuperclass(Class<T>
type corresponding to the Mappedsuperclass type, MappedSuperclass MappedSuperclass mappedSuperclass)add a new MappedSuperclass This should not be called if the MappedSuperclass already exists (it would be erased) |
| public void | |
| public void | |
| public void | addPropertyReference(String
The referenced entity name. referencedClass, String The referenced property name. propertyName)Adds a property reference binding to this repository. |
| public void | |
| public void | addQuery(String
The name name, NamedQueryDefinition The metadata query)Adds metadata for a named query to this repository. |
| public void | addResultSetMapping(ResultSetMappingDefinition
The metadata sqlResultSetMapping)Adds the metadata for a named SQL result set mapping to this repository. |
| public void | addSecondPass(SecondPass
The second pass to add. sp)Adds a second-pass to the end of the current queue. |
| public void | addSecondPass(SecondPass
The second pass to add. sp, boolean True to add to the beginning of the queue; false to add to the end. onTopOfTheQueue)Adds a second pass. |
| public void | addSQLQuery(String
The name name, NamedSQLQueryDefinition The metadata query)Adds metadata for a named SQL query to this repository. |
| public Table | Returns: The created table metadata, or the existing reference.The named schema in which the table belongs (or null). schema, String The named catalog in which the table belongs (or null). catalog, String The table name name, String A select statement which defines a logical table, much
like a DB view. subselect, boolean Is the table abstract (i.e. not really existing in the DB)? isAbstract)Adds table metadata to this repository returning the created metadata instance. |
| public void | addTableBinding(String
The schema in which the table belongs (may be null). schema, String The catalog in which the table belongs (may be null). catalog, String The logical table name. logicalName, String The physical table name. physicalName, Table ??? denormalizedSuperTable)Adds a table binding to this repository. |
| public void | addToExtendsQueue(ExtendsQueueEntry
The entry to add. entry)Adds an entry to the extends queue queue. |
| public void | |
| public void | addTypeDef(String
The type name. typeName, String The class implementing the typeClass, Properties org. contract.Map of parameters to be used to configure the type after instantiation. paramMap)Adds a type definition to this metadata repository. |
| public void | |
| public void | addUniqueConstraints(Table table, List<E> uniqueConstraints)
Deprecated
Use
addUniqueConstraintHolders instead
|
| public void | addUniquePropertyReference(String
The referenced entity name. referencedClass, String The referenced property name. propertyName)Adds a property reference binding to this repository where said proeprty reference is marked as unique. |
| public FetchProfile | Returns: The fetch profile metadata.The name of the profile. name, MetadataSource The source from which this profile is named. source)Retrieves a fetch profile by either finding one currently in this repository matching the given name or by creating one (and adding it). |
| public AnyMetaDef | |
| public String | Returns: The currently bound catalog name, or null if none.Returns the currently bound default catalog name. |
| public PersistentClass | |
| public Map | |
| public AnnotatedClassType | Returns: The class type.The XClass mapping clazz)Get and maintain a cache of class type. |
| public Collection | Returns: The collection mapping metadata, or null if no matching collection role found.The collection role for which to retrieve the metadata. role)Retrieves the collection mapping metadata for the given collection role. |
| public Properties | Returns: The configuration propertiesRetrieve the configuration properties currently in effect. |
| public String | Returns: The current default property access style.Get the current default property access style. |
| public String | Returns: The current default cascade style.Get the current default cascade style. |
| public String | Returns: The currently bound default package nameGet the currently bound default package name. |
| public FilterDefinition | Returns: The filter definition, or null.The name of the filter definition to retrieve. name)Retrieves a filter definition by name. |
| public Map | Returns: The filter definition map.Retrieves the copmplete map of filter definitions. |
| public String | |
| public IdGenerator | Returns: The generator, or null.The generator name. name)Retrieve the id-generator by name. |
| public IdGenerator | Returns: the appropriate idgenerator or null if not foundgenerator name name, Map<String, IdGenerator> local generators localGenerators)Try to find the generator from the localGenerators and then from the global generator list |
| public Properties | Returns: The properties, or null.generator name name, Map<String, Properties> local generator tables localGeneratorTables)Retrieve the properties related to a generator table. |
| public DefaultIdentifierGeneratorFactory | Returns: The IdentifierGeneratorFactoryRetrieve the IdentifierGeneratorFactory in effect for this mapping. |
| public Map | |
| public String | Returns: The logical column name.The physical column name physicalName, Table The table metadata. table)Find the logical column name against whcih the given physical column name was bound within the given table. |
| public String | Returns: The logical name.The table for which to determine the logical name. table)Get the logical table name mapped for the given physical table. |
| public MappedSuperclass | Returns: the MappedSuperclassclass corresponding to the MappedSuperclass type)Get a MappedSuperclass or null if not mapped |
| public NamingStrategy | |
| public ObjectNameNormalizer | Returns: The normalizer.Retrieve the database identifier normalizer for this context. |
| public PersisterClassProvider | |
| public String | Returns: The physical column name.The logical name binding. logicalName, Table The table metatdata. table)Find the physical column name for the given logical column name within the given table. |
| public PropertyData | getPropertyAnnotatedWithIdAndToOne(XClass entityType, String propertyName)
Return the property annotated with @ToOne and @Id if any. |
| public PropertyData | getPropertyAnnotatedWithMapsId(XClass entityType, String propertyName)
Return the property annotated with @MapsId("propertyName") if any. |
| public String | |
| public NamedQueryDefinition | |
| public ReflectionManager | |
| public ResultSetMappingDefinition | Returns: The SQL result set mapping metadat, or null if none found.The mapping name. name)Get the metadata for a named SQL result set mapping. |
| public String | Returns: The currently bound schema nameReturns the currently bound default schema name. |
| public NamedSQLQueryDefinition | Returns: The meatdata, or null if none found.The named SQL query name. name)Get named SQL query metadata. |
| public Table | |
| public Map | |
| public TypeDef | Returns: The type definition, or null if none found.The name of the type definition to retrieve. typeName)Retrieve a type definition by name. |
| public TypeResolver | |
| public Map | |
| public boolean | Returns: True if currently enabled; false otherwise.Determine whether auto importing of entity names is currently enabled. |
| public boolean | Returns: True if enabled, false otherwise.Determine whether default laziness is currently enabled. |
| public boolean | |
| public boolean | |
| public Iterator | Returns: Iterator over the auxiliary database object metadata.Retrieves an iterator over the metadata pertaining to all auxiliary database objects int this repository. |
| public ListIterator | Returns: The reversed iterator.Same as |
| public Iterator | iterateAuxliaryDatabaseObjects()
Deprecated
To fix misspelling; use
iterateAuxiliaryDatabaseObjects instead
|
| public ListIterator | iterateAuxliaryDatabaseObjectsInReverse()
Deprecated
To fix misspelling; use
iterateAuxiliaryDatabaseObjectsInReverse instead
|
| public Iterator | Returns: Iterator over class metadata.Retrieves an iterator over the entity metadata present in this repository. |
| public Iterator | Returns: Iterator over collection metadata.Returns an iterator over collection metadata. |
| public Iterator | |
| public PersistentClass | Returns: The entity mapping metadata, or null if none found matching given entity name.The entity name for which to retrieve the metadata. entityName)Retrieves the entity mapping metadata for the given entity name, potentially accounting for imports. |
| public void | setAutoImport(boolean
True to enable; false to diasable. autoImport)Set whether to enable auto importing of entity names. |
| public void | setCatalogName(String
The catalog name to use as the current default. catalogName)Sets the currently bound default catalog name. |
| public void | setDefaultAccess(String
The access style to use as the current default. defaultAccess)Sets the current default property access style. |
| public void | setDefaultCascade(String
The cascade style to set as the current default. defaultCascade)Sets the current default cascade style. |
| public void | setDefaultLazy(boolean
True to enable, false to disable. defaultLazy)Set whether to enable default laziness. |
| public void | setDefaultPackage(String
The package name to set as the current default. defaultPackage)Set the current default package name. |
| public void | setNamingStrategy(NamingStrategy
The naming strategy to use. namingStrategy)Set the current naming strategy. |
| public void | setPersisterClassProvider(PersisterClassProvider persisterClassProvider)
Set the current persister class provider implementation |
| public void | setSchemaName(String
The schema name to bind as the current default. schemaName)Sets the currently bound default schema name. |
| public boolean | Returns: True if the new generators should be used, false otherwise.Should we use the new generator strategy mappings. |