/// <summary> /// Increment the given version number /// </summary> /// <param name="version">The value of the current version.</param> /// <param name="versionType">The <see cref="IVersionType"/> of the versioned property.</param> /// <param name="session">The current <see cref="ISession" />.</param> /// <returns>Returns the next value for the version.</returns> public static object Increment(object version, IVersionType versionType, ISessionImplementor session) { object next = versionType.Next(version, session); if (log.IsDebugEnabled) { log.Debug("Incrementing: " + version + " to " + next); } return next; }
/// <summary> /// Increment the given version number /// </summary> /// <param name="version">The value of the current version.</param> /// <param name="versionType">The <see cref="IVersionType"/> of the versioned property.</param> /// <returns>Returns the next value for the version.</returns> public static object Increment(object version, IVersionType versionType) { object next = versionType.Next(version); if (log.IsDebugEnabled) { log.Debug("Incrementing: " + version + " to " + next); } return(next); }
/// <summary> /// Increment the given version number /// </summary> /// <param name="version">The value of the current version.</param> /// <param name="versionType">The <see cref="IVersionType"/> of the versioned property.</param> /// <param name="session">The current <see cref="ISession" />.</param> /// <returns>Returns the next value for the version.</returns> public static object Increment(object version, IVersionType versionType, ISessionImplementor session) { object next = versionType.Next(version, session); if (log.IsDebugEnabled) { log.Debug( string.Format("Incrementing: {0} to {1}", versionType.ToLoggableString(version, session.Factory), versionType.ToLoggableString(next, session.Factory))); } return next; }
/// <summary> /// Increment the given version number /// </summary> /// <param name="version">The value of the current version.</param> /// <param name="versionType">The <see cref="IVersionType"/> of the versioned property.</param> /// <param name="session">The current <see cref="ISession" />.</param> /// <returns>Returns the next value for the version.</returns> public static object Increment(object version, IVersionType versionType, ISessionImplementor session) { object next = versionType.Next(version, session); if (log.IsDebugEnabled) { log.Debug( string.Format("Incrementing: {0} to {1}", versionType.ToLoggableString(version, session.Factory), versionType.ToLoggableString(next, session.Factory))); } return(next); }