Examples of nullSafeGet()


Examples of org.hibernate.ogm.type.spi.GridType.nullSafeGet()

      Object[] entry = new Object[queryReturnTypes.length];

      int i = 0;
      for ( Type type : queryReturnTypes ) {
        GridType gridType = typeTranslator.getType( type );
        entry[i] = gridType.nullSafeGet( tuple, scalarColumns.get( i ), session, null );
        i++;
      }

      if ( entry.length == 1 ) {
        results.add( entry[0] );
View Full Code Here

Examples of org.hibernate.ogm.type.spi.GridType.nullSafeGet()

          ScalarReturn scalarReturn = (ScalarReturn) queryReturn;
          Type type = scalarReturn.getType();

          if ( type != null ) {
            GridType gridType = typeTranslator.getType( type );
            entry[i++] = gridType.nullSafeGet( tuple, scalarReturn.getColumnAlias(), session, null );
          }
          else {
            entry[i++] = tuple.get( scalarReturn.getColumnAlias() );
          }
        }
View Full Code Here

Examples of org.hibernate.ogm.type.spi.GridType.nullSafeGet()

                  versionability[i]; //TODO: is this really necessary????
              if ( include ) {
                final GridType type = types[i];
                //FIXME what do do with settable?
                boolean[] settable = type.toColumnNullness( oldFields[i], factory );
                final Object snapshotValue = type.nullSafeGet(
                    resultset, getPropertyColumnNames( i ), session, object
                    );

                if ( !type.isEqual( oldFields[i], snapshotValue, factory ) ) {
                  raiseStaleObjectStateException( id );
View Full Code Here

Examples of org.hibernate.ogm.type.spi.GridType.nullSafeGet()

        for ( int i = 0; i < entityMetamodel.getPropertySpan(); i++ ) {
          boolean include = isPropertyOfTable( i, j ) && versionability[i];
          if ( include ) {
            final GridType type = types[i];
            final Object snapshotValue = type.nullSafeGet(
                resultset, getPropertyColumnNames( i ), session, object
            );
            //TODO support other entity modes
            if ( ! type.isEqual( loadedState[i], snapshotValue, getFactory() ) ) {
              raiseStaleObjectStateException( id );
View Full Code Here

Examples of org.hibernate.type.Type.nullSafeGet()

      resultId = id;
    }
    else {
     
      Type idType = persister.getIdentifierType();
      resultId = (Serializable) idType.nullSafeGet(
          rs,
          getEntityAliases()[i].getSuffixedKeyAliases(),
          session,
          null //problematic for <key-many-to-one>!
        );
View Full Code Here

Examples of org.hibernate.type.Type.nullSafeGet()

      resultId = id;
    }
    else {
     
      Type idType = persister.getIdentifierType();
      resultId = (Serializable) idType.nullSafeGet(
          rs,
          getEntityAliases()[i].getSuffixedKeyAliases(),
          session,
          null //problematic for <key-many-to-one>!
        );
View Full Code Here

Examples of org.hibernate.type.Type.nullSafeGet()

      resultId = id;
    }
    else {

      Type idType = persister.getIdentifierType();
      resultId = (Serializable) idType.nullSafeGet(
          rs,
          getEntityAliases()[i].getSuffixedKeyAliases(),
          session,
          null //problematic for <key-many-to-one>!
        );
View Full Code Here

Examples of org.hibernate.type.Type.nullSafeGet()

      resultId = id;
    }
    else {

      Type idType = persister.getIdentifierType();
      resultId = (Serializable) idType.nullSafeGet(
          rs,
          getEntityAliases()[i].getSuffixedKeyAliases(),
          session,
          null //problematic for <key-many-to-one>!
        );
View Full Code Here

Examples of org.hibernate.type.Type.nullSafeGet()

      resultId = id;
    }
    else {
     
      Type idType = persister.getIdentifierType();
      resultId = (Serializable) idType.nullSafeGet(
          rs,
          getEntityAliases()[i].getSuffixedKeyAliases(),
          session,
          null //problematic for <key-many-to-one>!
        );
View Full Code Here

Examples of org.hibernate.type.Type.nullSafeGet()

      resultId = id;
    }
    else {
     
      Type idType = persister.getIdentifierType();
      resultId = (Serializable) idType.nullSafeGet(
          rs,
          getEntityAliases()[i].getSuffixedKeyAliases(),
          session,
          null //problematic for <key-many-to-one>!
        );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.