Converter, ObjectTypeConverter, TypeConversionConverter, SerializedObjectConverter, ClassInstanceConverter
| Modifier and Type | Field and Description |
|---|---|
| protected transient Class | attributeClassification
To specify the conversion type |
| protected String | |
| protected transient Class | attributeObjectClassification
PERF: Also store object class of attribute in case of primitive. |
| protected boolean | bypassDefaultNullValueCheck
PERF: Avoid default null value conversion check if not default null value set in conversion manager. |
| protected String | |
| protected Boolean | isMutable
PERF: Indicates if this mapping's attribute is a simple atomic value and cannot be modified, only replaced. |
| protected DatabaseTable | |
| protected transient Object | nullValue
Support specification of the value to use for null. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAdditionalFieldsToQuery(ReadQuery selectionQuery, Expression baseExpression)
Implements org. |
| public void | addFieldsForMapKey(AbstractRecord joinRow)
Implements org. |
| public void | addKeyToDeletedObjectsList(Object object, Map<K, V> deletedObjects)
Implements org. |
| public void | buildBackupClone(Object
TODO clone, Object TODO backup, UnitOfWorkImpl TODO unitOfWork)Implements abstract org. |
| public ChangeRecord | buildChangeRecord(Object clone, ObjectChangeSet owner, AbstractSession session)
Overrides org. |
| public void | buildClone(Object
TODO original, CacheKey TODO cacheKey, Object TODO clone, Integer TODO refreshCascade, AbstractSession TODO cloningSession)Implements abstract org. |
| public void | buildCloneFromRow(AbstractRecord
TODO databaseRow, JoinedAttributeManager TODO joinManager, Object TODO clone, CacheKey TODO sharedCacheKey, ObjectBuildingQuery TODO sourceQuery, UnitOfWorkImpl TODO unitOfWork, AbstractSession TODO executionSession)Implements abstract org. |
| public void | buildCloneValue(Object original, Object clone, AbstractSession session)
INTERNAL: Clone the attribute from the original and assign it to the clone. |
| protected Object | buildCloneValue(Object attributeValue, AbstractSession session)
INTERNAL: Clone the actual value represented by this mapping. |
| public void | buildCopy(Object
TODO copy, Object TODO original, CopyGroup TODO group)Overrides org. |
| public Object | buildElementClone(Object attributeValue, Object parent, CacheKey cacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isExisting, boolean isFromSharedCache)
Implements org. |
| public Expression | buildExpression(Object
TODO queryObject, QueryByExamplePolicy TODO policy, Expression TODO expressionBuilder, Map<K, V> TODO processedObjects, AbstractSession TODO session)Overrides org. |
| public ReadQuery | buildSelectionQueryForDirectCollectionKeyMapping(ContainerPolicy containerPolicy)
Implements org. |
| public void | buildShallowOriginalFromRow(AbstractRecord
TODO databaseRow, Object later the input to buildCloneFromRow original, JoinedAttributeManager TODO joinManager, ObjectBuildingQuery TODO query, AbstractSession TODO executionSession)Overrides org. |
| public void | cascadeDiscoverAndPersistUnregisteredNewObjects(Object object, Map<K, V> newObjects, Map<K, V> unregisteredExistingObjects, Map<K, V> visitedObjects, UnitOfWorkImpl uow, boolean getAttributeValueFromObject, Set<E> cascadeErrors)
Implements org. |
| public void | cascadePerformRemoveIfRequired(Object object, UnitOfWorkImpl uow, Map<K, V> visitedObjects, boolean getAttributeValueFromObject)
Implements org. |
| public void | cascadePerformRemoveIfRequired(Object
TODO object, UnitOfWorkImpl TODO uow, Map<K, V> TODO visitedObjects)Overrides org. |
| public void | cascadeRegisterNewIfRequired(Object object, UnitOfWorkImpl uow, Map<K, V> visitedObjects, boolean getAttributeValueFromObject)
Implements org. |
| public void | cascadeRegisterNewIfRequired(Object
TODO object, UnitOfWorkImpl TODO uow, Map<K, V> TODO visitedObjects)Overrides org. |
| public ChangeRecord | compareForChange(Object
TODO clone, Object TODO backUp, ObjectChangeSet TODO owner, AbstractSession TODO session)Implements abstract org. |
| public boolean | compareObjects(Object
TODO firstObject, Object TODO secondObject, AbstractSession TODO session)Implements abstract org. |
| protected boolean | compareObjectValues(Object firstValue, Object secondValue, AbstractSession session)
INTERNAL: Compare the attribute values. |
| public void | convertClassNamesToClasses(ClassLoader
TODO classLoader)Overrides org. |
| public Object | createMapComponentFromJoinedRow(AbstractRecord dbRow, JoinedAttributeManager joinManger, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
Implements org. |
| public Object | createMapComponentFromRow(AbstractRecord dbRow, ObjectBuildingQuery query, CacheKey parentCacheKey, AbstractSession session, boolean isTargetProtected)
Implements org. |
| public List | createMapComponentsFromSerializableKeyInfo(Object[] keyInfo, AbstractSession session)
Implements org. |
| public QueryKey | createQueryKeyForMapKey()
Implements org. |
| public Object | createSerializableMapKeyInfo(Object key, AbstractSession session)
Implements org. |
| public Object | createStubbedMapComponentFromSerializableKeyInfo(Object keyInfo, AbstractSession session)
Implements org. |
| public void | deleteMapKey(Object objectDeleted, AbstractSession session)
Implements org. |
| public Map | extractIdentityFieldsForQuery(Object object, AbstractSession session)
Implements org. |
| public Expression | getAdditionalSelectionCriteriaForMapKey()
Implements org. |
| public List | getAdditionalTablesForJoinQuery()
Implements org. |
| public List | getAllFieldsForMapKey()
Implements org. |
| public Class | getAttributeClassification()
Overrides org. |
| public String | |
| public Class | getFieldClassification(DatabaseField fieldToClassify)
Overrides org. |
| public Class | |
| public String | |
| public String | |
| public Object | getFieldValue(Object attributeValue, AbstractSession session)
Implements abstract org. |
| public Map | getForeignKeyFieldsForMapKey()
Implements org. |
| public List | getIdentityFieldsForMapKey()
Implements org. |
| public Class | getMapKeyTargetType()
Implements org. |
| public ObjectLevelReadQuery | getNestedJoinQuery(JoinedAttributeManager joinManager, ObjectLevelReadQuery query, AbstractSession session)
Implements org. |
| public Object | |
| public Object | getObjectValue(Object fieldValue, Session session)
Implements abstract org. |
| public Object | getObjectValueWithoutClassCheck(Object fieldValue, Session session)
INTERNAL: Same as getObjectValue method, but without checking fieldValue's class. |
| public ClassDescriptor | getReferenceDescriptor()
Overrides org. Implements org. |
| public Object | getTargetVersionOfSourceObject(Object object, Object parent, MergeManager mergeManager, AbstractSession targetSession)
Implements org. |
| public Integer | getWeight()
Overrides org. |
| public void | initialize(AbstractSession session)
Overrides org. |
| public ChangeRecord | internalBuildChangeRecord(Object newValue, Object oldValue, ObjectChangeSet owner)
INTERNAL: Build a change record. |
| public boolean | |
| public boolean | isChangeTrackingSupported(Project project)
Overrides org. |
| public boolean | isCloningRequired()
Overrides org. |
| public boolean | |
| public boolean | isMutable()
PUBLIC: Return true if the attribute for this mapping is a simple atomic value that cannot be modified, only replaced. |
| public void | iterateOnMapKey(DescriptorIterator iterator, Object element)
Implements org. |
| public void | mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession)
Implements abstract org. |
| public void | mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession)
Implements abstract org. |
| public void | postInitializeMapKey(MappedKeyMapContainerPolicy policy)
Implements org. |
| public void | preInitialize(AbstractSession session)
Overrides org. |
| public void | preinitializeMapKey(DatabaseTable table)
Implements org. |
| public void | remoteInitialization(DistributedSession session)
Overrides org. |
| public boolean | requiresDataModificationEventsForMapKey()
Implements org. |
| public void | setAttributeClassification(Class<?> attributeClassification)
PUBLIC: Some databases do not properly support all of the base data types. |
| public void | setAttributeClassificationName(String attributeClassificationName)
INTERNAL: Set the name of the class for MW usage. |
| public void | |
| public void | setFieldClassificationClassName(String className)
INTERNAL: Set the name of the class that will be used for setFieldClassification and deploy time Used internally by JPA deployment. |
| public void | |
| public void | setIsMutable(boolean isMutable)
PUBLIC: Return true if the attribute for this mapping is a simple atomic value that cannot be modified, only replaced. |
| public void | |
| public String | toString()
Overrides org. |
| public Object | unwrapKey(Object key, AbstractSession session)
Implements org. |
| public void | updateChangeRecord(Object clone, Object newValue, Object oldValue, ObjectChangeSet objectChangeSet, UnitOfWorkImpl uow)
Overrides org. |
| public void | validateBeforeInitialization(AbstractSession session)
Overrides org. |
| public Object | valueFromObject(Object
TODO object, DatabaseField TODO field, AbstractSession TODO session)Overrides org. |
| public Object | valueFromResultSet(ResultSet resultSet, ObjectBuildingQuery query, AbstractSession session, DatabaseAccessor accessor, ResultSetMetaData metaData, int columnNumber, DatabasePlatform platform)
Overrides org. |
| public Object | valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery query, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)
Overrides org. |
| public Object | wrapKey(Object key, AbstractSession session)
Implements org. |
| public void | writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.
Overrides org. |
| public void | writeFromObjectIntoRowForUpdate(WriteObjectQuery query, AbstractRecord databaseRow)
Overrides org. |
| public void | writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session, DatabaseMapping.
Overrides org. |
| public void | writeInsertFieldsIntoRow(AbstractRecord databaseRow, AbstractSession session)
Overrides org. |
| public void | writeUpdateFieldsIntoRow(AbstractRecord databaseRow, AbstractSession session)
Overrides org. |
| protected abstract void | writeValueIntoRow(AbstractRecord row, DatabaseField field, Object value)
Implements abstract org. |