Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  *
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
  */
 package org.hibernate.ogm.util.impl;
 
 
Helper methods to convert an object value into its column values

Author(s):
Emmanuel Bernard
	public static Object[] getColumnValuesFromResultset(Tuple resultsetString[] propertyColumnNames) {
		Object[] columnValues;
		final int nbrOfColumns = propertyColumnNames.length;
		columnValues = new Object[nbrOfColumns];
		for ( int columnIndex = 0; columnIndex < nbrOfColumnscolumnIndex++ ) {
			columnValues[columnIndex] = resultset.getpropertyColumnNames[columnIndex] );
		}
		return columnValues;
	}
	public static Object[] getColumnsValuesFromObjectValue(Object uniqueKeyGridType gridUniqueKeyTypeString[] propertyColumnNamesSessionImplementor session) {
		Tuple tempResultset = new Tuple();
		gridUniqueKeyType.nullSafeSettempResultsetuniqueKeypropertyColumnNamessession) ;
		Object[] columnValuesFromResultset = LogicalPhysicalConverterHelper.getColumnValuesFromResultsettempResultsetpropertyColumnNames );
		return columnValuesFromResultset;
	}
New to GrepCode? Check out our FAQ X