Class PartitioningPolicy

    • Field Detail

      • name

        protected String name
        The persistent unit unique name for the policy.
    • Constructor Detail

      • PartitioningPolicy

        public PartitioningPolicy()
    • Method Detail

      • partitionPersist

        public void partitionPersist​(AbstractSession session,
                                     Object object,
                                     ClassDescriptor descriptor)
        INTERNAL: Allow for the persist call to assign the partition.
      • initialize

        public void initialize​(AbstractSession session)
        INTERNAL: Initialize the policy.
      • convertClassNamesToClasses

        public void convertClassNamesToClasses​(ClassLoader classLoader)
        INTERNAL: Convert all the class-name-based settings to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.
      • getAccessor

        public Accessor getAccessor​(String poolName,
                                    AbstractSession session,
                                    DatabaseQuery query,
                                    boolean returnNullIfDead)
        INTERNAL: Return an accessor from the pool for the session. For a client session the accessor is stored for the duration of the transaction.
      • getName

        public String getName()
        PUBLIC: Return the name of the policy. The name must be unique for the persistence unit. The name allows the policy to be shared among multiple descriptors, queries.
      • setName

        public void setName​(String name)
        PUBLIC: Set the name of the policy. The name must be unique for the persistence unit. The name allows the policy to be shared among multiple descriptors, queries.