/** * INTERNAL: * Validate that the descriptor was defined correctly. * This allows for checks to be done that require the descriptor initialization to be completed. */ protected void selfValidationAfterInitialization(AbstractSession session) throws DescriptorException { // This has to be done after, because read subclasses must be initialized. if ( (hasInheritance() && (getInheritancePolicy().shouldReadSubclasses() || isAbstract())) || hasTablePerClassPolicy() && isAbstract() ) { // Avoid building a new instance if the inheritance class is abstract. // There is an empty statement here, and this was done if anything for the // readability sake of the statement logic. } else if (session.getIntegrityChecker().shouldCheckInstantiationPolicy()) { getInstantiationPolicy().buildNewInstance(); } if (hasReturningPolicy()) { getReturningPolicy().validationAfterDescriptorInitialization(session); } getObjectBuilder().validate(session); }
/** * INTERNAL: * Validate that the descriptor was defined correctly. * This allows for checks to be done that require the descriptor initialization to be completed. */ protected void selfValidationAfterInitialization(AbstractSession session) throws DescriptorException { // This has to be done after, because read subclasses must be initialized. if ( (hasInheritance() && (getInheritancePolicy().shouldReadSubclasses() || isAbstract())) || hasTablePerClassPolicy() && isAbstract() ) { // Avoid building a new instance if the inheritance class is abstract. // There is an empty statement here, and this was done if anything for the // readability sake of the statement logic. } else if (session.getIntegrityChecker().shouldCheckInstantiationPolicy()) { getInstantiationPolicy().buildNewInstance(); } if (hasReturningPolicy()) { getReturningPolicy().validationAfterDescriptorInitialization(session); } getObjectBuilder().validate(session); }
/** * INTERNAL: * Validate that the descriptor was defined correctly. * This allows for checks to be done that require the descriptor initialization to be completed. */ protected void selfValidationAfterInitialization(AbstractSession session) throws DescriptorException { // This has to be done after, because read subclasses must be initialized. if ( (hasInheritance() && (getInheritancePolicy().shouldReadSubclasses() || isAbstract())) || hasTablePerClassPolicy() && isAbstract() ) { // Avoid building a new instance if the inheritance class is abstract. // There is an empty statement here, and this was done if anything for the // readability sake of the statement logic. } else if (session.getIntegrityChecker().shouldCheckInstantiationPolicy()) { getInstantiationPolicy().buildNewInstance(); } if (hasReturningPolicy()) { getReturningPolicy().validationAfterDescriptorInitialization(session); } getObjectBuilder().validate(session); }