All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.bytecode.enhance.spi.EnhancerConstants Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.bytecode.enhance.spi;

/**
 * Constants used during enhancement.
 *
 * @author Steve Ebersole
 */
public final class EnhancerConstants {

	/**
	 * Prefix for persistent-field reader methods.
	 */
	public static final String PERSISTENT_FIELD_READER_PREFIX = "$$_hibernate_read_";

	/**
	 * Prefix for persistent-field writer methods.
	 */
	public static final String PERSISTENT_FIELD_WRITER_PREFIX = "$$_hibernate_write_";

	/**
	 * Name of the method used to get reference of the entity instance (this in the case of enhanced classes).
	 */
	public static final String ENTITY_INSTANCE_GETTER_NAME = "$$_hibernate_getEntityInstance";

	/**
	 * Name of the field used to hold the {@link org.hibernate.engine.spi.EntityEntry}
	 */
	public static final String ENTITY_ENTRY_FIELD_NAME = "$$_hibernate_entityEntryHolder";

	/**
	 * Name of the method used to read the {@link org.hibernate.engine.spi.EntityEntry} field.
	 *
	 * @see #ENTITY_ENTRY_FIELD_NAME
	 */
	public static final String ENTITY_ENTRY_GETTER_NAME = "$$_hibernate_getEntityEntry";

	/**
	 * Name of the method used to write the {@link org.hibernate.engine.spi.EntityEntry} field.
	 *
	 * @see #ENTITY_ENTRY_FIELD_NAME
	 */
	public static final String ENTITY_ENTRY_SETTER_NAME = "$$_hibernate_setEntityEntry";

	/**
	 * Name of the field used to hold the previous {@link org.hibernate.engine.spi.ManagedEntity}.
	 * 

* Together, previous/next are used to define a "linked list" * * @see #NEXT_FIELD_NAME */ public static final String PREVIOUS_FIELD_NAME = "$$_hibernate_previousManagedEntity"; /** * Name of the method used to read the previous {@link org.hibernate.engine.spi.ManagedEntity} field * * @see #PREVIOUS_FIELD_NAME */ public static final String PREVIOUS_GETTER_NAME = "$$_hibernate_getPreviousManagedEntity"; /** * Name of the method used to write the previous {@link org.hibernate.engine.spi.ManagedEntity} field * * @see #PREVIOUS_FIELD_NAME */ public static final String PREVIOUS_SETTER_NAME = "$$_hibernate_setPreviousManagedEntity"; /** * Name of the field used to hold the previous {@link org.hibernate.engine.spi.ManagedEntity}. *

* Together, previous/next are used to define a "linked list" * * @see #PREVIOUS_FIELD_NAME */ public static final String NEXT_FIELD_NAME = "$$_hibernate_nextManagedEntity"; /** * Name of the method used to read the next {@link org.hibernate.engine.spi.ManagedEntity} field * * @see #NEXT_FIELD_NAME */ public static final String NEXT_GETTER_NAME = "$$_hibernate_getNextManagedEntity"; /** * Name of the method used to write the next {@link org.hibernate.engine.spi.ManagedEntity} field * * @see #NEXT_FIELD_NAME */ public static final String NEXT_SETTER_NAME = "$$_hibernate_setNextManagedEntity"; /** * Name of the field used to store the {@link org.hibernate.engine.spi.PersistentAttributeInterceptable}. */ public static final String INTERCEPTOR_FIELD_NAME = "$$_hibernate_attributeInterceptor"; /** * Name of the method used to read the interceptor * * @see #INTERCEPTOR_FIELD_NAME */ public static final String INTERCEPTOR_GETTER_NAME = "$$_hibernate_getInterceptor"; /** * Name of the method used to write the interceptor * * @see #INTERCEPTOR_FIELD_NAME */ public static final String INTERCEPTOR_SETTER_NAME = "$$_hibernate_setInterceptor"; /** * Name of tracker field */ public static final String TRACKER_FIELD_NAME = "$$_hibernate_tracker"; /** * Name of method to add changed fields */ public static final String TRACKER_CHANGER_NAME = "$$_hibernate_trackChange"; /** * Name of method to see if any fields has changed */ public static final String TRACKER_HAS_CHANGED_NAME = "$$_hibernate_hasDirtyAttributes"; /** * Name of method to fetch dirty attributes */ public static final String TRACKER_GET_NAME = "$$_hibernate_getDirtyAttributes"; /** * Name of method to clear stored dirty attributes */ public static final String TRACKER_CLEAR_NAME = "$$_hibernate_clearDirtyAttributes"; /** * Name of method to suspend dirty tracking */ public static final String TRACKER_SUSPEND_NAME = "$$_hibernate_suspendDirtyTracking"; /** * Name of method to check if collection fields are dirty */ public static final String TRACKER_COLLECTION_GET_NAME = "$$_hibernate_getCollectionTracker"; /** * Name of method to check if collection fields are dirty */ public static final String TRACKER_COLLECTION_CHANGED_NAME = "$$_hibernate_areCollectionFieldsDirty"; /** * Name of the field that holds the collection tracker */ public static final String TRACKER_COLLECTION_NAME = "$$_hibernate_collectionTracker"; /** * Name of method to get dirty collection field names */ public static final String TRACKER_COLLECTION_CHANGED_FIELD_NAME = "$$_hibernate_getCollectionFieldDirtyNames"; /** * Name of method to clear dirty attribute on collection fields */ public static final String TRACKER_COLLECTION_CLEAR_NAME = "$$_hibernate_clearDirtyCollectionNames"; /** * Field to hold the track the owner of the embeddable entity */ public static final String TRACKER_COMPOSITE_FIELD_NAME = "$$_hibernate_compositeOwners"; /** * Method to set the owner of the embedded entity */ public static final String TRACKER_COMPOSITE_SET_OWNER = "$$_hibernate_setOwner"; /** * Method to clear the owner of the embedded entity */ public static final String TRACKER_COMPOSITE_CLEAR_OWNER = "$$_hibernate_clearOwner"; private EnhancerConstants() { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy