Package org.hibernate.engine.spi

Examples of org.hibernate.engine.spi.VersionValue


      int attributeNumber,
      Property property,
      boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
   
    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getType(),
        getConstructor( property.getPersistentClass() )
    );
View Full Code Here


        final Object defaultValue = versionGetter.get( instantiate( constructor ) );
        // if the version of a newly instantiated object is not the same
        // as the version seed value, use that as the unsaved-value
        return versionType.isEqual( versionType.seed( null ), defaultValue )
            ? VersionValue.UNDEFINED
            : new VersionValue( defaultValue );
      }
      else {
        return VersionValue.UNDEFINED;
      }
    }
View Full Code Here

        Object defaultValue = versionGetter.get( instantiate(constructor) );
        // if the version of a newly instantiated object is not the same
        // as the version seed value, use that as the unsaved-value
        return versionType.isEqual( versionType.seed( null ), defaultValue ) ?
            VersionValue.UNDEFINED :
            new VersionValue( defaultValue );
      }
      else {
        return VersionValue.UNDEFINED;
      }
    }
View Full Code Here

   * @return The appropriate VersionProperty definition.
   */
  public static VersionProperty buildVersionProperty(Property property, boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
   
    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getType(),
        getConstructor( property.getPersistentClass() )
      );
View Full Code Here

   * @return The appropriate VersionProperty definition.
   */
  public static VersionProperty buildVersionProperty(BasicAttributeBinding property, boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();

    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getHibernateTypeDescriptor().getResolvedTypeMapping(),
        getConstructor( (EntityBinding) property.getContainer() )
    );
View Full Code Here

   * @return The appropriate VersionProperty definition.
   */
  public static VersionProperty buildVersionProperty(Property property, boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
   
    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getType(),
        getConstructor( property.getPersistentClass() )
      );
View Full Code Here

      int attributeNumber,
      Property property,
      boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
   
    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getType(),
        getConstructor( property.getPersistentClass() )
    );
View Full Code Here

   * @return The appropriate VersionProperty definition.
   */
  public static VersionProperty buildVersionProperty(Property property, boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
   
    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getType(),
        getConstructor( property.getPersistentClass() )
      );
View Full Code Here

   * @return The appropriate VersionProperty definition.
   */
  public static VersionProperty buildVersionProperty(SimpleAttributeBinding property, boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();

    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        ( VersionType ) property.getHibernateTypeDescriptor().getExplicitType(),
        getConstructor( property.getEntityBinding() )
    );
View Full Code Here

   * @return The appropriate VersionProperty definition.
   */
  public static VersionProperty buildVersionProperty(Property property, boolean lazyAvailable) {
    String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
   
    VersionValue unsavedValue = UnsavedValueFactory.getUnsavedVersionValue(
        mappedUnsavedValue,
        getGetter( property ),
        (VersionType) property.getType(),
        getConstructor( property.getPersistentClass() )
      );
View Full Code Here

TOP

Related Classes of org.hibernate.engine.spi.VersionValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.