public int compareTo( Object obj ) {
		if( obj == null ) {
			return( 1 );
		}
		else if( obj instanceof GenKbSecSessionByStartIdxKey ) {
			GenKbSecSessionByStartIdxKey rhs = (GenKbSecSessionByStartIdxKey)obj;
			if( getRequiredSecUserId() < rhs.getRequiredSecUserId() ) {
				return( -1 );
			}
			else if( getRequiredSecUserId() > rhs.getRequiredSecUserId() ) {
				return( 1 );
			}
			{
				int cmp = getRequiredStart().compareTo( rhs.getRequiredStart() );
				if( cmp != 0 ) {
					return( cmp );
				}
			}
			return( 0 );
		}
		else if( obj instanceof GenKbSecSessionBuff ) {
			GenKbSecSessionBuff rhs = (GenKbSecSessionBuff)obj;
			if( getRequiredSecUserId() < rhs.getRequiredSecUserId() ) {
				return( -1 );
			}
			else if( getRequiredSecUserId() > rhs.getRequiredSecUserId() ) {
				return( 1 );
			}
			{
				int cmp = getRequiredStart().compareTo( rhs.getRequiredStart() );
				if( cmp != 0 ) {
					return( cmp );
				}
			}
			return( 0 );
		}
		else {
			throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException( getClass(),
				"compareTo",
				"obj",
				obj,
				null );
		}
	}