Example #1
0
 public int[] FindModified(object[] old, object[] current, object entity, ISessionImplementor session)
 {
     if (!EqualsHelper.Equals(old[0], current[0]))
     {
         return(new int[] { 0 });
     }
     else
     {
         return(null);
     }
 }
Example #2
0
 public int[] FindDirty(object[] currentState, object[] previousState, object entity, ISessionImplementor session)
 {
     if (!EqualsHelper.Equals(currentState[0], previousState[0]))
     {
         return(new int[] { 0 });
     }
     else
     {
         return(null);
     }
 }
 public Task <int[]> FindModifiedAsync(object[] old, object[] current, object entity, ISessionImplementor session, CancellationToken cancellationToken)
 {
     try
     {
         if (!EqualsHelper.Equals(old[0], current[0]))
         {
             return(Task.FromResult <int[]>(new int[] { 0 }));
         }
         else
         {
             return(Task.FromResult <int[]>(null));
         }
     }
     catch (Exception ex)
     {
         return(Task.FromException <int[]>(ex));
     }
 }
 public Task <int[]> FindDirtyAsync(object[] currentState, object[] previousState, object entity, ISessionImplementor session, CancellationToken cancellationToken)
 {
     try
     {
         if (!EqualsHelper.Equals(currentState[0], previousState[0]))
         {
             return(Task.FromResult <int[]>(new int[] { 0 }));
         }
         else
         {
             return(Task.FromResult <int[]>(null));
         }
     }
     catch (Exception ex)
     {
         return(Task.FromException <int[]>(ex));
     }
 }
 public virtual bool IsEqual(object x, object y)
 {
     return(EqualsHelper.Equals(x, y));
 }
Example #6
0
 public override bool IsEqual(object x, object y)
 {
     return(EqualsHelper.Equals(x, y));
 }
        /*
         * (non-Javadoc)
         *
         * @see org.hibernate.usertype.UserType#equals(java.lang.Object,
         *      java.lang.Object)
         */
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean equals(Object arg0, Object arg1) throws org.hibernate.HibernateException
        public virtual bool Equals(object arg0, object arg1)
        {
            return(EqualsHelper.Equals(arg0, arg1));
        }
 public virtual bool IsEqual(object x, object y, EntityMode entityMode)
 {
     return(EqualsHelper.Equals(x, y));
 }